A data packet forwarding method and device in an FTTR scenario and a medium
By establishing a data service mapping table at the PON layer in the FTTR scenario, the data packets of the sub-gateway are forwarded directly at the PON layer, which solves the problem of high forwarding pressure on the main gateway and achieves fast forwarding and system stability.
Patent Information
- Application Number
- CN202511150616.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-18
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2045-08-18
AI Technical Summary
In FTTR scenarios, when the main gateway undertakes a large number of data forwarding tasks for sub-gateways, traffic congestion and service delays are likely to occur, and even system paralysis may occur. Existing technologies are difficult to solve this problem effectively.
A data service mapping table is established at the PON layer, and data packets from sub-gateways are forwarded directly at the PON layer, avoiding Layer 2 and Layer 3 forwarding through the main gateway. This achieves separation of management and control and reduces the forwarding pressure on the main gateway.
By directly forwarding data packets at the PON layer, the forwarding pressure on the main gateway is reduced, the speed and reliability of data transmission are improved, and system failure is avoided.
Smart Images

Figure CN120916085B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the FTTR (Fiber To The Room) technical field, in particular to a data packet forwarding method and device in the FTTR scenario and a medium. BACKGROUND
[0002] In recent years, the FTTR technology develops rapidly, and its application field is more and more extensive. The service demand for the sub-gateway is also more and more rich, especially the FTTR-B (Fiber To The Room-Business) device applied to the enterprise scenario. A main gateway is hung with many sub-gateways, and the services of the sub-gateways are more and more rich.
[0003] The existing FTTR scheme needs to directly forward the data services of all sub-gateways through the main gateway. When the number of sub-gateways hung under the main gateway is very large, and the service quantity of the sub-gateways is large, the forwarding pressure of the main gateway is very large, and traffic congestion is easily formed, which causes the service delay or even interruption of the user, and reduces the actual experience of the user. Since the main gateway also undertakes the management task of the sub-gateway, it may cause the disconnection of the sub-gateway, and cause the paralysis of the entire FTTR system. SUMMARY
[0004] The present application provides a data packet forwarding method and device in the FTTR scenario and a medium. The data service mapping table can be established at the PON (Passive Optical Network) level. The data packet of the sub-gateway is directly forwarded at the PON level, and is no longer forwarded through the two layers and three layers of the main gateway. The rapid forwarding of the service is realized, and the forwarding pressure of the main gateway is reduced.
[0005] In the first aspect, the present application provides a data packet forwarding system in the FTTR scenario, which comprises a network management device, an OLT (Optical Line Terminal) device, a main gateway and a sub-gateway.
[0006] The network management device is configured to send an instruction to the main gateway to open the service rapid forwarding function for the target sub-gateway in response to the instruction.
[0007] The main gateway is configured to interact with the OLT device based on an indication sent by a network management device, determine a main gateway service ID allocated by the OLT device for different service channels, an uplink service ID allocated by the OLT device for a target service channel of a target sub-gateway, allocate a downlink service ID for the target service channel of the target sub-gateway, establish a data service mapping table based on a target main gateway service ID, the uplink service ID, the downlink service ID, and a target sub-gateway identifier SN, the target main gateway service ID being a main gateway service ID corresponding to the target service channel, and forward data packets of the target service channel between an uplink passive optical network (PON) port and a downlink PON port of the main gateway based on the data service mapping table.
[0008] The OLT device is configured to interact with a main gateway, allocate corresponding main gateway service IDs for different service channels of the main gateway, allocate corresponding uplink service IDs for a target service channel of a target sub-gateway, and send downlink data packets of the target service channel to the target sub-gateway, the downlink data packets carrying the corresponding uplink service IDs allocated by the OLT device for the target service channel of the target sub-gateway.
[0009] The sub-gateway is configured to obtain a downlink service ID allocated by a main gateway for a target service channel of the sub-gateway, and send uplink data packets of the target service channel to the main gateway, the uplink data packets carrying the downlink service ID.
[0010] The main gateway establishes a data service mapping table between an uplink PON port and a downlink PON port, thereby achieving fast forwarding of data services of the sub-gateway and the OLT device through the main gateway, eliminating traditional layer 2 and layer 3 forwarding through the main gateway, enabling the main gateway to only undertake management tasks, separating management and control, and reducing the data forwarding pressure of the main gateway.
[0011] In a second aspect, an embodiment of the present application provides a data packet forwarding method in an FTTR scenario, applied to a main gateway, including:
[0012] interacting with an OLT device to determine main gateway service IDs (Identity Document, identifier) allocated by the OLT device for different service channels and uplink service IDs allocated by the OLT device for a target service channel of a target sub-gateway;
[0013] allocating a downlink service ID for the target service channel of the target sub-gateway;
[0014] establishing a data service mapping table based on a target main gateway service ID, the uplink service ID, the downlink service ID, and a target sub-gateway identifier SN, the target main gateway service ID being a main gateway service ID corresponding to the target service channel;
[0015] Forward data packets of the target service channel between the upper-link passive optical network (PON) port and the lower-link PON port of the main gateway based on the data service mapping table.
[0016] The main gateway service ID, the upper-link service ID, the lower-link service ID, and the sub-gateway identifier (SN) are configured into a service ID mapping table by the main gateway, so that the main gateway can quickly forward data packets of the target service channel based on the data service mapping table between the upper-link PON port and the lower-link PON port.
[0017] In some possible embodiments, the interaction with the OLT device includes:
[0018] After the registration with the OLT device is successful, a service template allocated by the OLT device for different service channels is received, and a service channel ID of the service template is a main gateway service ID;
[0019] A first request message is sent to the OLT device to request allocation of an upper-link service ID for a target service channel of a target sub-gateway, and the first request message carries a main gateway service ID corresponding to the target service channel and a target sub-gateway identifier (SN);
[0020] A first reply message sent by the OLT device is received, and the first reply message includes the main gateway service ID, the target sub-gateway identifier (SN), and the upper-link service ID allocated by the OLT device for the target service channel of the target sub-gateway.
[0021] The interaction with the OLT device can obtain the main gateway service ID allocated by the OLT device for different service channels and the upper-link service ID allocated by the OLT device for the target service channel of the target sub-gateway, and the main gateway service ID and the upper-link service ID correspond to a service channel, and the main gateway service ID and the upper-link service ID can be used to determine a service channel and a service template for data packet transmission.
[0022] In some possible embodiments, the allocation of the lower-link service ID for the target service channel of the target sub-gateway includes:
[0023] The target sub-gateway is allocated with a lower-link service ID for a target service channel of the target sub-gateway.
[0024] The lower-link service ID and a target service template corresponding to the target service channel are sent to the corresponding target sub-gateway.
[0025] The target service channel service template is sent to the corresponding target sub-gateway by the main gateway through the downlink service ID, so that the sub-gateway can send the uplink data packet by using the service template, thereby triggering the corresponding fast forwarding function.
[0026] In some possible embodiments, the forwarding of the data packet of the target service channel between the uplink PON port and the downlink PON port of the main gateway based on the data service mapping table comprises:
[0027] receiving the uplink data packet sent by the sub-gateway through the downlink PON port;
[0028] matching the uplink data packet with the downlink service ID in the data service mapping table;
[0029] when the matched downlink service ID exists, replacing the downlink service ID in the uplink data packet with the uplink service ID corresponding to the matched downlink service ID in the data service mapping table, and forwarding to the corresponding OLT device through the uplink PON port.
[0030] The main gateway receives the uplink data packet sent by the sub-gateway, checks whether the downlink service ID in the PON packet header can be matched with the downlink service ID in the data service mapping table, if the matching is successful, the information in the PON packet header is directly replaced according to the data service mapping table, and is sent through the uplink PON port of the main gateway, thereby realizing the fast forwarding of the uplink data packet.
[0031] In some possible embodiments, the forwarding of the data packet of the target service channel between the uplink PON port and the downlink PON port of the main gateway based on the data service mapping table comprises:
[0032] receiving the downlink data packet sent by the OLT device through the uplink PON port;
[0033] matching the downlink data packet with the uplink service ID in the data service mapping table;
[0034] when the matched uplink service ID exists, replacing the uplink service ID in the downlink data packet with the downlink service ID corresponding to the matched uplink service ID in the data service mapping table, and forwarding to the corresponding sub-gateway through the downlink PON port.
[0035] The OLT device sends a downlink data packet to the main gateway, and checks whether the PON packet header can be matched with the uplink service ID in the data service mapping table. If the match is successful, the information in the PON packet header is directly replaced according to the data service mapping table, and then the packet is sent to the downlink PON port, so as to realize the fast forwarding of the downlink data packet.
[0036] In some possible embodiments, the method further comprises:
[0037] When it is determined that there is no matched downlink service ID, the uplink data packet is decapsulated and then forwarded in layer 2 and layer 3;
[0038] When it is determined that there is no matched uplink service ID, the destination MAC (Media Access Control) address of the downlink data packet is matched with a preset MAC address table. When the match is successful, the downlink data packet is forwarded according to the MAC address table, otherwise, the downlink data packet is processed by flooding.
[0039] When the match with the service ID in the service data mapping table fails, it is determined that the data packet forwarding function is in a regular FTTR scenario. The main gateway uses an existing data packet processing procedure to forward the uplink and downlink data packets respectively, so that the data packet of the sub-gateway which does not open the fast forwarding function can also be forwarded.
[0040] In some possible embodiments, the method further comprises:
[0041] When it is determined that the uplink service ID deletion condition is met, a second request packet for requesting the OLT device to delete the target uplink service ID is sent.
[0042] A second reply packet sent by the OLT device for indicating that the target uplink service ID has been deleted is received, and the target uplink service ID and the corresponding main gateway service ID, downlink service ID and sub-gateway identifier SN in the data service mapping table are deleted.
[0043] The main gateway sends a request to the OLT device to delete the uplink service ID previously allocated for the target sub-gateway, so as to prevent too many invalid uplink service IDs on the OLT device from occupying the resources of the OLT device.
[0044] In some possible embodiments, the determination that the uplink service ID deletion condition is met comprises at least one of the following steps:
[0045] When a network management device sends an indication for closing the forwarding of the target sub-gateway, it is determined that the uplink service ID deletion condition is met;
[0046] When it is detected that the target sub-gateway corresponding to the target uplink service ID is offline, it is determined that the uplink service ID deletion condition is met.
[0047] When it is detected that the main-gateway service ID corresponding to the target uplink service ID is changed, it is determined that the uplink service ID deletion condition is met.
[0048] By deleting the uplink service ID when the uplink service ID deletion condition is met, the number of invalid uplink service IDs on the OLT device can be prevented from being too large, and the resources of the OLT device can be prevented from being occupied.
[0049] In a third aspect, an embodiment of the present application also provides a data packet forwarding method in an FTTR scenario, applied to an OLT device, comprising:
[0050] Interacting with a main-gateway, assigning a main-gateway service ID corresponding to a different service channel of the main-gateway, and assigning an uplink service ID corresponding to a target service channel of a target sub-gateway;
[0051] Sending a downlink data packet of the target service channel to the target sub-gateway, wherein the downlink data packet carries the uplink service ID assigned to the target service channel of the target sub-gateway.
[0052] By interacting with the main-gateway, the OLT device assigns an uplink service ID corresponding to a service template to the sub-gateway, realizes the fast forwarding of data packets between the downlink PON port and the uplink PON port, bypasses the traditional two-layer forwarding process through the main-gateway, realizes the separation of management and control, and reduces the data forwarding pressure of the main-gateway.
[0053] In some possible embodiments, the interacting with the main-gateway, assigning a main-gateway service ID corresponding to a different service channel of the main-gateway, and assigning an uplink service ID corresponding to a target service channel of a target sub-gateway, comprises:
[0054] After determining that the main-gateway is registered successfully, a service template assigned to a different service channel is sent to the main-gateway, wherein the service channel ID of the service template is a main-gateway service ID;
[0055] Receiving a first request packet sent by the main-gateway, wherein the first request packet carries a main-gateway service ID corresponding to a target service channel of a target sub-gateway and a target sub-gateway identifier SN;
[0056] Assigning an uplink service ID to the target service channel of the target sub-gateway, and sending a first reply packet to the main-gateway, wherein the first reply packet comprises a main-gateway service ID, a target sub-gateway identifier SN, and an uplink service ID assigned to the target service channel of the target sub-gateway.
[0057] By issuing a service template to the main gateway and allocating an uplink service ID for a target service channel of the target sub-gateway, the main gateway can determine a service channel and a service template for data packet transmission based on the main gateway service ID and the uplink service ID.
[0058] In some possible embodiments, the method further includes:
[0059] receiving a second request message sent by the main gateway, the second request message being used to request deletion of the target uplink service ID;
[0060] after deleting the target uplink service ID, sending a second reply message to the main gateway, the second reply message being used to indicate that the target uplink service ID has been deleted.
[0061] By deleting the target uplink service ID in the second request message through the OLT device, the OLT device can be prevented from having too many invalid uplink service IDs, thereby occupying resources of the OLT device.
[0062] In a fourth aspect, an embodiment of the present application further provides a data packet forwarding method in an FTTR scenario, applied to a sub-gateway, and including:
[0063] obtaining a downlink service ID allocated by a main gateway for a target service channel of the sub-gateway;
[0064] sending an uplink data packet of the target service channel to the main gateway, the uplink data packet carrying the downlink service ID.
[0065] The sub-gateway can send an uplink data packet carrying an uplink service ID based on a downlink service ID, and the uplink data packet can be quickly forwarded in the main gateway, so that the separation of management and control of the main gateway is realized, and the data forwarding pressure of the main gateway is reduced.
[0066] In some possible embodiments, the obtaining of the downlink service ID allocated by the main gateway for the target service channel of the sub-gateway includes:
[0067] obtaining a downlink service ID allocated by a main gateway for a target service channel of the sub-gateway;
[0068] obtaining a target service template corresponding to the target service channel sent by the main gateway;
[0069] sending an uplink data packet of the target service channel to the main gateway includes:
[0070] sending an uplink data packet of the target service channel to the main gateway based on the target service template.
[0071] The sub-gateway sends, to the main gateway, uplink data packets of a target service channel carrying a target service template issued by the main gateway, so that the main gateway can achieve fast forwarding of the data packets between a downstream PON port and an upstream PON port based on the uplink service ID.
[0072] In a fifth aspect, the embodiments of the present application further provide a data packet forwarding device in an FTTR scenario, comprising at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the data packet forwarding method in the FTTR scenario according to any one of the second aspect or the third aspect or the fourth aspect.
[0073] In a sixth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores computer executable instructions for causing a computer to perform the data packet forwarding method in the FTTR scenario according to any one of the second aspect or the third aspect or the fourth aspect.
[0074] Through the data packet forwarding method, device and medium in the FTTR scenario according to the embodiments of the present application, a data service mapping table can be established at the PON level of the main gateway, and the data packets of the sub-gateway and the OLT device are directly forwarded at the PON level, without being forwarded through the layer 2 and layer 3 of the main gateway, so that fast forwarding of the service is realized, and the forwarding pressure of the main gateway is reduced.
[0075] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art from the following description, or can be learned by practice of the present application. The objects and other advantages of the present application can be realized and achieved by means of the structures particularly pointed out in the written description and claims hereof as well as the appended drawings. BRIEF DESCRIPTION OF DRAWINGS
[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained from these drawings without creative labor.
[0077] Figure 1 FIG. 1 is a structural schematic diagram of a data packet forwarding system in an FTTR scenario according to an embodiment of the present application;
[0078] Figure 2A flowchart of a process of opening a service fast forwarding function for a target sub-gateway in an embodiment of the present application;
[0079] Figure 3 A flowchart of an uplink data packet forwarding process in an embodiment of the present application;
[0080] Figure 4 A specific flowchart of an uplink data packet forwarding process in an embodiment of the present application;
[0081] Figure 5 A flowchart of a downlink data packet forwarding process in an embodiment of the present application;
[0082] Figure 6 A specific flowchart of a downlink data packet forwarding process in an embodiment of the present application;
[0083] Figure 7 A flowchart of a data packet forwarding method applied to a main gateway in an embodiment of the present application;
[0084] Figure 8 A flowchart of a data packet forwarding method applied to an OLT device in an embodiment of the present application;
[0085] Figure 9 A flowchart of a data packet forwarding method applied to a sub-gateway in an embodiment of the present application;
[0086] Figure 10 A data packet forwarding device structure diagram in an FTTR scenario in an embodiment of the present application. DETAILED DESCRIPTION
[0087] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0088] In view of the above-mentioned problems in the existing FTTR scheme that when the sub-gateway has a large amount of traffic, the main gateway is under great pressure and traffic congestion is easily formed, reducing the actual experience of users, an FTTR scenario data packet forwarding system is provided in an embodiment of the present application, as shown in Figure 1 The system comprises a network management device 101, a main gateway 102, an OLT device 103 and at least one sub-gateway 104, wherein:
[0089] The network management device 101 is configured to send an instruction of opening a service fast forwarding function for a target sub-gateway to the main gateway in response to an instruction.
[0090] The main gateway 102 is configured to interact with the OLT device based on an indication sent by a network management device, determine a main gateway service ID allocated by the OLT device for a different service channel, an uplink service ID allocated by the OLT device for a target service channel of a target sub-gateway, allocate a downlink service ID for the target service channel of the target sub-gateway, establish a data service mapping table based on the target main gateway service ID, the uplink service ID, the downlink service ID, and a target sub-gateway identifier SN, the target main gateway service ID being a main gateway service ID corresponding to the target service channel, and forward data packets of the target service channel between an uplink passive optical network (PON) port and a downlink PON port of the main gateway based on the data service mapping table.
[0091] The OLT device 103 is configured to interact with the main gateway, allocate a corresponding main gateway service ID for a different service channel of the main gateway, and allocate a corresponding uplink service ID for a target service channel of a target sub-gateway, and send downlink data packets of the target service channel to the target sub-gateway, the downlink data packets carrying the corresponding uplink service ID allocated by the OLT device for the target service channel of the target sub-gateway.
[0092] The at least one sub-gateway 104, wherein each sub-gateway is configured to obtain a downlink service ID allocated by the main gateway for a target service channel of the sub-gateway, and send uplink data packets of the target service channel to the main gateway, the uplink data packets carrying the downlink service ID.
[0093] In the embodiments of the present application, the main gateway establishes a data service mapping table between the uplink PON port and the downlink PON port, realizes fast forwarding of data services of the sub-gateway and the OLT device through the main gateway, and no longer performs traditional layer 2 and layer 3 forwarding through the main gateway. The main gateway only undertakes management tasks, realizes separation of management and control, and reduces the data forwarding pressure of the main gateway.
[0094] Specifically, the data packet forwarding system in the FTTR scenario needs to be registered to the OLT device before data packet forwarding in the FTTR networking of the operator (covering FTTR-H and FTTR-B), the uplink PON port of the main gateway needs to be registered to the OLT device, the OLT device is uplinked to a management platform and various servers, the PON port of the sub-gateway needs to be registered to the downlink PON port of the main gateway, and data packet forwarding of the sub-gateway and the OLT device is completed through the main gateway.
[0095] In the embodiments of the present application, the registration method is the same as the prior art method, and the primary gateway and the secondary gateway are registered by using the prior method. The specific registration method will not be described here. After the primary gateway is successfully registered on the uplink OLT device, the uplink OLT device allocates a service template to the primary gateway for different service channels of the primary gateway. The service template is used to represent different service channels, the service channel ID is used as the primary gateway service ID to identify different service templates, and the service template and the primary gateway service ID are sent to the corresponding primary gateway.
[0096] When the user opens the service fast forwarding function for the corresponding secondary gateway, the network management device sends an instruction to open the service fast forwarding function for the target secondary gateway to the primary gateway. The primary gateway interacts with the OLT device to determine the uplink service ID allocated by the OLT device to the target service channel of the target secondary gateway.
[0097] In some possible embodiments, the primary gateway sends a first request message to the OLT device to request allocation of the uplink service ID to the target service channel of the target secondary gateway. The first request message carries the primary gateway service ID corresponding to the target service channel and the target secondary gateway identifier SN. After receiving the first request message, the OLT device allocates the uplink service ID to the target service channel of the target secondary gateway, and sends a first reply message to the primary gateway. The first reply message includes the primary gateway service ID, the target secondary gateway identifier SN, and the uplink service ID allocated to the target service channel of the target secondary gateway.
[0098] After receiving the first reply message sent by the OLT device, the primary gateway allocates the downlink service ID to the target service channel of the target secondary gateway according to the primary gateway service ID, the target secondary gateway identifier SN, and the uplink service ID allocated to the target service channel of the target secondary gateway in the first reply message.
[0099] After the secondary gateway is successfully registered on the primary gateway, the primary gateway opens the service fast forwarding function for the target secondary gateway based on the instruction of the network management device, and sends a first request message to the OLT device through the PON management protocol. The traditional PON management protocol needs to be expanded to support this function. Taking the OMCI (Optical Network Unit Management and Control Interface) protocol as an example, the header structure of the OMCI message is shown in Table 1.
[0100] Table 1
[0101]
[0102] Specifically, the Message Type value is extended to 0x19, and the corresponding content is AddFastForward. The content carries the target sub-gateway identifier SN and the main gateway service ID corresponding to the target service channel. The first reply message of the corresponding OLT device carries the uplink service ID allocated to the target service channel of the target sub-gateway.
[0103] In some possible embodiments, the first request message may carry multiple master gateway service IDs and their corresponding multiple target sub-gateway identifiers (SNs) to simultaneously request uplink service IDs for multiple sub-gateways corresponding to multiple service channels. The first reply message of the OLT device also carries multiple uplink service IDs allocated to the target service channels corresponding to the multiple sub-gateways using the same PON management protocol format.
[0104] After the main gateway receives the response from the OLT device, it assigns a downstream service ID to the target service channel of the target sub-gateway, retrieves the service template of the corresponding service channel based on the corresponding main gateway service ID, and sends the target service template with the downstream service ID and service channel ID as the target main gateway service ID to the corresponding target sub-gateway.
[0105] The corresponding sub-gateway obtains the downstream service ID allocated by the main gateway to the target service channel of the sub-gateway, and the target service template corresponding to the target service channel. Based on the target service template, the sub-gateway sends an uplink data packet of the target service channel to the main gateway, the uplink data packet carrying the downstream service ID.
[0106] In this embodiment of the application, the main gateway service ID and the uplink service ID are in a one-to-one correspondence. The uplink service ID and the downlink service ID are also unique when they are allocated. Although the IDs are different, the corresponding service channels are actually the same and unique. The OLT device will not actually reissue the service template of the corresponding service channel for the target sub-gateway, but only issues a virtual uplink service ID.
[0107] In some possible embodiments, the network management device includes, but is not limited to, a management platform, a web application, etc., and is not specifically limited in this application embodiment.
[0108] After the main gateway assigns a downstream service ID to the corresponding target sub-gateway, a data service mapping table is established based on the target main gateway service ID, the upstream service ID, the downstream service ID, and the target sub-gateway identifier SN. The target main gateway service ID is the main gateway service ID corresponding to the target service channel.
[0109] In some possible embodiments, the specific format of the data service mapping table is shown in Table 2 as follows:
[0110] Table 2
[0111] Main gateway service ID Uplink service ID Downlink service ID Sub-gateway identification SN 11 12 13 A6 CR76GBD
[0112] A specific data packet forwarding system in the FTTR scenario is given below, and a process of opening a service fast forwarding function for a target sub-gateway is as shown in Figure 2 , which includes the following steps:
[0113] Step 1, the uplink PON port of the main gateway is registered to the OLT device;
[0114] Step 2, the PON port of the target sub-gateway is registered to the downlink PON port of the main gateway;
[0115] Step 3, the network management device sends an instruction to the main gateway to open the service fast forwarding function for the target sub-gateway;
[0116] Step 4, the main gateway sends a first request packet to the OLT device to request to allocate an uplink service ID for a target service channel of the target sub-gateway, and the first request packet carries a main gateway service ID corresponding to the target service channel and a target sub-gateway identifier SN;
[0117] Step 5, the OLT device allocates an uplink service ID for the target service channel of the target sub-gateway, and sends a first reply packet to the main gateway, wherein the first reply packet includes the main gateway service ID, the target sub-gateway identifier SN, and the uplink service ID allocated for the target service channel of the target sub-gateway;
[0118] Step 6, the main gateway allocates a downlink service ID for the target service channel of the target sub-gateway, and retrieves a service template of the corresponding service channel according to the corresponding main gateway service ID, and then downloads the downlink service ID, the service channel ID, and the target main gateway service ID to the corresponding target sub-gateway.
[0119] Step 7, the main gateway establishes a data service mapping table based on the target main gateway service ID, the uplink service ID, the downlink service ID, and the target sub-gateway identifier SN, for forwarding data packets.
[0120] In the embodiment of the present application, the master gateway sends a first request message to the OLT device through a PON management protocol, for requesting to allocate an uplink service ID for a target service channel of a target sub-gateway, the uplink service ID corresponding to a target master gateway service ID, the OLT device allocating a corresponding uplink service ID to the master gateway based on the target master gateway service, and the master gateway allocating a downlink service ID for the target service channel of the target sub-gateway. At this time, the uplink service ID and the downlink service ID are not necessarily in an identical relationship because they are respectively allocated by the OLT device and the master gateway, but the corresponding service channels are both the service channels corresponding to the master gateway service ID. The master gateway forms a service ID mapping table by the master gateway service ID, the uplink service ID, the downlink service ID and a sub-gateway identifier SN, so as to ensure that the master gateway can quickly forward data messages of the target service channel based on the data service mapping table between the uplink PON port and the downlink PON port.
[0121] In some possible embodiments, the quick forwarding data message includes two directions of uplink and downlink, wherein in the uplink direction, the master gateway forwards uplink data messages of a sub-gateway to a corresponding OLT device, as shown in Figure 3 , including:
[0122] Step 301, receiving an uplink data message sent by a sub-gateway through a downlink PON port;
[0123] Step 302, matching the uplink data message with a downlink service ID in the data service mapping table;
[0124] Step 303, when a matched downlink service ID exists, replacing the downlink service ID in the uplink data message with an uplink service ID corresponding to the matched downlink service ID in the data service mapping table, and forwarding the uplink data message to a corresponding OLT device through an uplink PON port.
[0125] In the embodiment of the present application, when the sub-gateway sends an uplink data message to the master gateway, the sub-gateway encapsulates the uplink data message in a PON message header, and the PON message header carries a downlink service ID, for example, a PortID in a Gem header in a GPON (Gigabit-capable Passive Optical Network). The master gateway receives the uplink data message sent by the sub-gateway, checks whether the downlink service ID in the PON message header can be matched with a downlink service ID in the data service mapping table, if the matching is successful, directly replaces the information in the PON message header according to the data service mapping table, and sends the information through the uplink PON port of the master gateway, so as to realize the quick forwarding of the uplink data message.
[0126] The specific process after the main gateway receives the uplink data packet is as shown in Figure 4 , and includes:
[0127] Step 1, the main gateway receives the uplink data packet;
[0128] Step 2, the main gateway checks whether the downlink service ID in the PON packet header can be matched successfully with the downlink service ID in the data service mapping table;
[0129] Step 3, if the matching is successful, the downlink service ID in the uplink data packet PON packet header is replaced with the uplink service ID corresponding to the matched downlink service ID in the data service mapping table, and the uplink PON port of the main gateway is used to send the corresponding OLT device;
[0130] Step 4, if the matching fails, the main gateway performs decapsulation on the uplink data packet and then performs two-layer and three-layer forwarding.
[0131] In the embodiment of the present application, the specific process of performing decapsulation on the uplink data packet and then performing two-layer and three-layer forwarding when the matching fails adopts the process of forwarding the data packet of the sub-gateway by the existing main gateway, and how to perform decapsulation and two-layer and three-layer forwarding is not described in detail in the embodiment of the present application.
[0132] In the downlink direction, the main gateway forwards the downlink data packet of the OLT device to the corresponding sub-gateway, as shown in Figure 5 , and includes:
[0133] Step 501, receiving the downlink data packet sent by the OLT device through the uplink PON port;
[0134] Step 502, matching the downlink data packet with the uplink service ID in the data service mapping table;
[0135] Step 503, when it is determined that there is a matched uplink service ID, replacing the uplink service ID in the downlink data packet with the downlink service ID corresponding to the matched uplink service ID in the data service mapping table, and forwarding to the corresponding sub-gateway through the downlink PON port.
[0136] In the embodiment of the present application, the downlink data packet sent by the OLT device to the main gateway checks whether the PON packet header can be matched successfully with the uplink service ID in the data service mapping table, and if the matching is successful, the information in the PON packet header is directly replaced according to the data service mapping table, and then the packet is sent to the downlink PON port, thereby realizing the fast forwarding of the downlink data packet.
[0137] Specifically, asFigure 6 As shown, comprising:
[0138] Step 1, the main gateway receives the downlink data message sent by the OLT device;
[0139] Step 2, the main gateway first checks whether the uplink service ID in the PON message header can be matched successfully with the uplink service ID in the data service mapping table;
[0140] Step 3, if the matching is successful, the uplink service ID in the PON header is replaced with the corresponding downlink service ID according to the data service mapping table, and the data message is sent to the corresponding sub-gateway through the downlink PON port;
[0141] Step 4, if the matching fails, the main gateway matches the destination MAC address of the downlink data message with a preset media access control (MAC) address table;
[0142] Step 5, when the matching is successful, the downlink data message is forwarded according to the MAC address table;
[0143] Step 6, if the matching fails, the downlink data message is flooded.
[0144] In the embodiment of the present application, when the matching fails, the specific process of matching the destination MAC address of the downlink data message with the preset MAC address table is the same as the process of the existing main gateway processing the data message sent by the OLT device. The process of how to perform MAC address matching in the embodiment of the present application is not described in detail.
[0145] Through the data message forwarding system in the FTTR scenario proposed in the above embodiment of the present application, a data service mapping table can be established at the PON level, and the data message of the sub-gateway is directly forwarded at the PON level, without being forwarded through the two-layer and three-layer of the main gateway, thereby realizing fast forwarding of the service and reducing the forwarding pressure of the main gateway.
[0146] In some possible embodiments, when it is determined that the uplink service ID deletion condition is met, the main gateway further sends a second request message for requesting deletion of a target uplink service ID to the OLT device, receives a second reply message sent by the OLT device for indicating that the target uplink service ID has been deleted, and deletes the target uplink service ID and the corresponding main gateway service ID, downlink service ID and sub-gateway identifier (SN) in the data service mapping table.
[0147] Correspondingly, the OLT device receives the second request message, deletes the target uplink service ID, and sends a second reply message for indicating that the target uplink service ID has been deleted to the main gateway.
[0148] In some possible embodiments, the type value of the Message Type is extended to 0x1A in the OMCI protocol, and the corresponding content is DelFastForward, which carries the target upstream service ID for requesting the OLT device to delete the upstream service ID.
[0149] In some possible embodiments, the master gateway determines that the upstream service ID deletion condition is met, including the following at least one step:
[0150] Upon receiving the indication of the target sub-gateway closing the forwarding from the network management device, it is determined that the upstream service ID deletion condition is met;
[0151] Upon detecting that the target sub-gateway corresponding to the target upstream service ID is offline, it is determined that the upstream service ID deletion condition is met;
[0152] Upon detecting that the master gateway service ID corresponding to the target upstream service ID is changed, it is determined that the upstream service ID deletion condition is met.
[0153] Specifically, when the target sub-gateway closes the forwarding function, all upstream service IDs corresponding to the target sub-gateway identified by SN are retrieved and deleted as target upstream IDs, and the master gateway sends a second request message to the OLT device for deleting the upstream service IDs previously allocated to the target sub-gateway.
[0154] When it is detected that the target sub-gateway is offline, all upstream service IDs corresponding to the target sub-gateway identified by SN are retrieved and deleted as target upstream IDs, and the master gateway sends a request to the OLT device for deleting the upstream service IDs previously allocated to the target sub-gateway, so as to prevent too many invalid upstream service IDs on the OLT device from occupying the resources of the OLT device.
[0155] When it is detected that the target master gateway service ID is changed, all upstream service IDs corresponding to the target master gateway service ID are retrieved and deleted as target upstream IDs, and the master gateway will request the OLT device again with the changed master gateway service ID for allocating the upstream service IDs of the corresponding target service channels to the sub-gateway, and then generate a new data service mapping table.
[0156] Through the data message forwarding system in the FTTR scenario of one of the embodiments of the present application, the uplink service ID of the corresponding service template is issued to the sub-gateway by the OLT device through the expansion of the PON management protocol, the generation of the data service mapping table and the updating and maintenance rules thereof are defined, and the fast forwarding of the data message between the downlink PON port and the uplink PON port is realized through the data service mapping table, bypassing the traditional two-layer forwarding process through the main gateway, realizing the separation of management and control, and reducing the data forwarding pressure of the main gateway.
[0157] Based on the same inventive concept, the embodiments of the present application also propose a data message forwarding method in an FTTR scenario, applied to a main gateway, as shown in Figure 7 The method comprises the following steps:
[0158] Step 701: interacting with an OLT device to determine the main gateway service ID allocated by the OLT device for different service channels and the uplink service ID allocated by the OLT device for a target service channel of a target sub-gateway;
[0159] Step 702: allocating a downlink service ID for the target service channel of the target sub-gateway;
[0160] Step 703: establishing a data service mapping table based on a target main gateway service ID, an uplink service ID, a downlink service ID and a target sub-gateway identifier SN, wherein the target main gateway service ID is the main gateway service ID corresponding to the target service channel;
[0161] Step 704: forwarding the data message of the target service channel between the uplink PON port and the downlink PON port of the main gateway based on the data service mapping table.
[0162] In some possible embodiments, the step of interacting with the OLT device to determine the main gateway service ID allocated by the OLT device for different service channels and the uplink service ID allocated by the OLT device for the target service channel of the target sub-gateway comprises the following steps:
[0163] After the OLT device is successfully registered, a service template allocated by the OLT device for different service channels is received, and the service channel ID of the service template is the main gateway service ID;
[0164] A first request message is sent to the OLT device to request allocation of an uplink service ID for the target service channel of the target sub-gateway, and the first request message carries the main gateway service ID corresponding to the target service channel and the target sub-gateway identifier SN;
[0165] Receiving a first reply message sent by the OLT device, the first reply message comprising a main gateway service ID, a target sub-gateway identification SN, and an uplink service ID allocated for a target service channel of the target sub-gateway.
[0166] In some possible embodiments, allocating a downlink service ID for the target service channel of the target sub-gateway comprises:
[0167] Allocating a downlink service ID for the target service channel of the target sub-gateway;
[0168] Distributing, to the corresponding target sub-gateway, a target service template of the target main gateway service ID, the target service template comprising the downlink service ID and the service channel ID.
[0169] In some possible embodiments, the forwarding, based on the data service mapping table, of the data message of the target service channel between the uplink PON port and the downlink PON port of the main gateway comprises:
[0170] Receiving, through the downlink PON port, an uplink data message sent by a sub-gateway;
[0171] Matching the uplink data message with a downlink service ID in the data service mapping table;
[0172] When it is determined that there is a matched downlink service ID, replacing a downlink service ID in the uplink data message with an uplink service ID corresponding to the matched downlink service ID in the data service mapping table, and forwarding the uplink data message to a corresponding OLT device through the uplink PON port.
[0173] In some possible embodiments, the forwarding, based on the data service mapping table, of the data message of the target service channel between the uplink PON port and the downlink PON port of the main gateway comprises:
[0174] Receiving, through the uplink PON port, a downlink data message sent by an OLT device;
[0175] Matching the downlink data message with an uplink service ID in the data service mapping table;
[0176] When it is determined that there is a matched uplink service ID, replacing an uplink service ID in the downlink data message with a downlink service ID corresponding to the matched uplink service ID in the data service mapping table, and forwarding the downlink data message to a corresponding sub-gateway through the downlink PON port.
[0177] In some possible embodiments, the method further comprises:
[0178] When it is determined that there is no matched downlink service ID, performing layer 2 and layer 3 forwarding on the uplink data message after decapsulating the uplink data message.
[0179] When it is determined that there is no matched uplink service ID, the destination MAC address of the downlink data packet is matched with a preset media access control (MAC) address table, and when the matching is successful, the downlink data packet is forwarded according to the MAC address table, otherwise, the downlink data packet is processed by flooding.
[0180] In some possible embodiments, the method further includes:
[0181] When it is determined that the uplink service ID deletion condition is met, a second request message for requesting to delete a target uplink service ID is sent to the OLT device;
[0182] A second reply message sent by the OLT device for indicating that the target uplink service ID has been deleted is received, and the target uplink service ID and corresponding master gateway service ID, downlink service ID and sub-gateway identifier (SN) in the data service mapping table are deleted.
[0183] In some possible embodiments, the determining that the uplink service ID deletion condition is met includes at least one of the following steps:
[0184] When an indication of the network management device for closing forwarding of a target sub-gateway is received, it is determined that the uplink service ID deletion condition is met;
[0185] When it is detected that a target sub-gateway corresponding to a target uplink service ID is offline, it is determined that the uplink service ID deletion condition is met;
[0186] When it is detected that a master gateway service ID corresponding to the target uplink service ID is changed, it is determined that the uplink service ID deletion condition is met.
[0187] Based on the same inventive concept, the embodiments of the present application also propose a data packet forwarding method in an FTTR scenario, applied to an OLT device, as shown in Figure 8 The method includes the following steps:
[0188] Step 801: interacting with a master gateway, allocating a corresponding master gateway service ID to different service channels of the master gateway, and allocating a corresponding uplink service ID to a target service channel of a target sub-gateway;
[0189] Step 802: sending a downlink data packet of the target service channel to the target sub-gateway, the downlink data packet carrying the uplink service ID allocated to the target service channel of the target sub-gateway.
[0190] In some possible embodiments, the step of interacting with the master gateway, allocating a corresponding master gateway service ID to different service channels of the master gateway, and allocating a corresponding uplink service ID to a target service channel of a target sub-gateway includes:
[0191] determining that the main gateway is registered successfully, and sending a service template allocated for different service channels to the main gateway, a service channel ID of the service template being a main gateway service ID;
[0192] receiving a first request message sent by the main gateway, the first request message carrying a main gateway service ID corresponding to a target service channel of a target sub-gateway and a target sub-gateway identifier SN;
[0193] allocating an uplink service ID for the target service channel of the target sub-gateway, and sending a first reply message to the main gateway, the first reply message including the main gateway service ID, the target sub-gateway identifier SN, and the uplink service ID allocated for the target service channel of the target sub-gateway.
[0194] In some possible embodiments, the method further includes:
[0195] receiving a second request message sent by the main gateway, the second request message being used to request deletion of a target uplink service ID;
[0196] after deleting the target uplink service ID, sending a second reply message to the main gateway, the second reply message being used to indicate that the target uplink service ID has been deleted.
[0197] Based on the same inventive concept, the embodiments of the present application also propose a data message forwarding method in an FTTR scenario, applied to a sub-gateway, as shown in Figure 9 The method includes the following steps:
[0198] Step 901: obtaining a downlink service ID allocated by a main gateway for a target service channel of the sub-gateway;
[0199] Step 901: sending an uplink data message of the target service channel to the main gateway, the uplink data message carrying the downlink service ID.
[0200] In some possible embodiments, when obtaining the downlink service ID allocated by the main gateway for the target service channel of the sub-gateway, the method further includes:
[0201] obtaining a target service template sent by the main gateway, the target service template having a target main gateway service ID as a service channel ID, the target main gateway service ID being a main gateway service ID corresponding to the target service channel;
[0202] sending the uplink data message of the target service channel to the main gateway includes:
[0203] sending the uplink data message of the target service channel to the main gateway based on the target service template.
[0204] Based on the same inventive concept, the embodiments of the present application further provide a data packet forwarding device in an FTTR scenario, comprising at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the data packet forwarding method in an FTTR scenario as any one of the second aspect or the third aspect or the fourth aspect of the above-described embodiments.
[0205] The data packet forwarding device 1000 in an FTTR scenario according to this embodiment of the present application will be described below with reference to Figure 10 Figure 10 The device 1000 shown is merely an example and should not impose any limitation on the functions and use range of the embodiments of the present application.
[0206] As Figure 9 shown, the data packet forwarding device 1000 in an FTTR scenario is in the form of a general electronic device. The components of the data packet forwarding device 1000 in an FTTR scenario can include but are not limited to the above-mentioned at least one processor 1001, the above-mentioned at least one memory 1002, and a bus 1003 connecting different system components including the memory 1002 and the processor 1001.
[0207] The bus 1003 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor or local bus using any of a variety of bus structures.
[0208] The memory 1002 can include a readable medium in the form of volatile memory, such as a random access memory (RAM) 1021 and / or a cache memory 1022, and can further include a read-only memory (ROM) 1023.
[0209] The memory 1002 can further include a program / utility 1025 having a set of (at least one) program modules 1024, including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof can include implementation of a network environment.
[0210] The data packet forwarding device 1000 in a FTTR scenario can also communicate with one or more external devices 1004 such as a keyboard, a pointing device, etc.; communicate with one or more devices that enable a user to interact with the data packet forwarding device 1000 in a FTTR scenario; and / or communicate with any devices (e.g., a router, a modem, etc.) that enable the data packet forwarding device 1000 in a FTTR scenario to communicate with one or more other electronic devices. Such communication can occur via the input / output (I / O) interface(s) 1005. Still yet, the data packet forwarding device 1000 in a FTTR scenario can communicate with one or more networks, such as a local area network (LAN), a wide area network (WAN), and / or the Internet through a network adapter 1006. As depicted, the network adapter 1006 communicates with the other components of the data packet forwarding device 1000 in a FTTR scenario through the bus(es) 1003. It should be appreciated that although not shown, other hardware and / or software modules could be used in connection with the data packet forwarding device 1000 in a FTTR scenario. Such as, for example, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
[0211] Based on the same inventive concept, the embodiments of the present application further provide a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are used to make a computer execute the data packet forwarding method in a FTTR scenario according to any one of the second aspect or the third aspect or the fourth aspect of the above-mentioned embodiments.
[0212] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) containing computer usable program code.
[0213] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.
[0214] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.
[0215] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.
[0216] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A data packet forwarding method in an FTTR scenario, characterized in that, Applied to the main gateway, including: After the main gateway successfully registers with the OLT device, it receives the service templates allocated by the OLT device for different service channels, wherein the service channel ID of the service template is the main gateway service ID; Send a first request message to the OLT device to request the allocation of an uplink service ID for the target service channel of the target sub-gateway. The first request message carries the main gateway service ID and the target sub-gateway identifier SN corresponding to the target service channel. Receive a first reply message sent by the OLT device, the first reply message including the main gateway service ID, the target sub-gateway identifier SN, and the uplink service ID allocated to the target service channel of the target sub-gateway; Assign a downstream service ID to the target service channel of the target sub-gateway, and send the downstream service ID and the target service template corresponding to the target service channel to the corresponding target sub-gateway; A data service mapping table is established based on the target main gateway service ID, uplink service ID, downlink service ID and target sub-gateway identifier SN, wherein the target main gateway service ID is the main gateway service ID corresponding to the target service channel; Based on the data service mapping table, the data packets of the target service channel are forwarded between the uplink PON port and the downlink PON port of the main gateway.
2. The method according to claim 1, characterized in that, Based on the data service mapping table, the forwarding of data packets for the target service channel between the uplink PON port and the downlink PON port of the main gateway includes: Receive uplink data packets sent by the sub-gateway through the downstream PON port; Match the uplink data packet with the downlink service ID in the data service mapping table; When a matching downstream service ID is found, the downstream service ID in the uplink data packet is replaced with the upstream service ID corresponding to the matching downstream service ID in the data service mapping table, and then forwarded to the corresponding OLT device through the upstream PON port.
3. The method according to claim 1, characterized in that, Based on the data service mapping table, the forwarding of data packets for the target service channel between the uplink PON port and the downlink PON port of the main gateway includes: Receive downlink data packets sent by the OLT device through the uplink PON port; Match the downlink data packets with the uplink service IDs in the data service mapping table; When a matching uplink service ID is found, the uplink service ID in the downlink data packet is replaced with the downlink service ID corresponding to the matching uplink service ID in the data service mapping table, and then forwarded to the corresponding sub-gateway through the downlink PON port.
4. The method according to claim 2 or 3, characterized in that, Also includes: When it is determined that there is no matching downstream service ID, the uplink data packet is decapsulated and then forwarded at Layer 2 and Layer 3. If no matching uplink service ID is found, the destination media access control MAC address of the downlink data packet is matched with a preset MAC address table. If a match is found, the downlink data packet is forwarded according to the MAC address table; otherwise, the downlink data packet is flooded.
5. The method according to claim 1, characterized in that, Also includes: When it is determined that the conditions for deleting the uplink service ID are met, a second request message is sent to the OLT device to request the deletion of the target uplink service ID; Receive a second reply message sent by the OLT device indicating that the target uplink service ID has been deleted, and delete the target uplink service ID and its corresponding main gateway service ID, downlink service ID, and sub-gateway identifier SN from the data service mapping table.
6. The method according to claim 5, characterized in that, The determination of whether the uplink service ID deletion condition is met includes at least one of the following steps: When the network management device receives an instruction to disable forwarding to the target sub-gateway, it is determined that the conditions for deleting the uplink service ID are met. When the target sub-gateway corresponding to the target uplink service ID is detected to be offline, it is determined that the uplink service ID deletion condition is met; When a change is detected in the main gateway service ID corresponding to the target uplink service ID, it is determined that the uplink service ID deletion condition is met.
7. A data packet forwarding method in an FTTR scenario, characterized in that, Applied to OLT devices, including: After confirming successful registration of the main gateway, the main gateway is issued a service template for different service channels. The service channel ID of the service template is the main gateway service ID. Receive a first request message sent by the main gateway, the first request message carrying the main gateway service ID and the target sub-gateway identifier SN corresponding to the target service channel of the target sub-gateway; Assign an uplink service ID to the target service channel of the target sub-gateway and send a first reply message to the main gateway. The first reply message includes the main gateway service ID, the target sub-gateway identifier SN, and the uplink service ID assigned to the target service channel of the target sub-gateway, so that the main gateway assigns a downlink service ID to the target service channel of the target sub-gateway and sends the downlink service ID and the target service template corresponding to the target service channel to the corresponding target sub-gateway. Based on the target main gateway service ID, the uplink service ID, the downlink service ID, and the target sub-gateway identifier SN, establish a data service mapping table, where the target main gateway service ID is the main gateway service ID corresponding to the target service channel. The main gateway sends downlink data packets for the target service channel, the downlink data packets carrying the corresponding uplink service ID allocated for the target service channel of the target sub-gateway, so that the main gateway forwards the data packets of the target service channel between the uplink PON port and the downlink PON port of the main gateway based on the data service mapping table.
8. The method according to claim 7, characterized in that, Also includes: Receive a second request message sent by the main gateway, the second request message being used to request the deletion of the target uplink service ID; After deleting the target uplink service ID, a second reply message is sent to the main gateway to indicate that the target uplink service ID has been deleted.
9. A data packet forwarding method in an FTTR scenario, characterized in that, Applied to sub-gateways, including: The system receives the downlink service ID assigned to the target service channel by the main gateway, as well as the target service template corresponding to the target service channel. The downlink service ID is assigned by the main gateway to the target service channel of the target sub-gateway after the OLT device assigns the uplink service ID to the target service channel of the target sub-gateway. Based on the target service template, an uplink data packet of the target service channel is sent to the main gateway. The uplink data packet carries the downstream service ID, so that the main gateway forwards the data packet of the target service channel between the uplink PON port and the downstream PON port of the main gateway based on the data service mapping table. The data service mapping table is established by the main gateway based on the target main gateway service ID, uplink service ID, downlink service ID, and target sub-gateway identifier SN. The target main gateway service ID is the main gateway service ID corresponding to the target service channel. The main gateway service ID is the service channel ID of the service template allocated to different service channels, which is issued by the OLT device to the main gateway after the main gateway is successfully registered.
10. A data packet forwarding device for an FTTR scenario, characterized in that, The device includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a data packet forwarding method in an FTTR scenario as described in any one of claims 1-6, 7-8, or 9.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which are used to cause the computer to perform a data packet forwarding method in an FTTR scenario as described in any one of claims 1-6, 7-8, or 9.
Citation Information
Patent Citations
FTTR sub-gateway management method, device and system and storage medium
CN120416708A