WO2023186141A1 - 数据报文转发方法、装置、存储介质及电子装置 - Google Patents

数据报文转发方法、装置、存储介质及电子装置 Download PDF

Info

Publication number
WO2023186141A1
WO2023186141A1 PCT/CN2023/085687 CN2023085687W WO2023186141A1 WO 2023186141 A1 WO2023186141 A1 WO 2023186141A1 CN 2023085687 W CN2023085687 W CN 2023085687W WO 2023186141 A1 WO2023186141 A1 WO 2023186141A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
port
edge
gemport
onu
Prior art date
Application number
PCT/CN2023/085687
Other languages
English (en)
French (fr)
Inventor
徐凯
蔡立勇
王鹏
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023186141A1 publication Critical patent/WO2023186141A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • Embodiments of the present disclosure relate to the field of communications, and specifically, to a data message forwarding method, device, storage medium, and electronic device.
  • FTTR Fiber to the Room
  • FTTR all-optical networks generally consist of central office optical line terminals (optical line terminals, referred to as OLTs), FTTR optical gateways, and edge optical network units (Optical Network Units, referred to as ONUs).
  • OLTs optical line terminals
  • FTTR optical gateways generally include several 2.5G Ethernet ports and 1G Ethernet ports, and use an extended physical port to cooperate with the functions of some OLTs to connect to several edge ONUs below.
  • Current ordinary optical gateways can only handle the exchange of data packets on physical Ethernet ports.
  • FTTR optical gateways introduce edge ONUs. So how to effectively handle the connection between ordinary Ethernet ports and edge ONUs, and between multiple edge ONUs? Data exchange has become an urgent problem that FTTR optical gateway needs to solve.
  • Embodiments of the present disclosure provide a data message forwarding method, device, storage medium and electronic device to at least solve the problem of how an FTTR optical gateway in related technologies processes data between a common Ethernet port and an edge ONU, or between multiple edge ONUs. The problem.
  • a data packet forwarding method is provided, which is applied to an optical gateway, including:
  • the data packet is sent to the second edge ONU through the destination forwarding port.
  • a data packet forwarding device which is applied to an optical gateway and includes:
  • a receiving module configured to receive the data message sent by the first edge ONU through a Gemport port that corresponds one-to-one to the service Gemport of the first edge ONU;
  • a search module configured to search the destination forwarding port from the MAC address table according to the destination MAC address of the data message, wherein the correspondence between the source MAC address and the Gemport port is stored in the MAC address table;
  • the sending module is configured to send the data packet to the second edge ONU through the destination forwarding port when the destination forwarding port is found.
  • a computer-readable storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute any of the above method embodiments when running. steps in.
  • an electronic device including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above. Steps in method embodiments.
  • Figure 1 is a hardware structure block diagram of a mobile terminal of a data packet forwarding method according to an embodiment of the present disclosure
  • Figure 2 is a flow chart of a data packet forwarding method according to an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of an ONU system connected to XGPON according to an embodiment of the present disclosure
  • Figure 4 is a flow chart of system initialization according to an embodiment of the present disclosure
  • Figure 5 is a flow chart of hardware data exchange in an FTTR scenario according to an embodiment of the present disclosure
  • Figure 6 is a flow chart of software data exchange in an FTTR scenario according to an embodiment of the present disclosure
  • Figure 7 is a block diagram of a data packet forwarding device according to an embodiment of the present disclosure.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal of the data packet forwarding method according to an embodiment of the present disclosure.
  • the mobile terminal may include one or more (only shown in Figure 1 A) processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data, wherein the above-mentioned mobile terminal may also include a processor for communication Functional transmission device 106 and input and output device 108.
  • the structure shown in Figure 1 is only illustrative, and it does not limit the structure of the above-mentioned mobile terminal.
  • the mobile terminal may also include more or fewer components than shown in FIG. 1 , or have a different configuration than shown in FIG. 1 .
  • Memory 104 may be used to store computer programs, such as software programs and modules of application software, as implemented in the present disclosure.
  • the processor 102 executes the computer program corresponding to the data packet forwarding method in the embodiment by running the computer program stored in the memory 104 to execute various functional applications and service chain address pool slicing processing, that is, to implement the above method.
  • Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memory located remotely relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • the transmission device 106 is used to receive or send data via a network.
  • Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal.
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • FIG. 2 is a flow chart of a data packet forwarding method according to an embodiment of the present disclosure. As shown in Figure 2, the method The execution subject is the optical gateway. The process includes the following steps:
  • Step S202 Receive the data message sent by the first edge ONU through the Gemport port that corresponds one-to-one to the service Gemport of the first edge ONU;
  • Step S204 Find the destination forwarding port from the MAC address table according to the destination MAC address of the data message, where the correspondence between the source MAC address and the Gemport port is stored in the MAC address table;
  • Step S206 If the destination forwarding port is found, send the data packet to the second edge ONU through the destination forwarding port.
  • the above-mentioned step S204 may specifically include: in the case of hardware processing of the data message, searching for the destination forwarding port from the hardware MAC address table according to the destination MAC address of the data message, wherein, The hardware MAC address table stores the corresponding relationship between the active MAC address and the pGemport port; when the data message is processed by software, the software MAC address table is searched according to the destination MAC address of the data message. Destination forwarding port, wherein the software MAC address table stores the corresponding relationship between the source MAC address and the vGemport port.
  • the data packet when the destination forwarding port is not found, the data packet is flooded on all LAN ports and Gemport ports. Specifically, the data packet is processed by hardware. In this case, the data message is sent to all LAN ports and Gemport ports, that is, the data message is flooded on all LAN ports and pGemport ports; in the case of software processing of the data message, Flood the data packets on all LAN ports and vGemport ports.
  • step S202 extract the source MAC address of the data message; determine whether the source MAC address exists in the MAC address table; if the source MAC address does not exist in the MAC address table In the case of a source MAC address, the corresponding relationship between the source MAC address and the Gemport port is stored in the MAC address table.
  • the status information of the entry where the source MAC address is located is updated.
  • the entry of the source MAC address is aged according to the status information in the MAC address table in a preset time period.
  • the method before the above-mentioned step S202, further includes: after powering on, creating a software port and a hardware port; enabling the packet receiving function and MAC address learning of the software port and the hardware port. and forwarding function to complete the system initialization. After enabling, the hardware port and software port have MAC address learning function and forwarding function.
  • FIG 3 is a schematic diagram of an ONU system connected to XGPON according to an embodiment of the present disclosure.
  • XGPON ONU is connected to a GPON ONU.
  • Edge ONU generally uses GPON ONU.
  • 4096 Gemport ports are created on the FTTR optical gateway and correspond to the service Gemports of the edge ONU one by one. In this way, when the FTTR optical gateway receives a data packet from a specific Gemport of an edge ONU, it will learn the source MAC and Gemport port of the packet into the MAC address table for subsequent MAC address lookup and forwarding.
  • optical gateway data exchange mainly includes system initialization, hardware data exchange, software data exchange, and aging of the MAC address table.
  • System initialization specifically includes: After the optical gateway is powered on, the hardware first creates 4096 physical ports, named pGemportO-pGemport4095. Then the software creates 4096 software ports and names them vGemportO-vGemport4095. After both the software port and the hardware port are created, enable the packet receiving function, MAC address learning and forwarding function of the hardware port and software port. Before the system initialization is completed, neither the hardware port nor the software port can receive packets, learn MAC addresses and forward packets.
  • Figure 4 is a flow chart of system initialization according to an embodiment of the present disclosure. As shown in Figure 4, it may specifically include:
  • the hardware creates a total of 4096 hardware ports pGemportO-pGemport4095;
  • Step S402 may be executed first, or step S403 may be executed first.
  • S404 Enable the MAC address learning function and forwarding function of the hardware port and software port.
  • FIG. 5 is a flow chart of hardware data exchange in an FTTR scenario according to an embodiment of the present disclosure. As shown in Figure 5, hardware data exchange includes:
  • the optical gateway receives the data packet from the edge ONU;
  • S502 Extract the source MAC of the data packet and determine whether the MAC address already exists in the hardware address table;
  • the forwarding destination port is not found in the hardware MAC address table, and flooding is performed on all LAN ports and pGemport ports. Fan:
  • FIG. 6 is a flow chart of software data exchange in an FTTR scenario according to an embodiment of the present disclosure. As shown in Figure 6, software data exchange includes:
  • the optical gateway receives the data packet from the edge ONU;
  • S602 Extract the source MAC of the data packet and determine whether the MAC address already exists in the software address table;
  • the forwarding destination port is not found in the software MAC address table, flood all LAN ports and vGemport ports;
  • the MAC address learned on the optical gateway hardware and software needs to support the aging mechanism.
  • a certain period of time for example, 5 minutes, the value is configurable
  • the embodiment of the present disclosure follows the original MAC address switching model and does not need to modify the optical gateway switching model. It does not need to modify the content of the message, is simple to implement, does not occupy additional bandwidth, and can improve bandwidth utilization. If subsequent edge ONUs adopt ONUs such as EPON, XGPON, XGSPON or 50G PON, it will also be easy to expand according to the scope of its business Gemport. .
  • a data packet forwarding device is also provided, which is applied to an optical gateway.
  • Figure 7 is a block diagram of a data packet forwarding device according to an embodiment of the present disclosure. As shown in Figure 7, it includes:
  • the receiving module 72 is configured to receive the data message sent by the first edge ONU through a Gemport port that corresponds one-to-one to the service Gemport of the first edge ONU;
  • the search module 74 is configured to search the destination forwarding port from the MAC address table according to the destination MAC address of the data message, wherein the corresponding relationship between the source MAC address and the Gemport port is stored in the MAC address table;
  • the sending module 76 is configured to send the data packet to the second edge ONU through the destination forwarding port when the destination forwarding port is found.
  • the search module 74 is also configured to
  • the hardware MAC address is obtained according to the destination MAC address of the data packet. Search the destination forwarding port in the address table, where the corresponding relationship between the source MAC address and the pGemport port is stored in the hardware MAC address table;
  • the destination forwarding port is searched from the software MAC address table according to the destination MAC address of the data packet, where the source MAC address and the source MAC address are stored in the software MAC address table. Correspondence of vGemport ports.
  • the device further includes:
  • the flooding module is configured to flood the data packet on all LAN ports and Gemport ports when the destination forwarding port is not found.
  • the flooding module is also configured to send the data packet to all LAN ports and Gemport ports when hardware processing is performed on the data packet; When the packet is processed by software, the data packet is flooded on all LAN ports and vGemport ports.
  • the device further includes:
  • An extraction module configured to extract the source MAC address of the data message
  • a judgment module configured to judge whether the source MAC address exists in the MAC address table
  • a storage module configured to store the corresponding relationship between the source MAC address and the Gemport port in the MAC address table when the source MAC address does not exist in the MAC address table.
  • the device further includes:
  • An update module configured to update the status information of the entry where the source MAC address is located when the source MAC address exists in the MAC address table.
  • the device further includes:
  • An aging processing module is configured to perform aging processing on the entry of the source MAC address according to the status information in the MAC address table in a preset time period.
  • the device further includes:
  • An enabling module is configured to enable the packet receiving function and the MAC address learning and forwarding function of the software port and the hardware port to complete system initialization.
  • Embodiments of the present disclosure also provide a computer-readable storage medium that stores a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
  • the computer-readable storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • Embodiments of the present disclosure also provide an electronic device, including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • modules or steps of the present disclosure can be implemented using general-purpose computing devices, and they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. They may be implemented in program code executable by a computing device, such that they may be stored in a storage device for execution by the computing device, and in some cases may be executed in a sequence different from that shown herein. Or the described steps can be implemented by making them into individual integrated circuit modules respectively, or by making multiple modules or steps among them into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

