Method and system for realizing dynamic service adaptation, electronic equipment and storage medium

By using optical network units to identify and dynamically process virtual LAN tags in real time, the problem of insufficient flexibility caused by static configuration in passive optical network systems is solved. This enables user devices to connect freely and adapt automatically, reduces operation and maintenance costs, and is suitable for large-scale network deployments.

CN121865137APending Publication Date: 2026-04-14SHANGHAI TONGKANG CHUANGXIN TECHNOLOGY 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-12
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The VLAN handling method of optical network unit ports in existing passive optical network systems is static configuration, which lacks flexibility. This means that reconfiguration is required when user equipment is replaced, increasing the complexity and cost of operation and maintenance, and making it unsuitable for large-scale network deployment.

Method used

The optical network unit receives message information in real time, identifies service types, and dynamically adds or removes virtual LAN tags to achieve dynamic service adaptation. The optical line terminal configures service templates and sends planned virtual LAN information to the optical network unit. The optical network unit stores and processes message information to automatically identify and adapt service types.

Benefits of technology

It decouples services from the physical ports of the optical network unit, allowing users to connect devices at will. The optical network unit automatically identifies and processes service types, reducing operation and maintenance costs and making it suitable for large-scale network deployments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121865137A_ABST
    Figure CN121865137A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of dynamic service adaptation, and discloses a method and system for achieving dynamic service adaptation, electronic equipment and a storage medium, and the method comprises the steps: receiving message information in real time through an optical network unit; identifying a service type and a message type of the message information; according to the identified service type and the message type, adding or stripping a corresponding planning network virtual local area network label for the message information to obtain target message information; and sending the target message information to a corresponding terminal according to the message type. The method has the beneficial technical effects that the decoupling of the service and the physical port of the optical network unit is realized, a user can connect the equipment to any local area network port of the optical network unit, and the optical network unit can perform correct network virtual local area network processing, so that the user can use and install the equipment conveniently, and the user experience is improved. The existing passive optical network architecture does not need to be greatly changed, and the method is easy to implement and popularize.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of dynamic service adaptation, and in particular to a method, system, electronic device and storage medium for dynamic service adaptation. Background Technology

[0002] Passive optical networks (PONs) are a key technology for achieving fiber-to-the-home (FTTH). A typical PON system consists of optical line terminals (OLTs) at the central office, optical network units (ONUs) at the terminals, and an optical distribution network connecting them. In existing PON systems, to differentiate between different service types, a specific VLAN (Virtual Local Area Network) is typically assigned to each service. For example, internet access services use VLAN 10, while IPTV (Internet Protocol Television) services use VLAN 20.

[0003] In existing technologies, VLAN handling (such as adding or removing VLAN tags) for optical network unit ports is typically statically configured. This means network administrators need to manually bind a specific LAN port of the optical network unit to a fixed service VLAN. For example, port 1 might be configured as an internet access port (fixed association with VLAN 10), and port 2 as an IPTV port (fixed association with VLAN 20). This configuration method lacks flexibility; users cannot arbitrarily change the ONU port connected to the device, otherwise services will not function properly. Furthermore, it increases the complexity and cost of operation and maintenance, as each change in user services or port adjustment requires reconfiguration of the optical network unit, which is detrimental to large-scale network deployment and maintenance. Summary of the Invention

[0004] Based on this, it is necessary to address the existing problems in implementing dynamic service adaptation by proposing a method, system, electronic device, and storage medium for achieving dynamic service adaptation.

[0005] A method for implementing dynamic business adaptation, the method comprising: The optical network unit receives message information in real time; wherein, the optical network unit stores the planned network virtual local area network information for various different service types. Identify the service type and message type of the message information; Based on the identified service type and message type, add or remove the corresponding planned network virtual local area network (VLAN) tag from the message information to obtain the target message information; The target message information is sent to the corresponding terminal according to the message type.

[0006] Further, the step of adding or removing the corresponding planned network virtual LAN tag for the message information based on the identified service type and message type to obtain the target message information includes: When the message type is an uplink message, the service attributes of the message information are identified to obtain the corresponding service type; Based on the service type, a corresponding planned network virtual local area network (VLAN) tag is added to the message information to form the target message information.

