Data processing method and device, storage medium, equipment and program product

By creating a software bridging channel in the gateway device and coordinating forwarding with the switching chip, the problem that traditional gateway architectures cannot handle IPTV data streams with virtual LAN tags is solved, achieving efficient and reliable IPTV data stream forwarding and improving the user experience.

CN121792804APending Publication Date: 2026-04-03SHANGHAI LIANHONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-18
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Traditional network gateway architectures cannot directly process network protocol TV data streams with virtual LAN tags, resulting in high-speed ports being unable to support IPTV services, wasting hardware resources and degrading user experience.

Method used

By creating a software bridging channel in the vector packet processing data plane of the central processing unit and configuring virtual LAN forwarding rules on the switching chip, efficient and accurate transmission of network protocol television data streams can be achieved.

Benefits of technology

It improves data packet processing efficiency, ensures high-performance forwarding and reliability of IPTV services, and avoids waste of hardware resources and performance bottlenecks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121792804A_ABST
    Figure CN121792804A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, a storage medium, equipment and a program product, and the method comprises the steps: in gateway equipment comprising a central processing unit and a switching chip, obtaining a target virtual local area network identifier in response to a network protocol television configuration request through the central processing unit; a vector packet processing data plane is established, a corresponding software bridging channel is established on the vector packet processing data plane, and a virtual local area network forwarding rule of a switching chip is configured, so that efficient and accurate forwarding of a network protocol television data stream from a wide area network interface to a target local area network interface is realized, the data packet processing efficiency is improved, and the network protocol television data stream forwarding efficiency is improved. And the flexibility and reliability of service transmission are ensured through cooperation of software bridging and hardware forwarding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to a data processing method, apparatus, storage medium, device, and program product. Background Technology

[0002] With the continuous improvement of network bandwidth, users' demand for real-time transmission of high-definition video (such as 4K / 8K IPTV) is increasing. Traditional high-performance network gateways often adopt a hybrid hardware architecture of "Central Processing Unit (CPU) + switching chip". In this architecture, a few high-speed Wide Area Network Interface (WAN) interfaces (such as 10G SFP+) are directly connected to the CPU to improve throughput, while most Local Area Network Interface (LAN) interfaces are connected to the switching chip, utilizing its hardware Virtual Local Area Network (VLAN) and Quality of Service (QoS) functions. However, in this architecture, the CPU-direct WAN interface only supports Layer 3 forwarding by default and cannot directly process Layer 2 Ethernet frames of Internet Protocol Television (IPTV) with VLAN tags, resulting in high-speed ports not being able to directly support IPTV services. Traditional hardware solutions rely on the hardware VLAN capabilities of the switching chip, but the CPU's direct output port and LAN interface cannot be directly logically connected; traditional software solutions use the Linux kernel's bridging module, but this requires entering the kernel protocol stack, resulting in a complex process and significant performance bottlenecks.

[0003] Therefore, traditional technologies cannot meet the high-performance forwarding requirements of high-speed WAN interfaces for IPTV services, resulting in wasted hardware resources and a decline in user experience. Summary of the Invention

[0004] This application provides a data processing method, apparatus, storage medium, device, and program product. By creating a software bridging channel and coordinating forwarding with a switching chip, it enables efficient and accurate transmission of network protocol television data streams based on target VLAN identifiers, thereby improving processing efficiency and ensuring service reliability.

[0005] On one hand, embodiments of this application provide a data processing method applied to a gateway device comprising a central processing unit (CPU) and a switching chip, wherein the CPU is directly connected to at least one first wide area network (WAN) interface and connected to the switching chip via an inline port, the method comprising: In response to a Network Protocol Television (LPTV) configuration request for the first wide area network (WAN) interface, the target virtual local area network (VLAN) identifier corresponding to the LTV service is obtained, wherein the target VLAN identifier is used to specify the target LTV LAN interface. In the vector packet processing data plane of the central processing unit, a software bridging channel corresponding to the target virtual local area network identifier is created and maintained; Configure virtual LAN forwarding rules on the switching chip so that the network protocol TV data stream can be forwarded from the inline port to the target network protocol TV LAN interface; When the first WAN interface receives a Network Protocol Television (NTTV) data stream containing the target VLAN identifier, it forwards the NTV data stream to the target NTV LAN interface based on the software bridging channel and the VLAN forwarding rules.

[0006] On the other hand, embodiments of this application provide a data processing apparatus applied to a gateway device comprising a central processing unit and a switching chip, wherein the central processing unit is directly connected to at least one first wide area network interface and connected to the switching chip through an inline port, the apparatus comprising: The acquisition unit is configured to, in response to a Network Protocol Television (LPTV) configuration request for the first wide area network interface, acquire the target virtual local area network (VLAN) identifier corresponding to the LTV service, wherein the target VLAN identifier is used to specify the target LTV VLAN interface. The establishment unit is used to establish a software bridging channel for the network protocol television service based on the target virtual local area network identifier in the vector packet processing data plane of the central processing unit. A configuration unit is used to configure virtual LAN forwarding rules on the switching chip so that the network protocol TV data stream can be forwarded from the inline port to the target network protocol TV LAN interface. The processing unit is configured to, when the first wide area network interface receives a network protocol television data stream containing the target virtual local area network identifier, forward the network protocol television data stream to the target network protocol television local area network interface based on the software bridging channel and the virtual local area network forwarding rules.

[0007] On the other hand, an embodiment of this application provides a computer-readable storage medium storing a computer program adapted for loading by a processor to perform the data processing method as described in any of the above embodiments.

[0008] On the other hand, an embodiment of this application provides a computer device, which includes a processor and a memory. The memory stores a computer program, and the processor executes the data processing method described in any of the above embodiments by calling the computer program stored in the memory.

[0009] On the other hand, an embodiment of this application provides a computer program product, including computer instructions, which, when executed by a processor, implement the data processing method as described in any of the above embodiments.

[0010] This application embodiment applies to a gateway device including a central processing unit (CPU) and a switching chip. The CPU is directly connected to at least one first wide area network (WAN) interface and connected to the switching chip through an inline port. In response to a Network Protocol Television (NTTV) configuration request for the first WAN interface, the CPU obtains a target Virtual Local Area Network (VLAN) identifier corresponding to the NTV service. This target VLAN identifier is used to specify the target NTV LAN interface. In the CPU's vector packet processing data plane, a software bridging channel corresponding to the target VLAN identifier is created and maintained. VLAN forwarding rules are configured on the switching chip to enable NTV data streams to be forwarded from the inline port to the target NTV LAN interface. When the first WAN interface receives a NTV data stream containing the target VLAN identifier, it forwards the NTV data stream to the target NTV LAN interface based on the software bridging channel and the VLAN forwarding rules. This application embodiment achieves efficient and accurate forwarding of Network Protocol Television (TCP / IP) data streams from the WAN interface to the target LAN interface by utilizing the central processing unit (CPU) to respond to the TCP / IP configuration request in a gateway device containing a CPU and a switching chip to obtain the target VLAN identifier and create a corresponding software bridging channel in the vector packet processing data plane. At the same time, it configures the VLAN forwarding rules of the switching chip. This not only improves the efficiency of data packet processing, but also ensures the flexibility and reliability of service transmission through the collaboration of software bridging and hardware forwarding. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart illustrating the data processing method provided in an embodiment of this application.