一种数据报文转发方法、装置、存储介质及电子装置,该方法包括:通过与边缘ONU的业务Gemport一一对应的Gemport端口接收第一边缘ONU发送的数据报文;根据该数据报文的目的MAC地址从MAC地址表中查找目的转发端口,该MAC地址表中存储有源MAC地址与Gemport端口的对应关系;在查找到该目的转发端口的情况下,通过该目的转发端口将该数据报文发送给第二边缘ONU,可以解决相关技术中FTTR光网关如何处理普通以太口和边缘ONU之间、多个边缘ONU之间的数据的问题,实现了普通以太口和边缘ONU之间、多个边缘ONU之间的数据交换。

Description

数据报文转发方法、装置、存储介质及电子装置
相关申请的交叉引用
本公开基于2022年04月02日提交的发明名称为“数据报文转发方法、装置、存储介质及电子装置”的中国专利申请CN202210346858.8,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。
技术领域
本公开实施例涉及通信领域,具体而言,涉及一种数据报文转发方法、装置、存储介质及电子装置。
背景技术
由于Wi-Fi覆盖、网线质量、接口速率等诸多限制,用户选择的高宽带套餐,未能充分转化为在家庭随时随地的千兆极致体验。不少用户有意识地通过增加Wi-Fi热点数量改善房间的网络体验,常见的方案有增加大发射功率的接入点(Access Point,简称为AP)、Wi-Fi无线中继、电力猫、使用网线把多台AP连接起来等。这些方案能解决一些需求,但并非最优方案,在可靠、运维方面依然存在问题。
在这种情况下,光纤到户(Fiber to the Room,简称为FTTR)技术方案应运而生。相比于传统的网线组网技术,FTTR全光网络解决方案优势显著。其可以直接将光纤延伸至每个房间,是当前业界唯一可以实现全屋千兆以上覆盖能力的新技术。
FTTR全光网络一般由局端光线路终端(optical line terminal,简称为OLT)、FTTR光网关以及边缘光网络单元(Optical Network Unit),简称为ONU)组成。FTTR光网关一般包含若干个2.5G以太口、1G以太口,同时再用一个扩展的物理口配合部分OLT的功能对接下面的若干个边缘ONU。当前的普通光网关只能处理物理以太口的数据报文交换,FTTR光网关和普通光网关相比引入了边缘ONU,那么如何有效处理普通以太口和边缘ONU之间、多个边缘ONU之间的数据交换就成了FTTR光网关急需解决的问题。
针对相关技术中FTTR光网关如何处理普通以太口和边缘ONU之间、多个边缘ONU之间的数据的问题,尚未提出解决方案。
发明内容
本公开实施例提供了一种数据报文转发方法、装置、存储介质及电子装置,以至少解决相关技术中FTTR光网关如何处理普通以太口和边缘ONU之间、多个边缘ONU之间的数据的问题。
根据本公开的一个实施例,提供了一种数据报文转发方法,应用于光网关,其中,包括:
通过与第一边缘ONU的业务Gemport一一对应的Gemport端口接收所述第一边缘ONU发送的数据报文;
根据所述数据报文的目的介质访问控制(Media Access Control,简称为MAC)地址从MAC地址表中查找目的转发端口,其中,所述MAC地址表中存储有源MAC地址与Gemport端 口的对应关系;
在查找到所述目的转发端口的情况下,通过所述目的转发端口将所述数据报文发送给第二边缘ONU。
根据本公开的另一个实施例,还提供了一种数据报文转发装置,应用于光网关,包括:
接收模块,设置为通过与第一边缘ONU的业务Gemport一一对应的Gemport端口接收所述第一边缘ONU发送的数据报文;
查找模块,设置为根据所述数据报文的目的MAC地址从MAC地址表中查找目的转发端口,其中,所述MAC地址表中存储有源MAC地址与Gemport端口的对应关系;
发送模块,设置为在查找到所述目的转发端口的情况下,通过所述目的转发端口将所述数据报文发送给第二边缘ONU。
根据本公开的又一个实施例,还提供了一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。
附图说明
图1是本公开实施例的数据报文转发方法的移动终端的硬件结构框图;
图2是根据本公开实施例的数据报文转发方法的流程图;
图3是根据本公开实施例的XGPON下挂ONU系统的示意图;
图4是根据本公开实施例的系统初始化的流程图;
图5是根据本公开实施例的FTTR场景下硬件数据交换的流程图;
图6是根据本公开实施例的FTTR场景下软件数据交换的流程图;
图7是根据本公开实施例的数据报文转发装置的框图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本公开的实施例。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本公开实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本公开实施例的数据报文转发方法的移动终端的硬件结构框图,如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实 施例中的数据报文转发方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及业务链地址池切片处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
在本实施例中提供了一种运行于上述移动终端或网络架构的数据报文转发方法,图2是根据本公开实施例的数据报文转发方法的流程图,如图2所示,该方法的执行主体是光网关,该流程包括如下步骤:
步骤S202,通过与第一边缘ONU的业务Gemport一一对应的Gemport端口接收所述第一边缘ONU发送的数据报文;
步骤S204,根据所述数据报文的目的MAC地址从MAC地址表中查找目的转发端口,其中,所述MAC地址表中存储有源MAC地址与Gemport端口的对应关系;
步骤S206,在查找到所述目的转发端口的情况下,通过所述目的转发端口将所述数据报文发送给第二边缘ONU。
通过上述步骤S202至S208,可以解决相关技术中FTTR光网关如何处理普通以太口和边缘ONU之间、多个边缘ONU之间的数据的问题,实现了和边缘ONU之间、多个边缘ONU之间的数据交换。
本公开实施例中,上述步骤S204具体可以包括:在对所述数据报文进行硬件处理的情况下,根据所述数据报文的目的MAC地址从硬件MAC地址表中查找目的转发端口,其中,所述硬件MAC地址表中存储有源MAC地址与pGemport端口的对应关系;在对所述数据报文进行软件处理的情况下,根据所述数据报文的目的MAC地址从软件MAC地址表中查找目的转发端口,其中,所述软件MAC地址表中存储有源MAC地址与vGemport端口的对应关系。
在一实施例中,在未查找到所述目的转发端口的情况下,在所有LAN口和Gemport端口对所述数据报文进行洪范,具体的,在对所述数据报文进行硬件处理的情况下,将所述数据报文发送到所有LAN口和Gemport端口,即在所有LAN口和pGemport端口对所述数据报文进行洪范;在对所述数据报文进行软件处理的情况下,在所有LAN口和vGemport端口对所述数据报文进行洪范。
在另一实施例中,在上述步骤S202之后,提取所述数据报文的源MAC地址;判断所述MAC地址表中是否存在所述源MAC地址;在所述MAC地址表中不存在所述源MAC地址的情况下,将所述源MAC地址与所述Gemport端口的对应关系存储到所述MAC地址表中。在所述MAC地址表中存在所述源MAC地址的情况下,更新所述源MAC地址所在条目的状态信息。
在另一实施例中,以预设时间周期根据所述MAC地址表中所述状态信息对所述源MAC地址所在条目进行老化处理。
在另一实施例中,在上述步骤S202之前,所述方法还包括:上电之后,创建软件口与硬件口;使能所述软件口与所述硬件口的接收报文功能以及MAC地址学习和转发功能,以完成系统初始化,使能之后,硬件口和软件口具备MAC地址学习功能以及转发功能。
图3是根据本公开实施例的XGPON下挂ONU系统的示意图,如图3所示,XGPON ONU下挂GPON ONU。边缘ONU一般使用GPON ONU,在GPON系统中会有0-4095共4096个Gemport作为业务通道,在FTTR光网关上创建4096个Gemport端口,并和边缘ONU的业务Gemport一一对应。这样FTTR光网关收到来自边缘ONU特定Gemport的数据报文时,会把报文的源MAC和Gemport端口学习到MAC地址表中用作后续的MAC地址查找和转发。对于需要转发到某个Gemport端口的数据报文,也会根据Gemport端口号做GEM帧封装并发送到边缘ONU。本公开实施例中光网关数据交换主要包括系统初始化、硬件数据交换、软件数据交换以及MAC地址表的老化。
系统初始化,具体包括:光网关上电后,首先硬件创建4096个物理端口,命名为pGemportO-pGemport4095。接着软件创建4096个软件口,命名为vGemportO-vGemport4095。在软件口和硬件口均创建完成后,再使能硬件口和软件口的接收报文功能以及MAC地址学习和转发功能。在系统初始化完成前,硬件口和软件口均不能接收报文,也不能学习MAC地址和转发报文。图4是根据本公开实施例的系统初始化的流程图,如图4所示,具体可以包括:
S401,光网关上电;
S402,硬件创建pGemportO-pGemport4095共4096个硬件口;
S403,软件创建vGemportO-vGemport4095共4096个软件口;
上述步骤S402与S403没有固定的先后顺序,可以先执行步骤S402,也可以先执行步骤S403。
S404,使能硬件口和软件口的MAC地址学习功能以及转发功能。
硬件数据交换的转发,光网关硬件收到来自边缘ONU的数据流时,会把数据流的源MAC地址以及与其对应GEMPORT学习到硬件地址表里面,形成一个源MAC+pGemport物理端口的地址条目。针对来自光网关LAN口以及PON口的数据流也会把数据流的源MAC以及对应的端口学习到硬件地址表中。这样就能在光网关上实现基于MAC地址的硬件报文交换,对于需要转发到某个pGemport端口的报文,需要打上对应的Gemport值,并做GEM帧封装后发往对应的边缘ONU。图5是根据本公开实施例的FTTR场景下硬件数据交换的流程图,如图5所示,硬件数据交换包括:
S501,光网关收到来自边缘ONU的数据报文;
S502,提取数据报文的源MAC,判断硬件地址表中是否已经有了本MAC地址;
S503,如果硬件地址表中没有本MAC地址,把本MAC地址和收到该数据报文的pGemport口学习到硬件MAC地址表中;
S504,更新MAC地址表的状态标记,如果硬件地址表中已经存在本MAC地址条目,那么把该条目的状态信息更新以表明本条目在用,在地址老化过程中会参考该状态信息;
S505,判断报文是否需要送到CPU进行软件处理;
S506,如果不需要送CPU软件处理,那么直接查找硬件MAC地址表以查找目的转发端口;
S507,报文需要送CPU进行软件处理;
S508,在硬件MAC地址表中没有找到转发目的端口,在所有LAN口和pGemport口进行洪 范:
S509,在硬件MAC地址表中找到目的端口后,把报文转发到该目的端口(可能为LAN口或pGemport口)。
软件数据交换的转发,除了硬件直接转发的数据报文之外,还有一部分报文需要由光网关的软件进行处理。相应的,来自边缘ONU的数据报文在经过pGemport送到光网关软件处理时,会进入到对应的vGemport,然后光网关的软件会学习报文的源MAC和vGemport到软件地址表。针对来自光网关LAN口以及PON口的数据流也会把数据流的源MAC以及对应的端口学习到软件地址表中。这样就能实现基于MAC地址的软件报文交换,对于需要转发到某个vGemport的数据报文,先发送到对应的pGemport,再做GEM帧封装并发往对应的边缘ONU。图6是根据本公开实施例的FTTR场景下软件数据交换的流程图,如图6所示,软件数据交换包括:
S601,光网关收到来自边缘ONU的数据报文;
S602,提取数据报文的源MAC,判断软件地址表中是否已经有了本MAC地址;
S603,软件地址表中没有本MAC地址,把MAC地址和收到该报文的vGemport口学习到软件MAC地址表中;
S604,更新MAC地址表的状态标记,软件地址表中已经存在本MAC地址条目,那么把该条目的状态信息更新以表明本条目在用,在地址老化过程中会参考该状态信息;
S605,查找软件MAC地址表以获取目的转发端口;
S606,在软件MAC地址表中没有找到转发目的端口,在所有LAN口和vGemport口进行洪范;
S607,在软件MAC地址表中找到目的端口后,把报文转发到该目的端口(可能为LAN口或vGemport口)。
硬件地址表和软件地址表的老化,光网关硬件以及软件上学习到的MAC地址,需要支持老化机制。在一定时间内(比如5分钟,值可配),如果没有该MAC地址的报文传输,那么对应的MAC地址需要自行老化。
本公开实施例沿用原有的MAC地址交换模型,不需要修改光网关交换模型。并且不需要修改报文的内容,实现简单,不占用额外带宽,可以提升带宽利用率,并且如果后续边缘ONU采用EPON、XGPON、XGSPON或50G PON等ONU时也便于根据其业务Gemport的范围进行扩展。
根据本公开的另一个实施例,还提供了一种数据报文转发装置,应用于光网关,图7是根据本公开实施例的数据报文转发装置的框图,如图7所示,包括:
接收模块72,设置为通过与第一边缘ONU的业务Gemport一一对应的Gemport端口接收所述第一边缘ONU发送的数据报文;
查找模块74,设置为根据所述数据报文的目的MAC地址从MAC地址表中查找目的转发端口,其中,所述MAC地址表中存储有源MAC地址与Gemport端口的对应关系;
发送模块76,设置为在查找到所述目的转发端口的情况下,通过所述目的转发端口将所述数据报文发送给第二边缘ONU。
在一实施例中,所述查找模块74,还设置为
在对所述数据报文进行硬件处理的情况下,根据所述数据报文的目的MAC地址从硬件MAC 地址表中查找目的转发端口,其中,所述硬件MAC地址表中存储有源MAC地址与pGemport端口的对应关系;
在对所述数据报文进行软件处理的情况下,根据所述数据报文的目的MAC地址从软件MAC地址表中查找目的转发端口,其中,所述软件MAC地址表中存储有源MAC地址与vGemport端口的对应关系。
在一实施例中,所述装置还包括:
洪泛模块,设置为在未查找到所述目的转发端口的情况下,在所有LAN口和Gemport端口对所述数据报文进行洪范。
在一实施例中,所述洪泛模块,还设置为在对所述数据报文进行硬件处理的情况下,将所述数据报文发送到所有LAN口和Gemport端口;在对所述数据报文进行软件处理的情况下,在所有LAN口和vGemport端口对所述数据报文进行洪范。
在一实施例中,所述装置还包括:
提取模块,设置为提取所述数据报文的源MAC地址;
判断模块,设置为判断所述MAC地址表中是否存在所述源MAC地址;
存储模块,设置为在所述MAC地址表中不存在所述源MAC地址的情况下,将所述源MAC地址与所述Gemport端口的对应关系存储到所述MAC地址表中。
在一实施例中,所述装置还包括:
更新模块,设置为在所述MAC地址表中存在所述源MAC地址的情况下,更新所述源MAC地址所在条目的状态信息。
在一实施例中,所述装置还包括:
老化处理模块,设置为以预设时间周期根据所述MAC地址表中所述状态信息对所述源MAC地址所在条目进行老化处理。
在一实施例中,所述装置还包括:
创建模块,设置为上电之后,创建软件口与硬件口;
使能模块,设置为使能所述软件口与所述硬件口的接收报文功能以及MAC地址学习和转发功能,以完成系统初始化。
本公开的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。