[0007] Further, the step of adding or removing the corresponding planned network virtual LAN tag for the message information based on the identified service type and message type to obtain the target message information includes: When the message type is a downlink message, the service attributes of the message information are identified to obtain the corresponding service type; Based on the service type, the planning network virtual local area network label of the message information is stripped to form the target message information.

[0008] Furthermore, prior to the step of receiving message information through the optical network unit, the method further includes: Configure service templates for multiple virtual LAN channels on the optical line terminal; The planned network virtual local area network information of the service template of the optical line terminal is sent to the corresponding optical network unit through a preset management channel; The optical network unit receives and locally stores the planned network virtual local area network information, forming a mapping relationship between service attributes and the planned network virtual local area network.

[0009] Further, the step of adding or removing the corresponding planned network virtual LAN tag for the message information based on the identified service type and message type to obtain the target message information includes: Detect whether the message information is an IPTV message; If the message information is an IPTV message, then the corresponding IPTV network virtual LAN tag is added or removed from the message information to obtain the target message information.

[0010] Furthermore, in the step of identifying the service type and message type of the message information, the step of identifying the service type includes: Obtain the identification information of the message information; wherein, the identification information includes at least one of the following: the source MAC address, destination MAC address, Ethernet type, source IP address in the IP header, destination IP address in the IP header, protocol type in the IP header, or Differential Service Code Point (DSCP) field in the IP header; The service type is determined based on the identification information.

[0011] A system for dynamic service adaptation, used to implement the method for dynamic service adaptation as described above, wherein the system is deployed in a passive optical network and includes an optical line terminal and at least one optical network unit; The optical line terminal is configured to manage and distribute planning network virtual local area network information corresponding to different service types; The optical network unit is configured to identify the service attributes of uplink and downlink packets to determine their service types. For uplink messages, dynamically add the corresponding planned network virtual LAN tag according to the identified service type; For downlink messages, the outer planning network virtual LAN label is dynamically stripped based on the identified service type.

[0012] Furthermore, the optical network unit includes: The service identification module is used to identify the service attributes of a message by parsing its header information. The network virtual LAN processing module is used to perform the addition and removal of network virtual LAN tags; The data storage module is used to locally store the mapping relationship between the business attributes and the planned network virtual local area network.

[0013] An electronic device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps: The optical network unit receives message information in real time; wherein, the optical network unit stores the planned network virtual local area network information for various different service types. Identify the service type and message type of the message information; Based on the identified service type and message type, add or remove the corresponding planned network virtual local area network (VLAN) tag from the message information to obtain the target message information; The target message information is sent to the corresponding terminal according to the message type.

[0014] A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the following steps: The optical network unit receives message information in real time; wherein, the optical network unit stores the planned network virtual local area network information for various different service types. Identify the service type and message type of the message information; Based on the identified service type and message type, add or remove the corresponding planned network virtual local area network (VLAN) tag from the message information to obtain the target message information; The target message information is sent to the corresponding terminal according to the message type.

[0015] The beneficial effects of this invention are: it decouples services from the physical ports of the optical network unit, allowing users to connect devices such as internet-connected PCs and internet protocol TV set-top boxes to any local area network port of the optical network unit. The optical network unit can automatically identify the service type and perform the correct virtual local area network processing, greatly facilitating user use and installation. It does not require major modifications to the existing passive optical network architecture and is easy to implement and promote. Attached Figure Description

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

[0017] in: Figure 1 This is an application environment diagram for implementing a method for dynamic service adaptation in one embodiment. Figure 2 This is a flowchart illustrating a method for implementing dynamic service adaptation in one embodiment; Figure 3 This is a structural block diagram of a device for implementing dynamic service adaptation in one embodiment; Figure 4 This is a structural block diagram of an electronic device in one embodiment. Detailed Implementation

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

[0019] Figure 1 This is a diagram illustrating an application environment for implementing dynamic service adaptation in one embodiment. (Refer to...) Figure 1This method for achieving dynamic service adaptation is applied to a system that implements dynamic service adaptation. The system includes a terminal 110 and a server 120. The terminal 110 and server 120 are connected via a network. The terminal 110 can be a desktop terminal or a mobile terminal; a mobile terminal can be at least one of a mobile phone, tablet, or laptop. The server 120 can be a standalone server or a server cluster consisting of multiple servers. The terminal 110 is used to receive message information, and the server 120 is used to send target message information to the corresponding terminal.