[0013] Figure 2 This is a schematic diagram of a first application scenario of the data processing method provided in the embodiments of this application.

[0014] Figure 3 This is a schematic diagram of a second application scenario for the data processing method provided in the embodiments of this application.

[0015] Figure 4 This is a schematic diagram of the structure of the data processing apparatus provided in the embodiments of this application.

[0016] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0018] This application provides a data processing method, apparatus, storage medium, device, and program product. Exemplarily, the data processing method of this application can be executed by a computer device, which can be a terminal or server, etc. The terminal can be a smartphone, tablet, laptop, desktop computer, smart TV, smart speaker, wearable smart device, personal computer (PC), smart vehicle terminal, etc. The terminal can also include a client, which can be a video client, shopping application client, reading application client, browser client, or instant messaging client, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.

[0019] First, the following explanations are given for some of the nouns or terms that appear in the embodiments of this application: Wide Area Network (WAN) Interface: A physical or logical interface that connects a gateway device to an external network (such as the Internet). In this application, it specifically refers to a high-speed uplink interface (such as a 10G SFP+ port) that is directly managed by the CPU.

[0020] Local Area Network (LAN) interface: The physical interface that connects the gateway device to internal user devices (such as TVs and computers), usually mounted under the switching chip.

[0021] Central Processing Unit (CPU): The computing and control core of the gateway device, responsible for running the VPP data plane and directly managing at least one high-speed WAN interface in this application.

[0022] Switch: A special application integrated circuit that provides hardware-level data switching, VLAN isolation and forwarding functions for multiple ports. In this application, it is responsible for the final distribution of IPTV data streams on the LAN side.

[0023] Virtual Local Area Network (VLAN): A technology that divides a physical network into multiple logical broadcast domains in a Layer 2 network to achieve traffic isolation. In this application, IPTV service flows are identified and transmitted through specific VLANs.

[0024] VLAN Identifier (VLAN ID): A numerical value used to uniquely identify a VLAN. In this application, it is assigned by the Internet Service Provider and used to distinguish IPTV service traffic.

[0025] Internet Protocol Television (IPTV): A television service based on IP network transmission, whose data stream is usually a Layer 2 multicast or unicast frame with VLAN tags.

[0026] Vector Packet Processing (VPP): A high-performance software packet processing framework that runs in user space. It achieves near-line-speed data forwarding capabilities through vectorized batch processing and bypassing the operating system kernel protocol stack. In this application, it is used to build a software bridging channel to realize the forwarding of IPTV data streams directly from the CPU to the WAN port.

[0027] Small Form-factor Pluggable (SFP): A hot-swappable fiber optic or copper network interface module, commonly used for high-speed network interfaces. In this application, it can refer to the physical form of a high-speed WAN port directly output from the CPU.

[0028] Quality of Service (QoS): A mechanism in network technology used to guarantee performance metrics such as bandwidth, latency, and jitter for specific service flows (such as audio and video).

[0029] Software-defined networking (SDN) is an architectural concept that separates the network control plane from the data plane and centrally controls it through software.

[0030] Configuration Database (CONFIG-DB): A database that stores persistent configurations of gateway devices (such as IPTV parameters set by users). Upper-layer applications trigger service configuration processes by monitoring changes to the database.

[0031] Application-Specific Integrated Circuit Database (ASIC-DB): An intermediate database or message bus used to store and synchronize real-time configuration or status information required by the underlying forwarding plane (such as VPP, switching chip).

[0032] Data Abstraction Layer (DAL): A software layer responsible for encapsulating, transforming, and transmitting messages between the configuration management plane and the underlying data plane.

[0033] Data Management Plane (DMP): This is the software layer responsible for subscribing to configuration changes and calling specific underlying module interfaces to execute configurations, such as the module in this application that processes ASIC-DB messages and calls the VPP API.

[0034] Application Programming Interface (API): A predefined interface for interaction between software components. In this application, it specifically refers to the binary API provided by VPP for creating bridging domains, configuring sub-interfaces, etc.

[0035] Data Plane Development Kit (DPDK): A set of libraries and drivers for rapidly developing high-performance data plane applications. VPP uses it to implement user-space network card drivers and zero-copy packet processing.

[0036] Poll Mode Driver (PMD): A user-space network card driver mode in DPDK that uses CPU-driven polling instead of hardware interrupts to receive data packets, greatly improving throughput.

[0037] Media Access Control Address (MAC Address): A unique hardware identifier for a network device's network interface card (NIC), used for addressing data frames in Layer 2 networks. Bridging domains rely on the MAC address table for forwarding.

[0038] Bridge Domain (BD): A logical Layer 2 broadcast domain created in VPP, which functions similarly to a physical switch. Interfaces within the domain can perform Layer 2 frame switching and is the core of the software bridging channel in this application.

[0039] Interface: In VPP, an interface represents a network endpoint, which can be a physical interface, a VLAN sub-interface, or a virtual interface. It is the port through which data packets enter and exit VPP.

[0040] Internet Service Provider (ISP): A company that provides internet access services to users, and usually also assigns parameters such as VLAN IDs for IPTV services to users.

[0041] Layer 2 (L2) forwarding: Data frame switching based on data link layer information (such as MAC address and VLAN ID) is the basic forwarding method in the software bridging channel and switching chip in this application.

[0042] Layer 3 (L3) forwarding: Packet routing based on network layer information (such as IP address). This is the default relationship between the CPU's direct output WAN port and the inline port. This application bypasses this default path by creating a Layer 2 bridging channel.

[0043] User Space: The area in the operating system's memory used by applications to run. The VPP runs here, thus avoiding kernel overhead.

[0044] Kernel Space: The privileged memory area where the operating system kernel runs. The traditional Linux network protocol stack processes data packets here. The proposed solution bypasses this processing path by using VPP.

[0045] This application provides a data processing method, which can be executed by a terminal or a server, or by both a terminal and a server. This application uses the example of a data processing method executed by a server to illustrate the method.

[0046] Please see Figures 1 to 3 , Figure 1 This is a flowchart illustrating the data processing method provided in an embodiment of this application. Figures 2 to 3These are schematic diagrams illustrating application scenarios of the data processing method provided in the embodiments of this application. The method is applied to a gateway device comprising a central processing unit (CPU) and a switching chip. The CPU is directly connected to at least one first wide area network (WAN) interface and connected to the switching chip via an inline port. The method may include the following steps: Step 110: In response to the Network Protocol Television (LPTV) configuration request for the first WAN interface, obtain the target VLAN identifier corresponding to the LTV service. The target VLAN identifier is used to specify the target LTV LAN interface.