Claims (11)

  1. 一种数据报文转发方法,应用于光网关,包括:
    通过与第一边缘ONU的业务Gemport一一对应的Gemport端口接收所述第一边缘ONU发送的数据报文;
    根据所述数据报文的目的MAC地址从MAC地址表中查找目的转发端口,其中,所述MAC地址表中存储有源MAC地址与Gemport端口的对应关系;
    在查找到所述目的转发端口的情况下,通过所述目的转发端口将所述数据报文发送给第二边缘ONU。
  2. 根据权利要求1所述的方法,其中,根据所述数据报文的目的MAC地址从MAC地址表中查找目的转发端口包括:
    在对所述数据报文进行硬件处理的情况下,根据所述数据报文的目的MAC地址从硬件MAC地址表中查找目的转发端口,其中,所述硬件MAC地址表中存储有源MAC地址与pGemport端口的对应关系;
    在对所述数据报文进行软件处理的情况下,根据所述数据报文的目的MAC地址从软件MAC地址表中查找目的转发端口,其中,所述软件MAC地址表中存储有源MAC地址与vGemport端口的对应关系。
  3. 根据权利要求1所述的方法,其中,所述方法还包括:
    在未查找到所述目的转发端口的情况下,将所述数据报文发送到所有LAN口和Gemport端口。
  4. 根据权利要求3所述的方法,其中,在所有LAN口和Gemport端口对所述数据报文进行洪范包括:
    在对所述数据报文进行硬件处理的情况下,将所述数据报文发送到所有LAN口和Gemport端口;
    在对所述数据报文进行软件处理的情况下,在所有LAN口和vGemport端口对所述数据报文进行洪范。
  5. 根据权利要求1至4中任一项所述的方法,其中,在通过与第一边缘ONU的业务Gemport一一对应的Gemport端口接收所述第一边缘ONU发送的数据报文之后,所述方法还包括:
    提取所述数据报文的源MAC地址;
    判断所述MAC地址表中是否存在所述源MAC地址;
    在所述MAC地址表中不存在所述源MAC地址的情况下,将所述源MAC地址与所述Gemport端口的对应关系存储到所述MAC地址表中。
  6. 根据权利要求5所述的方法,其中,所述方法还包括:
    在所述MAC地址表中存在所述源MAC地址的情况下,更新所述源MAC地址所在条目的状态信息。
  7. 根据权利要求6所述的方法,其中,所述方法还包括:
    以预设时间周期根据所述MAC地址表中所述状态信息对所述源MAC地址所在条目进行老化处理。
  8. 根据权利要求1至4、6至7中任一项所述的方法,其中,在通过与第一边缘ONU的 业务Gemport一一对应的Gemport端口接收所述第一边缘ONU发送的数据报文之前,所述方法还包括:
    上电之后,创建软件口与硬件口;
    使能所述软件口与所述硬件口的接收报文功能以及MAC地址学习和转发功能,以完成系统初始化。
  9. 一种数据报文转发装置,应用于光网关,包括:
    接收模块,设置为通过与第一边缘ONU的业务Gemport一一对应的Gemport端口接收所述第一边缘ONU发送的数据报文;
    查找模块,设置为根据所述数据报文的目的MAC地址从MAC地址表中查找目的转发端口,其中,所述MAC地址表中存储有源MAC地址与Gemport端口的对应关系;
    发送模块,设置为在查找到所述目的转发端口的情况下,通过所述目的转发端口将所述数据报文发送给第二边缘ONU。
  10. 一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至8任一项中所述的方法。
  11. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至8任一项中所述的方法。