[0020] like Figure 2 As shown, in one embodiment, a method for implementing dynamic service adaptation is provided. This method can be applied to both terminals and servers; this embodiment uses terminal application as an example. The method for implementing dynamic service adaptation specifically includes the following steps: S1: Receive message information in real time through the optical network unit; wherein, the optical network unit stores the planned network virtual local area network information for various different service types; S2: Identify the service type and message type of the message information; S3: Based on the identified service type and message type, add or remove the corresponding planned network virtual LAN tag from the message information to obtain the target message information; S4: Send the target message information to the corresponding terminal according to the message type.

[0021] As described in step S1 above, message information is received in real time through the optical network unit. The optical network unit (ONU) receives data packets transmitted in the network in real time. As a bridge between user equipment and optical line terminal (OLT), the ONU has the necessary photoelectric conversion and data processing capabilities. Specifically, the ONU is connected to the OLT via optical fiber and various user equipment (such as PCs, IPTV set-top boxes, etc.) are connected to its LAN port. During this process, the ONU monitors and receives all incoming Ethernet frames in real time to ensure the lowest possible latency. While receiving messages, the ONU internally stores pre-configured virtual local area network (VLAN) information for various service types. This information is usually distributed from the OLT through management protocols (such as OMCI) and can be used to identify data streams of different service types. This storage mechanism ensures that the ONU can immediately perform the next step of data processing the moment it receives a message, without having to query or wait for configuration.

[0022] As described in step S2 above, the service type and message type of the message information are identified. After successfully receiving the message information, these messages are analyzed and identified. The received Ethernet messages (i.e., message information) are parsed, including their header information and payload, to determine the specific service type and message type of the message. The message type refers to uplink messages and downlink messages; while the service type is determined by the purpose of the message sender, which can typically be Internet traffic, IPTV traffic, or VoIP traffic, etc. The service can be identified by the destination address and destination port of the message to distinguish between Internet access requests and video streams, voice streams, etc. Secondly, the ONU needs to have sufficient logic to quickly call the stored service mapping information to determine whether the received message conforms to any preset service mode.

[0023] As described in step S3 above, based on the identified service type and message type, the corresponding planned VLAN tag is added or removed from the message information. When the ONU successfully identifies the message information, it dynamically adds or removes VLAN tags based on the message's service type and message type. The role of VLAN tags is to achieve virtual isolation and priority control of different types of data traffic through network policies. Specifically, based on the identified service information, the ONU decides whether to add a planned VLAN tag to the received message (in the uplink case) or remove an existing VLAN tag (in the downlink case). When adding a VLAN tag, the ONU uses the planned VLAN information received from the OLT to search the stored mapping relationship and automatically adds the corresponding VLAN ID to the message. For example, if the identified service type is Internet traffic, the ONU will add the VLAN ID corresponding to the Internet service (such as VLAN 10) and embed this tag into the message. Conversely, for downlink packets from the OLT, the ONU will remove the corresponding VLAN tag based on the identified service type (e.g., remove VLAN tag 20) to ensure that the packet is untagged when it arrives at the user equipment, so as to facilitate the end user's reception and processing.

[0024] As described in step S4 above, the target packet information is sent to the corresponding terminal according to the packet type. After VLAN tagging is completed, the processed target packet information is sent to the corresponding user terminal device. Based on the received packet type and according to the pre-set network logic and forwarding rules, it is ensured that the target packet can accurately and quickly reach the correct destination. For example, for uplink packets, the ONU will forward the packet with the VLAN tag to the OLT to initiate a request to the external network, while for downlink packets, the ONU will transmit the original packet without the tag to the connected terminal device (such as a PC, IPTV set-top box, etc.). In addition, the ONU usually maintains a MAC address table during this process to quickly map the entry and exit points of each terminal device, thereby further improving forwarding efficiency, ensuring smooth interaction between users and the network, and realizing effective management and optimization of network resources. By completing this process, the entire dynamic service adaptation operation forms a closed loop, ensuring multi-service coordination and efficient operation in the optical network environment.