[0047] When the upper-layer application (APP layer, such as the network management interface or auto-configuration module) receives a Network Protocol Television (IPTV) configuration request for the first WAN interface, it first queries the physical connection type of the interface to confirm that it is a CPU direct-output WAN interface rather than a port connected to the switching chip. Based on this judgment, the upper-layer application intelligently dispatches the configuration task to the vector packet processing software bridging process module designed specifically for CPU direct output, rather than calling the traditional configuration module that depends on the switching chip hardware. Subsequently, this module parses the target VLAN identifier (such as VLAN ID 1000) corresponding to the IPTV service assigned by the Internet service provider from the IPTV configuration request. This identifier is uniquely used to specify and filter the specific data stream that should be forwarded to the target IPTV LAN interface in subsequent processes.

[0048] like Figure 2 and Figure 3 As shown, the gateway device connects to the external network via a central processing unit (CPU), where the CPU is directly connected to at least one first wide area network (WAN) interface (e.g., WAN 1). When a user or system initiates a Network Protocol Television (IPTV) configuration request for this first WAN interface, the gateway device obtains the target Virtual Local Area Network (VLAN) identifier corresponding to the IPTV service. This target VLAN identifier is used to specify a target IPTV LAN interface (e.g., an RJ-45 port) within the gateway device, ensuring that IPTV data streams can be correctly routed and processed. Figure 2 In the image, we can see that WAN 1 is connected to the mixed data stream, which includes the IPTV identifier. This indicates that the IPTV data stream enters the gateway device through the WAN interface.

[0049] Step 120: In the vector packet processing data plane of the central processing unit, create and maintain a software bridging channel corresponding to the target virtual LAN identifier.

[0050] After obtaining the target VLAN identifier, the central processing unit (CPU) creates and maintains a software bridging channel corresponding to that target VLAN identifier in its Vector Packet Processing (VPP) data plane. For example... Figure 3 As shown, the CPU uses a VPP architecture to efficiently process network packets and communicates with other components through the VPP interface. The function of this software bridging channel is to establish a logical connection within the CPU, enabling IPTV data streams from the WAN to be correctly forwarded to the designated target IPTV LAN interface via this software bridging channel. Figure 3 In the diagram, we can see that the CPU communicates with the switch through the VPP interface and manages the forwarding of network traffic through the bridging domain.

[0051] In some embodiments, the software bridging channel is a pure Layer 2 transparent forwarding channel, without performing Layer 3 routing and Address Resolution Protocol (ARP) proxy functions. This feature ensures transparent transmission of IPTV data streams in the Layer 2 network, avoiding the performance overhead and complexity associated with Layer 3 processing.

[0052] In some embodiments, establishing a software bridging channel for the Network Protocol Television (NTTV) service based on the target VLAN identifier in the packet processing data plane of the central processing unit (CPU) includes: creating a bridging domain associated with the target VLAN identifier in the packet processing data plane of the CPU; creating a first VLAN sub-interface on a first physical interface on the CPU side corresponding to the first WAN port, the first VLAN sub-interface being configured to recognize the target VLAN identifier; creating a second VLAN sub-interface on a second physical interface on the CPU side corresponding to the inline port, the second VLAN sub-interface being configured to recognize the target VLAN identifier; and bridging the first VLAN sub-interface and the second VLAN sub-interface in the bridging domain to form a software bridging channel for the NTV data stream in the packet processing data plane.

[0053] Within the VPP software data plane, a bridge domain is created based on the VLAN ID (i.e., the target virtual LAN identifier) ​​required for IPTV services. This bridge domain manages data traffic forwarding within a specific VLAN. It possesses Layer 2 frame switching capabilities and internally forms a logically shared broadcast domain. Specifically, for the high-speed WAN port directly output from the CPU (i.e., the first WAN port), the interface creation function provided by the vector packet processing data plane is used to create a VLAN sub-interface (the first virtual LAN sub-interface) on the physical interface on the CPU side, which corresponds to the IPTV service VLAN ID. This interface identifies and processes traffic belonging to the target virtual LAN by configuring the VLAN ID.

[0054] Specifically, for the inline port of the CPU connecting to the switching chip, another VLAN sub-interface (second virtual LAN sub-interface) is also created on the corresponding physical interface on the CPU side through the interface creation function provided by the vector packet processing data plane, and the same VLAN ID is configured to ensure the consistency of traffic identification.

[0055] Then, the two VLAN sub-interfaces created for the high-speed WAN port and the inline port respectively are added to the bridging domain created in the above steps. Data forwarding between the two VLAN sub-interfaces is achieved through the bridging domain, thereby building a pure Layer 2 software bridging channel in the VPP data plane, which is dedicated to transmitting IPTV service data streams.

[0056] In some embodiments, creating a bridging domain associated with the target virtual local area network (VLAN) identifier in the vector packet processing data plane of the central processing unit includes: invoking the bridging domain management interface of the vector packet processing data plane; calculating and generating a dedicated bridging domain identifier for the network protocol television service based on a predefined maximum VLAN bridging domain identifier; and creating the bridging domain based on the dedicated bridging domain identifier, wherein the bridging domain enables media access control address learning and Layer 2 forwarding functions.

[0057] Bridge domains (BDs) are created by calling the VPP binary API interface_bridge_domain_add_del, which manages the creation and deletion of bridge domains. A Bridge Domain ID needs to be specified. First, a system-defined "maximum LAN bridge domain ID" (lanBridgeIDMax) is obtained by calling a Front End Processor (FEP) platform function. For IPTV services, (lanBridgeIDMax + 1) is used as its unique bridge domain identifier (bridge_id).

[0058] The `interface_bridge_domain_add_del` API creates a standard, transparent bridged domain with L2 forwarding capabilities. It enables MAC address learning ("learn": 1) and Layer 2 forwarding ("forward": 1) by default, ensuring the bridged domain can automatically learn and forward MAC addresses on member interfaces. Specifically, unless additional API calls are made, it uses VPP's default L2 bridging parameters. “learn”: 1 (enabled), BD will learn the source MAC addresses on its member interfaces.

[0059] "forward": 1 (enabled), BD will perform L2 forwarding based on the MAC table.

[0060] “flood”: 1 (enabled), when a frame with an unknown destination MAC address is received, it will be flooded to all other member interfaces.

[0061] "arp_term": 0 (disabled). Only performs L2 transparent bridging.

[0062] In some embodiments, bridging the first VLAN sub-interface and the second VLAN sub-interface in the bridging domain includes: calling the Layer 2 interface configuration interface of the vector packet processing data plane, switching the working mode of the first VLAN sub-interface and the second VLAN sub-interface from Layer 3 routing mode to Layer 2 bridging mode, and binding them to the bridging domain respectively.