PCT/CN2023/085687 2022-04-02 2023-03-31 数据报文转发方法、装置、存储介质及电子装置 WO2023186141A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210346858.8A CN116801137A (zh) 2022-04-02 2022-04-02 数据报文转发方法、装置、存储介质及电子装置
CN202210346858.8 2022-04-02

Publications (1)

Publication Number Publication Date
WO2023186141A1 true WO2023186141A1 (zh) 2023-10-05

Family

ID=88038442

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/085687 WO2023186141A1 (zh) 2022-04-02 2023-03-31 数据报文转发方法、装置、存储介质及电子装置

Country Status (2)

Country Link
CN (1) CN116801137A (zh)
WO (1) WO2023186141A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009013215A2 (en) * 2007-07-25 2009-01-29 Nokia Siemens Networks Oy Method for addressing ethernet streams with a structured gpon gem port id
CN104506436A (zh) * 2014-12-22 2015-04-08 上海斐讯数据通信技术有限公司 一种以太无源光网络的数据报文的发送方法
CN110391921A (zh) * 2018-04-17 2019-10-29 中兴通讯股份有限公司 Olt端口的配置信息的处理方法、装置及存储介质
CN110958502A (zh) * 2019-11-27 2020-04-03 烽火通信科技股份有限公司 一种实现同一pon内不同onu之间互通的方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877728B (zh) * 2010-06-25 2014-12-31 中兴通讯股份有限公司 网络地址转换转发方法及装置
CN103209130A (zh) * 2013-04-22 2013-07-17 杭州华三通信技术有限公司 一种同步mac地址表项的方法及转发芯片

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009013215A2 (en) * 2007-07-25 2009-01-29 Nokia Siemens Networks Oy Method for addressing ethernet streams with a structured gpon gem port id
CN104506436A (zh) * 2014-12-22 2015-04-08 上海斐讯数据通信技术有限公司 一种以太无源光网络的数据报文的发送方法
CN110391921A (zh) * 2018-04-17 2019-10-29 中兴通讯股份有限公司 Olt端口的配置信息的处理方法、装置及存储介质
CN110958502A (zh) * 2019-11-27 2020-04-03 烽火通信科技股份有限公司 一种实现同一pon内不同onu之间互通的方法及系统