[0025] In one embodiment, step S3, which involves adding or removing the corresponding planned network virtual local area network (VLAN) tag from the message information based on the identified service type and message type to obtain the target message information, includes: S301: When the message type is an uplink message, identify the service attributes of the message information to obtain the corresponding service type; S302: Add the corresponding planned network virtual local area network tag to the message information based on the service type to form the target message information.

[0026] As described in steps S301-S302 above, the Optical Network Unit (ONU) determines whether the received message type is an uplink message. Specifically, this can be done by examining the source and destination addresses of the message. Generally, an uplink message refers to a request or data stream sent from a user-end device (such as a PC, IPTV set-top box, etc.) to the network. For example, when a user accesses the Internet, various requests sent to the server (such as HTTP requests, DNS queries, etc.) are all uplink messages. Most messages are confirmed to be uplink messages, and the ONU parses the service attributes within them to accurately identify their service type. The identification of service attributes generally relies on several key elements, such as the destination IP address and source port number. In specific implementations, the ONU can access the service mapping table issued by the OLT and use this table to match and confirm these key elements, thereby determining the service type of the message. For example, if the identified destination IP address falls within a predetermined IP range, the packet can be identified as IPTV traffic; otherwise, it may be internet traffic. This simple parsing operation not only provides a basis for adding VLAN tags later, but also helps improve network management efficiency.

[0027] After identifying the service attributes, the ONU adds corresponding Virtual Local Area Network (VLAN) tags to the packet information based on the identified service type. Specifically, the ONU queries its pre-stored VLAN mapping table according to the acquired service type. This mapping table lists each service type and its corresponding VLAN ID, ensuring that specific service traffic is labeled with different VLANs. For example, if the service type is identified as Internet traffic, the ONU adds a VLAN 10 tag according to the mapping table; if it is identified as IPTV traffic, it adds a VLAN 20 tag. When adding VLAN tags, the ONU uses the Ethernet frame structure in the packet to add VLAN information to the original packet header. Specifically, this step involves operations based on the 802.1Q protocol, that is, combining the VLAN identifier with other information in the packet. In this way, the resulting target packet information is an uplink packet containing VLAN tags, which ensures that data flowing to the OLT is processed according to the preset plan in subsequent steps.

[0028] In one embodiment, step S3, which involves adding or removing the corresponding planned network virtual local area network (VLAN) tag from the message information based on the identified service type and message type to obtain the target message information, includes: S311: When the message type is a downlink message, identify the service attributes of the message information to obtain the corresponding service type; S312: Based on the service type, strip the planning network virtual local area network label of the message information to form the target message information.

[0029] As described in steps S311-S312 above, the Optical Network Unit (ONU) first confirms whether the received message type belongs to a downlink message. Downlink messages typically refer to data streams originating from the Optical Line Terminal (OLT). These data streams are information sent from the network to the user equipment and may include web page content, video streams, software updates, etc. Once the message is determined to be a downlink message, the ONU needs to identify the message's information to determine its service attributes and corresponding service type. To this end, the ONU performs deep parsing of the message, focusing on key information in its Ethernet frame header and payload. Specifically, the ONU can analyze the VLAN tag, destination IP address, source IP address, and other protocol header information in the message. This information can determine the specific type of the message. For example, by analyzing the destination IP address, the ONU can identify the specific device serving the user (such as an IPTV box or PC), and thus determine the service type carried by the message, such as ordinary data stream, video stream, or others. Simultaneously, the ONU may access its internal service mapping table to match the message's characteristics, ensuring that the service attributes are accurately identified. After identifying the service attributes of downlink packets, the packet information is processed by stripping the Virtual Local Area Network (VLAN) tag from the planned network to form the target packet information. To ensure that downlink packets can be correctly identified and processed by user terminals after transmission through the network, the ONU needs to remove the VLAN tag from the uplink packets. This process is performed based on the identified service type to determine the specific VLAN ID to be removed. For example, if the packet type has been identified as IPTV traffic that needs to be released, the ONU will find the corresponding VLAN ID according to the stored service mapping table and remove the tag from the packet, thus delivering the original Ethernet frame to the user. This ensures that data can be legally received in user equipment and that user equipment will not be unable to identify or process this information due to incorrect labeling.