[0063] For example, the Layer 2 interface configuration is specifically implemented by calling the VPP binary API "interface_set_l2". This function is responsible for switching the network layer operating mode of the first and second VLAN sub-interfaces from L3 (Layer 3 routing mode) to L2 (Layer 2 bridging mode), and adding the first and second VLAN sub-interfaces to the specified bridging domain, thereby completing the operation of bridging the first and second VLAN sub-interfaces to the bridging domain.

[0064] like Figure 2 and Figure 3As shown, the Vector Packet Processing (VPP) data plane, running in the CPU's user-space memory, acts as an independent high-performance software forwarding engine. It performs the following operations to establish a logical Layer 2 path: First, it calls the VPP API (e.g., `bridge_domain_add`) to create a new bridge domain and assigns it a unique instance identifier (e.g., `instance_id=1000`). Then, on the physical network interface card (e.g., `tenGigabit 0`) connecting to the first WAN interface, it creates a first VLAN sub-interface (e.g., `interface0.1000`) via the VPP API (e.g., `vpp_if_create_vlan_subif`), and on the inline physical network interface card (e.g., `tenGigabit 1`) connecting to the switching chip, it creates a second VLAN sub-interface (e.g., `interface 1.1000`). Both sub-interfaces are configured to recognize and process data frames with VLAN ID 1000. Finally, it adds these two sub-interfaces to the aforementioned bridge domain in Layer 2 mode via the VPP API (e.g., `interface_set_l2`), thus logically constructing a dedicated VLAN service spanning the CPU. 1000 software bridging channel.

[0065] Step 130: Configure virtual LAN forwarding rules on the switching chip so that the network protocol TV data stream can be forwarded from the inline port to the target network protocol TV LAN interface.

[0066] Simultaneously, the gateway device configures corresponding Virtual Local Area Network (VLAN) forwarding rules on the switching chip. These VLAN forwarding rules define how to forward data flows based on the VLAN identifier in the data packets. For example... Figure 3 As shown, the switch has internal VLAN configurations for managing network traffic. By configuring VLAN forwarding rules, the gateway device ensures that IPTV data streams can be correctly forwarded from the inline port connected to the CPU to the target IPTV LAN interface. Figure 2 and Figure 3 In this system, the switch connects to the external network via Gigabit Ethernet ports and processes VLAN and IPTV data streams through its internal processing module.

[0067] In some embodiments, configuring virtual LAN forwarding rules on the switching chip includes: configuring the physical port to which the target network protocol TV LAN interface belongs as a member port of the target virtual LAN identifier on the switching chip; and excluding the physical port on the switching chip connected to the first wide area network interface from the member ports of the target virtual LAN identifier.

[0068] For example, based on user configuration, the physical port of the target network protocol TV LAN interface, which serves as the IPTV downlink port, is added to the VLAN corresponding to the target virtual LAN identifier on the switch chip. This step is achieved by calling the switch chip software development kit (SDK) to perform hardware configuration, making the physical port a member port of the VLAN corresponding to the target virtual LAN identifier, so as to receive and process data streams belonging to that VLAN.

[0069] For example, since the WAN port (the physical port on the switching chip that connects to the first WAN interface) has a reserved VLAN, such as WAN4's reserved VLAN ID being 4087, and the IPTV port will be added to a specific VLAN (such as VLAN 1000, created based on the VLAN ID of the IPTV traffic provided by the ISP), when configuring VLAN isolation rules on the switching chip, the switching chip SDK is called to perform hardware configuration (such as creating VLANs, configuring uplink and downlink ports, configuring port virtual LAN identifiers (PVIDs), and configuring hardware VLAN isolation). It is necessary to explicitly exclude the physical ports on the switching chip that are directly connected to the first WAN interface from the member ports of the target virtual LAN identifier to prevent traffic backflow, implement the VLAN mutual exclusion mechanism, and ensure the correct forwarding and isolation of data flows on the switching chip.

[0070] like Figure 3 As shown, by calling the configuration interface (such as the SDK) of the switching chip, the virtual LAN forwarding rules corresponding to the target virtual LAN identifier (1000) are configured in its hardware forwarding table. Specifically, this includes: setting the user-specified target LAN interface (RJ-45 port) as a member port of VLAN 1000, enabling it to receive and send data from that VLAN; and isolating the physical port on the switching chip connected to the CPU direct-output WAN port (WAN 1) outside of VLAN 1000 (i.e., not using it as a member port) to prevent IPTV data streams from erroneously flowing back, ensuring that traffic can only enter the switching chip from the CPU-side inline port and is correctly forwarded to the target IPTV LAN interface.

[0071] Step 140: When the first WAN interface receives a Network Protocol Television (NTTV) data stream containing the target VLAN identifier, the NTV data stream is forwarded to the target NTV LAN interface based on the software bridging channel and the VLAN forwarding rules.

[0072] Specifically, when the first WAN interface receives an IPTV data stream containing the target VLAN identifier, the gateway device will forward the IPTV data stream to the target IPTV LAN interface based on the previously created software bridging channel and the configured VLAN forwarding rules. For example... Figure 2and Figure 3 As shown, this process involves the CPU processing data packets, the use of the VPP data plane, and the switch forwarding the data stream. Ultimately, the IPTV data stream is correctly directed to the designated LAN interface for user equipment to receive and play. Figure 2 In the diagram, we can see that IPTV data streams are directed to the internal network through the network device boundary, while... Figure 3 The middle section shows the detailed forwarding path of the data stream within the device.

[0073] like Figure 3 The data flow path shown illustrates the following collaborative forwarding process when a mixed data flow from the Internet (containing regular internet traffic and IPTV traffic with VLAN ID 1000) enters through the first WAN interface (WAN 1): On the CPU side, the VPP data plane accurately identifies the IPTV data frame carrying VLAN ID 1000 through the first VLAN sub-interface; subsequently, using the software bridging channel constructed in step 120, the data frame undergoes Layer 2 switching within the bridging domain (e.g., MAC address-based learning forwarding or flooding), and is sent out from the second VLAN sub-interface to the inline port; after the data frame reaches the switching chip through the inline port, the switching chip queries its VLAN forwarding table according to the hardware virtual LAN forwarding rules configured in step 130, and sends the data frame out from the target IPTV LAN interface (RJ-45 port), ultimately transmitting it to the user-side IPTV receiving device (e.g., set-top box). Thus, through the collaboration of the software plane and the hardware chip, high-performance, lossless forwarding of the IPTV data flow on the CPU-direct-output high-speed WAN port is achieved.

[0074] In some embodiments, when the first WAN interface receives a Network Protocol Television (NTTV) data stream containing the target VLAN identifier, forwarding the NTV data stream to the target NTV LAN interface based on the software bridging channel and the VLAN forwarding rules includes: when the first WAN interface receives a NTV data stream containing the target VLAN identifier, the vector packet processing data plane directs the NTV data stream to the inline port via the software bridging channel in user-mode forwarding; and the switching chip delivers the NTV data stream to the target LAN interface according to the VLAN forwarding rules.