Also Published As

Publication number Publication date
CN116801137A (zh) 2023-09-22

Similar Documents

Publication Publication Date Title
US11374857B2 (en) Network device management method and apparatus, and system for indicating a network device to perform management operation
CN106936777B (zh) 基于OpenFlow的云计算分布式网络实现方法、系统
KR102342286B1 (ko) Dcn 메시지 처리 방법, 네트워크 디바이스, 및 네트워크 시스템
EP2985959B1 (en) Progressive mac address learning
US8879549B2 (en) Clearing forwarding entries dynamically and ensuring consistency of tables across ethernet fabric switch
EP3069471B1 (en) Optimized multicast routing in a clos-like network
US20100188983A1 (en) Scaled ethernet oam for mesh and hub-and-spoke networks
EP3490197B1 (en) Message forwarding
WO2015021595A1 (zh) 业务通道配置方法和光线路终端以及无源光网络
US20210211377A1 (en) Pseudo Wire Load Sharing Method and Device
EP2858306B1 (en) Data transmission method, device and gateway
EP4191966A1 (en) Method and device for processing data message, storage medium, and electronic device
US10587508B2 (en) Ethernet frame transmission method in software defined networks (SDN)
US10560456B2 (en) Method, apparatus, and system for collecting access control list
WO2012159461A1 (zh) 一种二层路径最大传输单元发现方法和节点
CN101242370B (zh) 实现以太网与帧中继互联的方法与协议转换设备
JP2017532875A (ja) データ交換方法、ベースバンド処理ユニット、無線リモートユニット及びリレーユニット
CN112822097B (zh) 报文转发的方法、第一网络设备以及第一设备组
EP2728797A1 (en) Message processing method, device and system
EP2852115B1 (en) Information processing method, apparatus and system in trill networks
CN101616343A (zh) 一种业务类型自协商方法及其汇聚设备
CN113938446A (zh) 一种基于mlag环境的组播表项同步方法及设备
CN109120657B (zh) 一种业务配置方法和节点
WO2023186141A1 (zh) 数据报文转发方法、装置、存储介质及电子装置
US8634306B2 (en) Systems and methods for implementing service operation, administration, and management for hairpinned ethernet services

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23778505

Country of ref document: EP

Kind code of ref document: A1