[0030] In one embodiment, before step S1 of receiving message information via the optical network unit, the method further includes: S001: Configure service templates for multiple virtual LAN channels on the optical line terminal; S002: The planned network virtual local area network information of the service template of the optical line terminal is sent to the corresponding optical network unit through a preset management channel; S003: The optical network unit receives and locally stores the planned network virtual local area network information, forming a mapping relationship between service attributes and the planned network virtual local area network.

[0031] As described in steps S001-S003 above, multiple service templates for Virtual Local Area Network (VLAN) channels are configured on the Optical Line Terminal (OLT) to effectively separate and manage different types of service flows (such as Internet access, IPTV, VoIP, etc.) within the same physical network. Different service templates for different service types are set in the OLT interface or via command-line tools. These templates typically contain information such as the VLAN ID, bandwidth configuration, priority, and Quality of Service (QoS) parameters for each service. Setting these service templates allows the OLT to classify incoming service traffic, ensuring that network resources are allocated according to service importance and demand. For example, Internet access services might be configured as VLAN 10, while IPTV traffic might be configured as VLAN 20, with settings for bandwidth, latency, and other network parameters to ensure the stability and smoothness of the video stream. This configuration not only improves network efficiency but also ensures that different services do not interfere with each other, avoiding service quality degradation due to network congestion or other issues. Furthermore, in subsequent processing, the OLT will implement dynamic VLAN management based on the configured service templates, laying a solid foundation for upstream packet processing.

[0032] The OLT utilizes management protocols such as OMCI (Optical Network Configuration Interface) or SNMP (Simple Network Management Protocol) to distribute the configured VLAN information to the corresponding ONUs through these channels. This operation typically occurs during network initialization and after network topology changes, ensuring that the ONU promptly updates its internally stored service and VLAN mapping information. The ONU reads the VLAN information from the OLT, parses the relevant data, and stores it in its internal memory. This information includes the VLAN IDs corresponding to each service type and potential other quality of service parameters (such as bandwidth, priority, and latency). Through this storage mechanism, the ONU can establish a complete mapping relationship between service attributes and VLAN IDs. For example, if the service type is identified as IPTV, it might correspond to VLAN 20. The records stored in the mapping table help the ONU make quick responses when processing subsequent packets. This mapping relationship eliminates the need for the ONU to query the stored configuration every time it receives a packet, significantly improving the response speed and efficiency of data processing.

[0033] In one embodiment, step S3, which involves adding or removing the corresponding planned network virtual local area network (VLAN) tag from the message information based on the identified service type and message type to obtain the target message information, includes: S321: Detect whether the message information is an IPTV message; S322: If the message information is an IPTV message, then add or remove the corresponding IPTV network virtual LAN tag to the message information to obtain the target message information.

[0034] As described in steps S321-S322 above, the Optical Network Unit (ONU) detects whether the received packet information belongs to IPTV packets. This detection process is typically performed by analyzing packet header information. The ONU examines multiple fields in the received packet to determine its service type. Specifically, the ONU can parse the packet's destination MAC address, destination IP address, and protocol fields at the IP layer (such as UDP or RTP). For IPTV services, packets usually have a specific destination MAC or IP range and use UDP as the bearer protocol. The UDP port number can usually point to a specific video streaming service. In addition, combined with the initially configured VLAN mapping table, the ONU can quickly find and confirm that the packet belongs to IPTV traffic. The ONU can quickly distinguish different types of service flows in complex network environments, providing a basis for decision-making in subsequent VLAN tag addition or removal operations.

[0035] If the received message is confirmed to be an IPTV message, the ONU will add an appropriate VLAN tag to the IPTV message based on the pre-stored IPTV service attributes and VLAN mapping table. Typically, IPTV services may be assigned to a specific VLAN ID (e.g., VLAN 20). During this process, the ONU modifies the Ethernet header of the message, adding the corresponding VLAN tag to the beginning of the message according to the IEEE 802.1Q standard. This not only effectively distinguishes IPTV traffic from other types of traffic but also allows network devices to prioritize traffic based on quality of service. Through this operation, the ONU can effectively manage constantly changing network traffic, ensuring that different types of messages are accurately processed and forwarded in the network, ultimately providing users with a smooth IPTV service.