[0075] In some embodiments, the software bridging channel includes a bridging domain and a first VLAN sub-interface and a second VLAN sub-interface bridged within the bridging domain; the step of directing the Network Protocol Television (NTTV) data stream to the inline port via the software bridging channel using user-space forwarding by the packet processing data plane includes: identifying the NTV data stream containing the target VLAN identifier from the mixed data stream based on the first VLAN sub-interface using user-space forwarding by the packet processing data plane; forwarding the NTV data stream from the first VLAN sub-interface to the second VLAN sub-interface via the bridging domain; and directing the NTV data stream from the second VLAN sub-interface to the inline port.

[0076] like Figure 3 As shown, the mixed data stream flows in from WAN1 (WAN1 connects to the SFP+ port), containing both Internet and IPTV data streams. The Internet data stream is directly output from the CPU's LAN-side interface Gigabit Ethernet port 1 (tenGigabit1) via the CPU's Layer 3 forwarding path. The IPTV data stream is captured by Gigabit Ethernet port 0 (tenGigabit0) and the first VLAN sub-interface (interface0.1000), entering the bridging domain (Instance_id=1000). Since the IPTV data stream's destination MAC address is a multicast address, the bridging domain floods it to the second VLAN sub-interface (interface1.1000), enabling data stream forwarding from the first VLAN sub-interface to the second VLAN sub-interface. After being forwarded by the bridging domain, the IPTV data stream is output from the CPU LAN-side VLAN sub-interface (the second VLAN sub-interface) and sent to the switching chip, i.e., directed to the relevant path on the inline port for further processing and forwarding by the switching chip. Then, the switching chip forwards the IPTV data stream to the IPTV port specified by the user (such as the target LAN interface) according to its own hardware VLAN table (VLAN 1000 configuration).

[0077] In some embodiments, the step of directing the IPTV data stream to the inline port via the software bridging channel using the user-space forwarding method by the vector packet processing data plane includes: the vector packet processing data plane directly accessing the receive queue of the first WAN interface through user-space polling, directly storing data packets belonging to the IPTV data stream into the user-space memory pool managed by the vector packet processing data plane; performing vectorized batch processing on multiple data packets in the user-space memory pool to complete Layer 2 forwarding decisions, thereby achieving data forwarding that bypasses the operating system kernel protocol stack. This processing method can quickly process data packets related to the IPTV data stream entering from WAN1, improving data forwarding efficiency and ensuring that data can enter the subsequent bridging and forwarding process in a timely manner.

[0078] In some embodiments, the vectorized batch processing of multiple data packets includes: organizing a group of data packets belonging to the network protocol television data stream and sharing the same target virtual LAN identifier into a vector processing unit; invoking a Layer 2 forwarding node in the vector packet processing data plane to perform a single batch processing operation on the vector processing unit, thereby achieving line-rate forwarding that bypasses the operating system kernel network protocol stack. This vectorized batch processing method helps to quickly process IPTV data stream data packets with the same target virtual LAN identifier, improving overall forwarding performance and ensuring the real-time performance of data stream forwarding.

[0079] In some embodiments, the vector packet processing data plane achieves high-performance packet forwarding by: running the driver of the first WAN interface in user space using data plane development kit technology, and directly storing the packets received by the first WAN interface in the user-space memory pre-allocated by the vector packet processing data plane; the vector packet processing data plane processes a batch of packets using vectors as processing units, and performs parallel forwarding using a multi-core CPU. This implementation fully leverages the performance advantages of multi-core CPUs, quickly processing IPTV data stream-related packets in the mixed data stream entering from WAN1, ensuring that data can be efficiently guided to the inline port through the software bridging channel, thereby completing the subsequent forwarding to the target interface.

[0080] In some embodiments, the method further includes: detecting a network protocol television configuration change message for the first wide area network interface through an upper-layer application module; generating a control command containing the target virtual local area network identifier and operation status according to the change message, and publishing the control command to the target data storage area; the control module of the vector packet processing data plane subscribing to the target data storage area, and dynamically executing the establishment, modification or deletion operation of the software bridging channel according to the control command.

[0081] In some embodiments, the operation state includes an enabled state or a disabled state; if the operation state is enabled, the creation or update operation of the software bridging channel is performed; if the operation state is disabled, the deletion operation of the software bridging channel is performed.

[0082] In some embodiments, dynamically executing the establishment, modification, or deletion of the software bridging channel includes: when the control command indicates an enabled state and the target virtual LAN identifier changes, first deleting the software bridging channel established based on the old virtual LAN identifier, and then establishing a new software bridging channel based on the new target virtual LAN identifier; when the control command indicates a disabled state, deleting the software bridging channel established based on the target virtual LAN identifier.

[0083] The mechanism by which the VPP performs VLAN sub-interface related operations when the upper-layer application receives IPTV service configuration change information is as follows: Upper-layer applications obtain change messages by responding to change events in the configuration database (CONFIG-DB). When it is determined that the port index (wanPortIndex) corresponding to the first WAN interface (WAN1) is a CPU-direct WAN port, the upper-layer application does not call traditional hardware isolation functions, but instead calls functions specifically designed for VPP paths. Next, the upper-layer application encapsulates VPP task messages, obtains data such as the kernel interface index of WAN1, the target virtual LAN identifier (IPTV VLAN ID), and the operation status, and packages this data into Data Abstraction Layer (DAL) messages (i.e., control commands), which are then published to the dedicated data table defined for IPTV VPP services in the Application-Specific Integrated Circuit Database (ASIC-DB).

[0084] The control module for the vector packet processing data plane is the Vector Packet Processing Subscription Processor (VPP handler) in the Data Management Platform (DMP) layer. It subscribes to the dedicated data table for IPTV VPPs in the Application Specific Integrated Circuit Database (ASIC-DB). When a change is detected in the table, the VPP handler triggers the corresponding function operation based on the value of the "state" field in the control command. If the "state" field value is 1 (enabled), the VPP handler compares the target VLAN ID (target iptvVid) in the message with the old ID (old iptvVid) in the local cache. If they are different, it first executes the deletion logic to clean up the old resource, and then executes the creation logic to build the new resource, thereby realizing the creation or modification operation of the VLAN sub-interface.

[0085] If the "state" field value is 0 (disabled), the VPP handler will immediately execute the deletion logic, calling the VPP API to destroy the relevant sub-interface and bridging domain, completing the deletion operation of the VLAN sub-interface. In this way, the creation, modification, or deletion operations related to software bridging channels (corresponding to VLAN sub-interface operations) can be dynamically executed based on configuration changes.

[0086] After the IPTV service is configured through the web-based management configuration interface, a VLAN sub-interface will be created based on the provided IPTV VLAN ID.

[0087] In some embodiments, the method further includes: in response to a Network Protocol Television (LPTV) configuration request for a second WAN interface, determining the port type of the second WAN interface; if the second WAN interface is a port connected to the switching chip, then bypassing the vector packet processing data plane, and directly forwarding the LTV data stream arriving at the second WAN interface to the target LTV LAN interface by configuring the hardware virtual LAN table of the switching chip.

[0088] This mechanism enables intelligent forwarding path decision-making. When users select different WAN ports as access points for IPTV services, the system can automatically distinguish the hardware connection architecture of the interface. For WAN ports connected to the switching chip, since their data flow is naturally processed by the switching chip, a pure hardware forwarding path is adopted, giving full play to the line-speed forwarding advantage of the switching chip and avoiding unnecessary software processing overhead.

[0089] In some embodiments, determining the port type of the second wide area network interface includes: querying the port attribute table of the gateway device and determining whether it is a central processing unit direct connection port based on the physical layer controller type associated with the second wide area network interface.

[0090] For example, the gateway device maintains a port attribute mapping table, which records the controller or bus information connected to each physical port, such as whether it is directly connected to the CPU's PCIe bus or connected to the internal bus of the switching chip. When it is necessary to determine the port type, the system queries the port attribute mapping table. If the controller corresponding to the second WAN interface is directly connected to the CPU, it is determined to be a "CPU-directly connected port"; otherwise, it is determined to be a "port connected to the switching chip". This determination is the fundamental basis for subsequently selecting different forwarding paths (vector packet processing software bridging path or pure hardware forwarding path).

[0091] This application's embodiments introduce Vector Packet Processing (VPP) technology to construct a high-performance software data forwarding plane independent of the Linux kernel, enabling the data forwarding path to bypass the inefficient kernel protocol stack and achieve efficient data transmission.

[0092] This application embodiment targets the high-speed wide area network (WAN) port directly output by the central processing unit (CPU) and the port connecting the CPU to the switching chip, dynamically creating a virtual local area network sub-interface corresponding to the target virtual local area network identifier (VLAN ID) of the IPTV service, which can accurately capture data packets with IPTV service VLAN tags from the mixed data stream.

[0093] In this embodiment of the application, a software bridging domain is constructed in VPP, which includes the virtual LAN sub-interfaces of the CPU on the wide area network (WAN side) and local area network (LAN side) sides, thereby building a high-speed logical data channel for IPTV service flow.

[0094] This application embodiment utilizes a software bridging domain to logically connect the physically isolated CPU high-speed WAN port with the interface of the connection switching chip, effectively solving the problem of the lack of IPTV function in the CPU high-speed WAN port.

[0095] This application embodiment places data forwarding entirely within the VPP data plane. By bypassing the kernel protocol stack and employing optimization techniques such as batch data packet processing, it ensures that IPTV data streams can still be forwarded at line-speed performance at 10G speeds, fully meeting the needs of future high-bandwidth services such as 4K / 8K ultra-high-definition video, and eliminating stuttering and packet loss.

[0096] In this embodiment, users can use the highest-speed Small Pluggable Transceiver+ (SFP+) WAN port as the uplink port to enjoy the ultimate Internet experience. At the same time, IPTV services can also run stably and perfectly on this port.

[0097] "Bypassing the kernel" means that the VPP directly takes over and processes data packets in user space, without going through the complex network protocol stack of the Linux kernel.

[0098] In traditional network data processing, when the network card receives a data packet, a hardware interrupt is triggered. At this time, the CPU needs to suspend its current work, switch to kernel mode, and the data packet is copied to kernel space. It is then passed through the kernel protocol stack layer by layer, processed, and finally copied to the user-mode application. This approach has many problems: each interrupt incurs CPU context switching overhead; data packets are copied multiple times between kernel mode and user mode; and the kernel protocol stack is designed for general use, resulting in long and complex paths.

[0099] The VPP provided in this application, upon startup, uses technologies such as the Data Plane Development Kit (DPDK) to debind the driver of the high-speed network card (such as the WAN port directly output by the CPU) from the kernel and loads a "user-space driver (PMD)" in user space. It pre-allocates a large block of contiguous physical memory in user space and configures the network card's DMA engine, enabling it to directly copy received data packets into the VPP's user-space memory. Through a mechanism of "user-space driver + exclusive memory + polling," it achieves "zero-copy" and "zero-context switching" of data packets from the network card to the VPP processor, bypassing the inefficient kernel protocol stack. In VPP, a vector is an array of data packets, i.e., a group of data packets to be processed. Each processing node processes one vector at a time, rather than processing data packets one by one. Another key performance feature of VPP is its full utilization of multi-core CPUs for parallel processing, thereby enabling batch processing of data packets.

[0100] This application applies to all network interfaces that are physically directly connected to the CPU (i.e., "CPU direct output") and not managed by a switching chip. The "highest speed SFP+ WAN port" (e.g., 10G WAN1) is just one of the most common and typical examples of this hardware architecture, but the technical principle of this solution is not limited by the port speed or physical medium.

[0101] For example, the hardware forwarding path when selecting a switch chip port is as follows: First, the switch chip SDK is invoked to perform hardware configuration: VLAN creation, uplink and downlink port configuration, PVID configuration, and hardware VLAN isolation configuration. During data forwarding, after the IPTV data stream carrying the LAN tag arrives at the WAN port of the switch chip, the switch chip queries the port members in the VLAN table, removes the VLAN tag, performs flooding in the VLAN, and forwards the data packet to the corresponding LAN port, thus completing the downlink forwarding of the IPTV data stream.

[0102] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0103] This application embodiment applies to a gateway device including a central processing unit (CPU) and a switching chip. The CPU is directly connected to at least one first wide area network (WAN) interface and connected to the switching chip through an inline port. In response to a Network Protocol Television (NTTV) configuration request for the first WAN interface, the CPU obtains a target Virtual Local Area Network (VLAN) identifier corresponding to the NTV service. This target VLAN identifier is used to specify the target NTV LAN interface. In the CPU's vector packet processing data plane, a software bridging channel corresponding to the target VLAN identifier is created and maintained. VLAN forwarding rules are configured on the switching chip to enable NTV data streams to be forwarded from the inline port to the target NTV LAN interface. When the first WAN interface receives a NTV data stream containing the target VLAN identifier, it forwards the NTV data stream to the target NTV LAN interface based on the software bridging channel and the VLAN forwarding rules. This application embodiment achieves efficient and accurate forwarding of Network Protocol Television (TCP / IP) data streams from the WAN interface to the target LAN interface by utilizing the central processing unit (CPU) to respond to the TCP / IP configuration request in a gateway device containing a CPU and a switching chip to obtain the target VLAN identifier and create a corresponding software bridging channel in the vector packet processing data plane. At the same time, it configures the VLAN forwarding rules of the switching chip. This not only improves the efficiency of data packet processing, but also ensures the flexibility and reliability of service transmission through the collaboration of software bridging and hardware forwarding.