[0036] In one embodiment, step S2, which identifies the service type and message type of the message information, includes the step of identifying the service type, which includes: S201: Obtain the identification information of the message information; wherein, the identification information includes at least one of the following: the source MAC address, destination MAC address, Ethernet type, source IP address in the IP header, destination IP address in the IP header, protocol type in the IP header, or Differential Service Code Point (DSCP) field in the IP header; S202: Determine the service type based on the identification information.

[0037] Reference Figure 3The present invention also provides a system for dynamic service adaptation, which implements the method for dynamic service adaptation described above. The system is deployed in a passive optical network and includes an optical line terminal 902 and at least one optical network unit 904. The optical line terminal 902 is configured to manage and distribute planning network virtual local area network information corresponding to different service types; The optical network unit 904 is configured to identify the service attributes of uplink and downlink packets to determine their service types. For uplink messages, dynamically add the corresponding planned network virtual LAN tag according to the identified service type; For downlink messages, the outer planning network virtual LAN label is dynamically stripped based on the identified service type.

[0038] In this embodiment, the optical line terminal (OLT) is connected to the optical network unit (ONU) via an optical splitter. Each ONU has multiple LAN ports, which can connect multiple user devices. Traditionally, once the ONU ports are configured, the network equipment is fixed, and various devices in the field must be plugged into the ONU LAN side in a specified order. For example, internet access must be plugged into LAN1, and IPTV must be plugged into LAN2. In this embodiment, it is not necessary to connect the devices to the ONU in a specified port order; internet access can be plugged into either LAN1 or LAN2, and similarly, IPTV can be plugged into either LAN1 or LAN2. Forwarding via the specified VLAN channel is still possible.

[0039] In one embodiment, the optical network unit 904 includes: The service identification module is used to identify the service attributes of a message by parsing its header information. The network virtual LAN processing module is used to perform the addition and removal of network virtual LAN tags; The data storage module is used to locally store the mapping relationship between the business attributes and the planned network virtual local area network.

[0040] The beneficial effects of this invention are: it decouples services from the physical ports of the optical network unit (ONU). Users can connect devices such as internet-connected PCs and internet protocol TV set-top boxes to any LAN port of the ONU, and the ONU can automatically identify the service type and perform the correct virtual LAN processing, greatly facilitating user operation and installation. It avoids the cumbersome configuration of static port virtual LAN binding. Network administrators only need to issue service plans uniformly on the OLT side, and the ONU can automatically complete the adaptation, significantly reducing maintenance costs and the risk of human configuration errors, making it particularly suitable for large-scale, high-density fiber optic access network deployments. This invention fully utilizes the multi-network virtual LAN functions already supported by existing OLT equipment. The key innovation lies in the dynamic identification and processing logic on the ONU side, requiring no major modifications to the existing passive optical network architecture, making it easy to implement and promote.

[0041] Figure 4 An internal structural diagram of an electronic device in one embodiment is shown. This electronic device can specifically be a terminal or a server, and more specifically, a computer device. Figure 4 As shown, the electronic device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement a method for dynamic service adaptation. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to implement a method for dynamic service adaptation. Those skilled in the art will understand that… Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0042] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps: The optical network unit receives message information in real time; wherein, the optical network unit stores the planned network virtual local area network information for various different service types. Identify the service type and message type of the message information; Based on the identified service type and message type, add or remove the corresponding planned network virtual local area network (VLAN) tag from the message information to obtain the target message information; The target message information is sent to the corresponding terminal according to the message type.

[0043] This achieves decoupling between services and the physical ports of the optical network unit. Users can connect devices such as Internet PCs and Internet Protocol TV set-top boxes to any LAN port of the optical network unit. The optical network unit can automatically identify the service type and perform the correct virtual LAN processing, which greatly facilitates user use and installation. It does not require major modifications to the existing passive optical network architecture and is easy to implement and promote.

[0044] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, causes the processor to perform the following steps: The optical network unit receives message information in real time; wherein, the optical network unit stores the planned network virtual local area network information for various different service types. Identify the service type and message type of the message information; Based on the identified service type and message type, add or remove the corresponding planned network virtual local area network (VLAN) tag from the message information to obtain the target message information; The target message information is sent to the corresponding terminal according to the message type.