[0104] To facilitate better implementation of the data processing method of this application embodiment, this application embodiment also provides a data processing apparatus. Please refer to... Figure 4 , Figure 4 This is a schematic diagram of the structure of a data processing apparatus provided in an embodiment of this application. The data processing apparatus 200 is applied to a gateway device including a central processing unit (CPU) and a switching chip. The CPU is directly connected to at least one first wide area network (WAN) interface and connected to the switching chip via an inline port. The data processing apparatus 200 may include: The acquisition unit 210 is configured to, in response to a network protocol television configuration request for the first wide area network interface, acquire the target virtual local area network identifier corresponding to the network protocol television service, wherein the target virtual local area network identifier is used to specify the target network protocol television local area network interface. Establishment unit 220 is used to establish a software bridging channel for the network protocol television service based on the target virtual local area network identifier in the vector packet processing data plane of the central processing unit; Configuration unit 230 is used to configure virtual LAN forwarding rules on the switching chip so that the network protocol TV data stream can be forwarded from the inline port to the target network protocol TV LAN interface; The processing unit 240 is configured to, when the first wide area network interface receives a network protocol television data stream containing the target virtual local area network identifier, forward the network protocol television data stream to the target network protocol television local area network interface based on the software bridging channel and the virtual local area network forwarding rules.

[0105] In some embodiments, the establishment unit 220 is configured to: create a bridging domain associated with the target VLAN identifier in the vector packet processing data plane of the central processing unit; create a first VLAN sub-interface on the first physical interface on the central processing unit side corresponding to the first WAN port, the first VLAN sub-interface being configured to identify the target VLAN identifier; create a second VLAN sub-interface on the second physical interface on the central processing unit side corresponding to the inline port, the second VLAN sub-interface being configured to identify the target VLAN identifier; and bridge the first VLAN sub-interface and the second VLAN sub-interface in the bridging domain to form a software bridging channel for the network protocol television data stream in the vector packet processing data plane.

[0106] In some embodiments, the establishment unit 220 is configured to create a bridging domain associated with the target virtual local area network (VLAN) identifier in the vector packet processing data plane of the central processing unit, including: calling the bridging domain management interface of the vector packet processing data plane; calculating and generating a dedicated bridging domain identifier for the network protocol television service based on a predefined maximum VLAN bridging domain identifier; and creating the bridging domain based on the dedicated bridging domain identifier, wherein the bridging domain enables media access control address learning and Layer 2 forwarding functions.

[0107] In some embodiments, the establishment unit 220 is used to bridge the first virtual LAN sub-interface and the second virtual LAN sub-interface to the bridging domain, including: calling the Layer 2 interface configuration interface of the vector packet processing data plane, switching the working mode of the first virtual LAN sub-interface and the second virtual LAN sub-interface from Layer 3 routing mode to Layer 2 bridging mode, and binding them to the bridging domain respectively.

[0108] In some embodiments, the processing unit 240 is configured to: when the first wide area network interface receives a network protocol television data stream containing the target virtual local area network identifier, the vector packet processing data plane forwards the network protocol television data stream to the inline port via the software bridging channel in user-mode; and the switching chip delivers the network protocol television data stream to the target local area network interface according to the virtual local area network forwarding rules.

[0109] In some embodiments, the software bridging channel includes a bridging domain and a first VLAN sub-interface and a second VLAN sub-interface bridged within the bridging domain; the processing unit 240 is configured to direct the Network Protocol Television (TPTV) data stream to the inline port via the software bridging channel using a user-space forwarding method by the packet processing data plane, including: identifying a TTV data stream containing the target VLAN identifier from a mixed data stream based on the first VLAN sub-interface using a user-space forwarding method by the packet processing data plane; forwarding the TTV data stream from the first VLAN sub-interface to the second VLAN sub-interface via the bridging domain; and directing the TTV data stream from the second VLAN sub-interface to the inline port.

[0110] In some embodiments, the configuration unit 230 is configured to: configure the physical port of the target network protocol TV LAN interface on the switching chip as a member port of the target virtual LAN identifier; and exclude the physical port on the switching chip connected to the first wide area network interface from the member ports of the target virtual LAN identifier.

[0111] In some embodiments, the acquisition unit 210 is further configured to: detect a network protocol television configuration change message for the first wide area network interface through an upper-layer application module; generate a control command containing the target virtual local area network identifier and operation status according to the change message; and publish the control command to the target data storage area. The establishment unit 220 is also used for the control module of the vector packet processing data plane to subscribe to the target data storage area, and dynamically execute the establishment, modification or deletion operations of the software bridging channel according to the control instructions.

[0112] In some embodiments, the processing unit 240 is further configured to: determine the port type of the second wide area network interface in response to a network protocol television configuration request for the second wide area network interface; if the second wide area network interface is a port connected to the switching chip, then bypass the vector packet processing data plane and directly forward the network protocol television data stream arriving at the second wide area network interface to the target network protocol television LAN interface by configuring the hardware virtual LAN table of the switching chip.

[0113] It should be noted that the functions of each module in the data processing device 200 in this application embodiment can be referred to the specific implementation of any embodiment in the above method embodiments, and will not be repeated here.

[0114] Each unit in the above-described device can be implemented entirely or partially through software, hardware, or a combination thereof. Each unit can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each unit.

[0115] For example, the data processing device 200 may be integrated into a terminal or server that has storage and a processor and thus computing power, or the data processing device 200 may be the terminal or server.

[0116] In some embodiments, this application also provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0117] Figure 5 A schematic diagram of the structure of the computer device provided in the embodiments of this application, such as... Figure 5 As shown, the computer device 300 may include: a communication interface 301, a memory 302, a processor 303, and a communication bus 304. The communication interface 301, memory 302, and processor 303 communicate with each other via the communication bus 304. The communication interface 301 is used for data communication between the device 300 and external devices. The memory 302 can be used to store software programs and modules, and the processor 303 runs the software programs and modules stored in the memory 302, such as the software programs for the corresponding operations in the aforementioned method embodiments.

[0118] In some embodiments, the processor 303 may invoke software programs and modules stored in the memory 302 to perform the following operations: in response to a Network Protocol Television (LPTV) configuration request for the first wide area network (WAN) interface, obtain a target Virtual Local Area Network (VLAN) identifier corresponding to the LTV service, wherein the target VLAN identifier is used to specify a target LTV LAN interface; create and maintain a software bridging channel corresponding to the target VLAN identifier in the vector packet processing data plane of the central processing unit; configure VLAN forwarding rules on the switching chip so that the LTV data stream can be forwarded from the inline port to the target LTV LAN interface; when the first WAN interface receives a LTV data stream containing the target VLAN identifier, forward the LTV data stream to the target LTV LAN interface based on the software bridging channel and the VLAN forwarding rules.

[0119] In some embodiments, the computer device 300 may be integrated into a terminal or server that has storage and a processor and thus computing power, or the computer device 300 may be the terminal or server.