[0045] This achieves decoupling between services and the physical ports of the optical network unit. Users can connect devices such as Internet PCs and Internet Protocol TV set-top boxes to any LAN port of the optical network unit. The optical network unit can automatically identify the service type and perform the correct virtual LAN processing, which greatly facilitates user use and installation. It does not require major modifications to the existing passive optical network architecture and is easy to implement and promote.

[0046] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0047] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0048] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for implementing dynamic business adaptation, characterized in that, The method includes: The optical network unit receives message information in real time; wherein, the optical network unit stores the planned network virtual local area network information for various different service types. Identify the service type and message type of the message information; Based on the identified service type and message type, add or remove the corresponding planned network virtual local area network (VLAN) tag from the message information to obtain the target message information; The target message information is sent to the corresponding terminal according to the message type.

2. The method for implementing dynamic service adaptation according to claim 1, characterized in that, The step of adding or removing the corresponding planned network virtual local area network (VLAN) tag from the message information based on the identified service type and message type to obtain the target message information includes: When the message type is an uplink message, the service attributes of the message information are identified to obtain the corresponding service type; Based on the service type, a corresponding planned network virtual local area network (VLAN) tag is added to the message information to form the target message information.

3. The method for implementing dynamic service adaptation according to claim 1, characterized in that, The step of adding or removing the corresponding planned network virtual local area network (VLAN) tag from the message information based on the identified service type and message type to obtain the target message information includes: When the message type is a downlink message, the service attributes of the message information are identified to obtain the corresponding service type; Based on the service type, the planning network virtual local area network label of the message information is stripped to form the target message information.

4. The method for implementing dynamic service adaptation according to claim 1, characterized in that, Before the step of receiving message information through the optical network unit, the method further includes: Configure service templates for multiple virtual LAN channels on the optical line terminal; The planned network virtual local area network information of the service template of the optical line terminal is sent to the corresponding optical network unit through a preset management channel; The optical network unit receives and locally stores the planned network virtual local area network information, forming a mapping relationship between service attributes and the planned network virtual local area network.

5. The method for implementing dynamic service adaptation according to claim 1, characterized in that, The step of adding or removing the corresponding planned network virtual local area network (VLAN) tag from the message information based on the identified service type and message type to obtain the target message information includes: Detect whether the message information is an IPTV message; If the message information is an IPTV message, then the corresponding IPTV network virtual LAN tag is added or removed from the message information to obtain the target message information.

6. The method for implementing dynamic service adaptation according to claim 1, characterized in that, The step of identifying the service type and message type of the message information includes the following steps: Obtain the identification information of the message information; wherein, the identification information includes at least one of the following: the source MAC address, destination MAC address, Ethernet type, source IP address in the IP header, destination IP address in the IP header, protocol type in the IP header, or Differential Service Code Point (DSCP) field in the IP header; The service type is determined based on the identification information.

7. A system for dynamic service adaptation, used to implement the method for dynamic service adaptation as described in any one of claims 1-6, characterized in that, The system is deployed in a passive optical network and includes an optical line terminal and at least one optical network unit; The optical line terminal is configured to manage and distribute planning network virtual local area network information corresponding to different service types; The optical network unit is configured to identify the service attributes of uplink and downlink packets to determine their service types. For uplink messages, dynamically add the corresponding planned network virtual LAN tag according to the identified service type; For downlink messages, the outer planning network virtual LAN label is dynamically stripped based on the identified service type.

8. The system for dynamic service adaptation according to claim 7, characterized in that, The optical network unit includes: The service identification module is used to identify the service attributes of a message by parsing its header information. The network virtual LAN processing module is used to perform the addition and removal of network virtual LAN tags; The data storage module is used to locally store the mapping relationship between the business attributes and the planned network virtual local area network.

9. A computer-readable storage medium, characterized in that, The system stores a computer program that, when executed by a processor, causes the processor to perform the steps of the method for implementing dynamic service adaptation as described in any one of claims 1 to 6.

10. An electronic device, characterized in that, The device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method for implementing dynamic service adaptation as described in any one of claims 1 to 6.