[0120] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to a computer device, and the computer program causes the computer device to execute the corresponding processes in the methods described above in the embodiments of this application; for brevity, further details are omitted here.

[0121] This application also provides a computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding processes in the methods described above in the embodiments of this application. For brevity, these details will not be elaborated further here.

[0122] This application also provides a computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding processes in the methods described above in the embodiments of this application. For brevity, these details will not be elaborated further here.

[0123] It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0124] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0125] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0126] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0127] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data processing method, characterized in that, A method applicable to a gateway device comprising a central processing unit (CPU) and a switching chip, wherein the CPU is directly connected to at least one first wide area network (WAN) interface and connected to the switching chip via an inline port, the method comprising: In response to a Network Protocol Television (LPTV) configuration request for the first wide area network (WAN) interface, the target virtual local area network (VLAN) identifier corresponding to the LTV service is obtained, wherein the target VLAN identifier is used to specify the target LTV LAN interface. In the vector packet processing data plane of the central processing unit, a software bridging channel corresponding to the target virtual local area network identifier is created and maintained; Configure virtual LAN forwarding rules on the switching chip so that the network protocol TV data stream can be forwarded from the inline port to the target network protocol TV LAN interface; When the first WAN interface receives a Network Protocol Television (NTTV) data stream containing the target VLAN identifier, it forwards the NTV data stream to the target NTV LAN interface based on the software bridging channel and the VLAN forwarding rules.

2. The data processing method as described in claim 1, characterized in that, The step of establishing a software bridging channel for the network protocol television service based on the target virtual local area network identifier in the vector packet processing data plane of the central processing unit includes: In the vector packet processing data plane of the central processing unit, a bridging domain associated with the target virtual local area network identifier is created; On the first physical interface on the central processing unit side corresponding to the first wide area network port, a first virtual local area network sub-interface is created, and the first virtual local area network sub-interface is configured to identify the target virtual local area network identifier. On the second physical interface on the central processing unit side corresponding to the inline port, a second virtual LAN sub-interface is created, and the second virtual LAN sub-interface is configured to identify the target virtual LAN identifier; The first VLAN sub-interface and the second VLAN sub-interface are bridged in the bridging domain to form a software bridging channel for the network protocol television data stream in the vector packet processing data plane.

3. The data processing method as described in claim 2, characterized in that, The step of creating a bridging domain associated with the target virtual local area network (VLAN) identifier in the vector packet processing data plane of the central processing unit includes: Invoke the bridging domain management interface of the vector packet processing data plane; Based on the predefined maximum local area network bridging domain identifier, a dedicated bridging domain identifier for the network protocol television service is calculated and generated. The bridging domain is created based on the dedicated bridging domain identifier, wherein the bridging domain enables media access control address learning and Layer 2 forwarding functions.

4. The data processing method as described in claim 2, characterized in that, The step of bridging the first VLAN sub-interface and the second VLAN sub-interface within the bridging domain includes: The Layer 2 interface configuration interface of the vector packet processing data plane is invoked to switch the working mode of the first VLAN sub-interface and the second VLAN sub-interface from Layer 3 routing mode to Layer 2 bridging mode, and bind them to the bridging domain respectively.

5. The data processing method as described in claim 1, characterized in that, When the first WAN interface receives a Network Protocol Television (NTTV) data stream containing the target VLAN identifier, based on the software bridging channel and the VLAN forwarding rules, forwarding the NTV data stream to the target NTV LAN interface includes: When the first WAN interface receives a Network Protocol Television (NTTV) data stream containing the target VLAN identifier, the Vector Packet Processing Data Plane redirects the NTV data stream to the inline port via the software bridging channel in user-mode forwarding. The switching chip delivers the network protocol TV data stream to the target LAN interface according to the virtual LAN forwarding rules.

6. The data processing method as described in claim 5, characterized in that, The software bridging channel includes a bridging domain, and a first virtual LAN sub-interface and a second virtual LAN sub-interface bridged in the bridging domain; The step of directing the network protocol television data stream to the inline port via the software bridging channel through the vector packet processing data plane in user-space forwarding mode includes: The vector packet processing data plane, in user-space forwarding mode, identifies the network protocol TV data stream containing the target virtual local area network (VLAN) identifier from the mixed data stream based on the first VLAN sub-interface; The network protocol television data stream is forwarded from the first virtual LAN sub-interface to the second virtual LAN sub-interface through the bridging domain; The network protocol television data stream is directed from the second virtual LAN sub-interface to the inline port.

7. The data processing method as described in claim 1, characterized in that, Configuring virtual LAN forwarding rules on the switching chip includes: On the switching chip, the physical port to which the target network protocol TV LAN interface belongs is configured as a member port of the target virtual LAN identifier; The physical port on the switching chip connected to the first WAN interface is excluded from the member ports of the target VLAN identifier.

8. The data processing method as described in claim 1, characterized in that, The method further includes: The upper-layer application module detects network protocol TV configuration change messages for the first WAN interface. Based on the change message, a control command containing the target virtual local area network identifier and operation status is generated, and the control command is published to the target data storage area; The control module of the vector packet processing data plane subscribes to the target data storage area and dynamically executes the establishment, modification, or deletion operations of the software bridging channel according to the control instructions.

9. The data processing method as described in claim 1, characterized in that, The method further includes: In response to a Network Protocol Television (TCP) configuration request for the second wide area network (WAN) interface, determine the port type of the second WAN interface; If the second WAN interface is a port connected to the switching chip, the vector packet processing data plane is bypassed, and the network protocol TV data stream arriving at the second WAN interface is forwarded to the target network protocol TV LAN interface directly by configuring the hardware virtual LAN table of the switching chip.

10. A data processing apparatus, characterized in that, A gateway device comprising a central processing unit (CPU) and a switching chip, wherein the CPU is directly connected to at least one first wide area network (WAN) interface and connected to the switching chip via an inline port, the device comprising: The acquisition unit is configured to, in response to a Network Protocol Television (LPTV) configuration request for the first wide area network interface, acquire the target virtual local area network (VLAN) identifier corresponding to the LTV service, wherein the target VLAN identifier is used to specify the target LTV VLAN interface. The establishment unit is used to establish a software bridging channel for the network protocol television service based on the target virtual local area network identifier in the vector packet processing data plane of the central processing unit. A configuration unit is used to configure virtual LAN forwarding rules on the switching chip so that the network protocol TV data stream can be forwarded from the inline port to the target network protocol TV LAN interface. The processing unit is configured to, when the first wide area network interface receives a network protocol television data stream containing the target virtual local area network identifier, forward the network protocol television data stream to the target network protocol television local area network interface based on the software bridging channel and the virtual local area network forwarding rules.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the data processing method as described in any one of claims 1-9.

12. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program, and the processor executing the data processing method as described in any one of claims 1-9 by calling the computer program stored in the memory.

13. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the data processing method according to any one of claims 1-9.