CN101257487B - Method for mapping service stream onto service transmission channel as well as optical network terminal - Google Patents
Method for mapping service stream onto service transmission channel as well as optical network terminal Download PDFInfo
- Publication number
- CN101257487B CN101257487B CN2007101956154A CN200710195615A CN101257487B CN 101257487 B CN101257487 B CN 101257487B CN 2007101956154 A CN2007101956154 A CN 2007101956154A CN 200710195615 A CN200710195615 A CN 200710195615A CN 101257487 B CN101257487 B CN 101257487B
- Authority
- CN
- China
- Prior art keywords
- service flow
- service
- optical network
- mapping
- port
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明提供了一种将业务流映射到业务传输通道的方法,包括:在光网络终端中预先保存业务流的报文特征,所述报文特征包括VLANID;光网络终端在接收到业务流后,将所述接收到的业务流的报文特征与所述预先保存的报文特征进行比较,若两者匹配,将所述业务流映射到无源光网络封装模式端口GEM PORT。本发明支持根据VLAN ID或者报文的其他特征将业务流映射到不同的GEM PORT,保证了细分业务QOS的要求。
The present invention provides a method for mapping a service flow to a service transmission channel, comprising: pre-saving the message characteristics of the service flow in an optical network terminal, the message characteristics including VLANID; after receiving the service flow, the optical network terminal , comparing the packet feature of the received service flow with the pre-stored packet feature, and if the two match, mapping the service flow to a passive optical network encapsulation mode port GEM PORT. The invention supports mapping service flows to different GEM PORTs according to VLAN ID or other characteristics of messages, and ensures the requirement of subdivided service QOS.
Description
技术领域technical field
本发明涉及光网络技术领域,具体涉及在该技术领域中一种将业务流映射到业务传输通道的方法及光网络终端。The invention relates to the technical field of optical networks, in particular to a method for mapping service flows to service transmission channels and an optical network terminal in the technical field.
背景技术Background technique
目前的宽带接入技术主要区分为铜线接入技术和光接入技术。由光接入技术实现的接入网称为光接入网(OAN,optical access network)。PON是光接入网的一种实现技术,PON技术是一种点对多点传送的光接入技术,如图1所示,PON系统由光线路终端(OLT,Optical Line Terminal)、光分布网(ODN,Optical Distribute Network)、光网络单元(ONU,OpticalNetwork Unit)组成,其中:The current broadband access technology is mainly divided into copper wire access technology and optical access technology. The access network implemented by optical access technology is called optical access network (OAN, optical access network). PON is an implementation technology of optical access network. PON technology is an optical access technology for point-to-multipoint transmission. As shown in Figure 1, the PON system consists of optical line terminal (OLT, Optical Line Terminal), optical distribution Network (ODN, Optical Distribute Network), optical network unit (ONU, OpticalNetwork Unit), of which:
OLT:为OAN提供网络侧接口(SNI,Service Node Interface),连接一个或者多个ODN。OLT: Provides a network side interface (SNI, Service Node Interface) for OAN, and connects to one or more ODNs.
ODN:无源分光器件,ODN将OLT下行的数据通过光分路传输到各个ONU,同时ODN将ONU的上行数据通过汇聚传输到OLT。ODN: Passive optical splitting device. The ODN transmits the downlink data of the OLT to each ONU through optical splitting, and at the same time, the ODN transmits the uplink data of the ONU to the OLT through aggregation.
ONU:为OAN提供用户侧接口(UNI,User Network Interface),同时与ODN相连,如果ONU同时提供用户端口功能,如ONU提供Ethernet用户端口或者POTS(Plain Old Telephone Service)用户端口,则称为光网络终端(ONT,Optical Network Termination),一般在没有特别说明时,ONU、ONT统一称为ONT。ONU: Provides a user-side interface (UNI, User Network Interface) for OAN and is connected to ODN at the same time. If the ONU also provides user port functions, such as ONU provides Ethernet user ports or POTS (Plain Old Telephone Service) user ports, it is called optical Network terminal (ONT, Optical Network Termination), generally, when there is no special description, ONU and ONT are collectively called ONT.
如图2和图3所示,通用的PON接入技术,OLT的下行流量通过 TDM(时分复用)的方式广播到ONT,各个ONT接收流量后取出自己的数据;ONT的上行流量通过OLT的控制,同一个时刻只允许特定的ONT传输数据,通过TDMA(时分多址)的方式传输到OLT。As shown in Figure 2 and Figure 3, in the general PON access technology, the downlink traffic of OLT is broadcast to ONT through TDM (time division multiplexing), and each ONT takes out its own data after receiving the traffic; the uplink traffic of ONT passes through the OLT Control, only specific ONTs are allowed to transmit data at the same time, and are transmitted to the OLT through TDMA (Time Division Multiple Access).
吉比特无源光网络(GPON,Giga-bit Passive Optical Network)是最新的PON技术标准,国际电信联盟(ITU-T)的GPON的技术标准对应G984.1、G984.2、G984.3、G984.4系列。Giga-bit Passive Optical Network (GPON, Giga-bit Passive Optical Network) is the latest PON technical standard, and the GPON technical standard of the International Telecommunication Union (ITU-T) corresponds to G984.1, G984.2, G984.3, G984 .4 series.
GPON技术标准的协议栈如图4所示,其中:The protocol stack of the GPON technical standard is shown in Figure 4, where:
GPON Transmission Convergence layer:GPON传输汇聚层,简称GTC,又分为两个子层:GPON Transmission Convergence layer: GPON transmission convergence layer, referred to as GTC, is divided into two sublayers:
1)TC Adapter Sublayer:TC适配子层,下行,负责将从ATM client收到的业务数据切割成为ATM信元,将从GEM client收到的业务切割成为GEM数据块;上行,负责将GTC帧中的ATM信元或者GEM数据块组装成相应的业务数据。1) TC Adapter Sublayer: TC Adapter Sublayer, downlink, responsible for cutting the service data received from the ATM client into ATM cells, and cutting the service received from the GEM client into GEM data blocks; uplink, responsible for cutting the GTC frame ATM cells or GEM data blocks in the module are assembled into corresponding service data.
2)GTC Framing Sublayer:GTC帧子层,下行,负责GTC TC帧组帧处理,在ATM信元或者GEM数据块前,根据PLOAM(Physical LayerOperation,Administration and Maintenance,)的控制信息添加GTC TC帧头,组成完整的GTC TC帧,发送到GPM层;上行,从GPM层接收到的GTC TC帧,去掉帧头信息,提交TC适配子层处理。2) GTC Framing Sublayer: GTC frame sublayer, downlink, responsible for GTC TC frame framing processing, before ATM cells or GEM data blocks, add GTC TC frame headers according to PLOAM (Physical Layer Operation, Administration and Maintenance,) control information , form a complete GTC TC frame, and send it to the GPM layer; uplink, remove the frame header information from the GTC TC frame received from the GPM layer, and submit it to the TC adaptation sublayer for processing.
GPON Physical Media Dependent Layer:GPON物理媒质相关层,负责GTC帧在光纤上的传输。GPON Physical Media Dependent Layer: GPON physical media-related layer, responsible for the transmission of GTC frames on optical fibers.
PLOAM:负责PON物理层操作、管理、维护功能;PLOAM: responsible for PON physical layer operation, management and maintenance functions;
OMCI(ONU Management and Control Interface):ONU管理控制接口,OLT通过OMCI实现对ONT的控制功能,OMCI的数据和普通的业务数据一样封装成ATM信元或者GEM数据块传输。OMCI (ONU Management and Control Interface): ONU management control interface, OLT realizes ONT control function through OMCI, OMCI data is encapsulated into ATM cell or GEM data block transmission like ordinary business data.
GPON的GTC层提供两种业务数据的封装方式,ATM封装方式和无源光网络封装方式(GEM,GPON Encapsulation Method),ATM封装 方式将业务数据封装在53字节的ATM信元中传输,ATM传输方式是定长的ATM信元;GEM是变长封装的,支持根据业务数据帧的长度改变GEM封装帧的长度。GPON GTC层中,T-CONT是基本的控制单元,T-CONT通过ALLOC-ID标识,每一个T-CONT的ALLOC-ID由OLT统一分配。在GEM封装方式下,T-CONT内部通过PORT复用业务流,PORT通过PORT-ID标识;在ATM封装方式下,T-CONT内部通过PVP/PVC复用业务流,PVP/PVC通过VPI/VCI(虚通路标识符/虚通道标识符)标识。The GTC layer of GPON provides two encapsulation methods for service data, ATM encapsulation method and passive optical network encapsulation method (GEM, GPON Encapsulation Method). The ATM encapsulation method encapsulates service data in 53-byte ATM cells for transmission. The transmission method is fixed-length ATM cells; GEM is variable-length encapsulation, which supports changing the length of the GEM encapsulation frame according to the length of the service data frame. In the GPON GTC layer, T-CONT is the basic control unit, and T-CONT is identified by ALLOC-ID, and the ALLOC-ID of each T-CONT is uniformly allocated by OLT. In GEM encapsulation mode, T-CONT internally multiplexes service streams through PORT, and PORT is identified by PORT-ID; in ATM encapsulation mode, T-CONT internally multiplexes service streams through PVP/PVC, and PVP/PVC through VPI/VCI (virtual channel identifier/virtual channel identifier) identifier.
下文中针对GEM方式的描述,同样适用于ATM方式。The following descriptions for the GEM mode are also applicable to the ATM mode.
如图5所示,一个OLT的PON接口下支持接入多个ONT(ONU),每一个ONT(ONU)支持一个或者多个T-CONT,每一个T-CONT支持一个或者多个GEM PORT。因为ONT到OLT上行业务流是通过时分多址的方式传输,同一时刻只能有一个ONT上行传输数据,OLT为ONT分配上行传输数据的时间窗口,ONT在分配的时间窗口内完成上行数据的发送。OLT控制ONT上行业务流的基本控制单元是T-CONT,即OLT基于T-CONT分配时间窗口。T-CONT传输时间窗口在宏观上表示这个T-CONT上行传输带宽,OLT为T-CONT分配的时间窗口越长,频率越高,T-CONT上行传输的带宽越大。As shown in Figure 5, the PON interface of an OLT supports access to multiple ONTs (ONUs), each ONT (ONU) supports one or more T-CONTs, and each T-CONT supports one or more GEM PORTs. Because the upstream service flow from the ONT to the OLT is transmitted through time division multiple access, only one ONT can transmit data upstream at a time, and the OLT allocates a time window for the ONT to transmit data upstream, and the ONT completes the transmission of the upstream data within the allocated time window . The basic control unit for the OLT to control the upstream service flow of the ONT is the T-CONT, that is, the OLT allocates time windows based on the T-CONT. The T-CONT transmission time window macroscopically represents the T-CONT uplink transmission bandwidth. The longer the time window allocated by the OLT to the T-CONT and the higher the frequency, the greater the T-CONT uplink transmission bandwidth.
GPON系统支持动态带宽分配(DBA,dynamic bandwidth assignment)机制,根据T-CONT的带宽需求,动态分配T-CONT的上行带宽,提高上行带宽的利用率。T-CONT支持5种类型:The GPON system supports dynamic bandwidth assignment (DBA, dynamic bandwidth assignment) mechanism, according to the bandwidth requirements of T-CONT, dynamically allocates the uplink bandwidth of T-CONT, and improves the utilization rate of uplink bandwidth. T-CONT supports 5 types:
T-CONT类型1:固定带宽(Fixed bandwidth);T-CONT Type 1: Fixed bandwidth (Fixed bandwidth);
T-CONT类型2:保证带宽(Assured bandwidth);T-CONT type 2: guaranteed bandwidth (Assured bandwidth);
T-CONT类型3:非保证带宽(Non-assured bandwidth);T-CONT Type 3: Non-assured bandwidth (Non-assured bandwidth);
T-CONT类型4:尽力而为带宽(Best effort bandwidth);T-CONT type 4: best effort bandwidth (Best effort bandwidth);
T-CONT类型5:以上四种方式的混合模式。T-CONT type 5: a mixed mode of the above four methods.
T-CONT类型1是固定分配的带宽,即使T-CONT没有流量传输,OLT也为T-CONT分配带宽;T-CONT类型2在T-CONT没有传输数据时将带宽分配给T-CONT使用,T-CONT有传输数据时可以确保带宽;T-CONT类型3、T-CONT类型4不能保证T-CONT的带宽,T-CONT类型3的优先级要高于T-CONT类型4。T-
OLT和ONT在传输数据前,首先进行业务传输通道的协商,业务通道的协商通过OMCI控制消息实现。GEM方式的业务传输通道称为GEM PORT(GEM端口),OLT为ONT分配业务传输通道GEM PORT的PORT-ID,PORT_ID是全局唯一的,即不同的业务流分配不同的PORT_ID。Before transmitting data, the OLT and ONT first negotiate the service transmission channel, and the negotiation of the service channel is realized through OMCI control messages. The service transmission channel in the GEM mode is called GEM PORT (GEM port). The OLT assigns the PORT-ID of the service transmission channel GEM PORT to the ONT. The PORT_ID is globally unique, that is, different service flows are assigned different PORT_IDs.
OLT到ONT的下行数据通过广播方式传输到所有的ONT,ONT在协议栈中的TC适配子层将会收到OLT发送的所有GEM PORT承载的业务数据。承载业务数据的GEM PORT不一定是OLT为这个ONT分配的,ONT无权接收不属于自己的GEM PORT的流量,因此ONT在TC适配子层根据GEM PORT进行PORT_ID过滤,只有OLT通过OMCI通道为这个ONT分配了PORT_ID的GEM PORT承载的数据才接收(对应图4中GPON协议栈的PORT-ID Filter功能)。ONT到OLT的上行数据,通过单播方式传输,ONT按照OLT分配的PORT_ID,将用户数据承载在GEM PORT中,在GEM PORT所属T-CONT的传输时间窗口内发送数据。The downlink data from OLT to ONT is transmitted to all ONTs by broadcasting, and the TC adaptation sublayer of ONT in the protocol stack will receive the business data carried by all GEM PORTs sent by OLT. The GEM PORT that carries business data is not necessarily allocated by the OLT for this ONT. The ONT has no right to receive traffic that does not belong to its own GEM PORT. Therefore, the ONT performs PORT_ID filtering based on the GEM PORT at the TC adaptation sublayer. Only the OLT passes through the OMCI channel for Only the data carried by the GEM PORT assigned PORT_ID by this ONT is received (corresponding to the PORT-ID Filter function of the GPON protocol stack in Figure 4). The uplink data from ONT to OLT is transmitted by unicast. ONT carries user data in GEM PORT according to PORT_ID allocated by OLT, and sends data within the transmission time window of T-CONT to which GEM PORT belongs.
如6图所示,ONT功能分为两部分,GPON协议处理模块和业务处理模块。GPON协议处理模块是ONT的核心模块,负责GPON协议栈的实现,其中PON TC层功能对应实现GPON协议栈中的GPON传输汇聚层功能,ODN接口功能对应实现GPON协议栈中的GPON物理媒质相关层功能,业务处理模块实现业务适配功能,业务复用/解复用连接PON TC层功能模块和业务处理模块,实现业务流量到GEM PORT的映 射关系,虚线框标识的是可选实现的功能模块。As shown in Figure 6, the ONT function is divided into two parts, the GPON protocol processing module and the service processing module. The GPON protocol processing module is the core module of the ONT, responsible for the realization of the GPON protocol stack, where the PON TC layer function corresponds to the GPON transmission and convergence layer function in the GPON protocol stack, and the ODN interface function corresponds to the GPON physical media related layer in the GPON protocol stack Function, business processing module implements business adaptation function, business multiplexing/demultiplexing connects PON TC layer function module and business processing module, and realizes the mapping relationship between business traffic and GEM PORT, and the dotted line box indicates the function that can be realized optionally module.
如7图所示,对于GPON系统承载以太网业务,相应的业务适配模块是介质访问控制(MAC,Media Access Control)桥模块(或者单纯的以太网端口适配模块),MAC桥模块实现以太网交换功能,支持多个以太网端口的接入。MAC桥模块从外部以太网端口P1、端口P2和端口P3上接收以太网报文,通过内部的以太网交换功能,将以太网报文交换到与业务复用/解复用模块向连接的内部以太网端口P0上。As shown in Figure 7, for the GPON system to carry Ethernet services, the corresponding service adaptation module is a Media Access Control (MAC, Media Access Control) bridge module (or a simple Ethernet port adaptation module), and the MAC bridge module implements Ethernet Network switching function, supporting the access of multiple Ethernet ports. The MAC bridge module receives Ethernet packets from the external Ethernet port P1, port P2 and port P3, and switches the Ethernet packets to the internal network connected to the business multiplexing/demultiplexing module through the internal Ethernet switching function. on Ethernet port P0.
业务复用/解复用功能模块从内部以太网端口收到以太网类型业务流,根据业务流的特征(例如业务流的802.1P优先级)进行分类,分成不同的业务流类,每一类业务流映射到不同的GEM PORT中。因为不同的T-CONT类型具有不同的服务质量(QoS,quality-of-service)特性,例如,对于需要保证带宽和时延敏感的业务流如VOIP业务流,可以区分出来承载在T-CONT类型2(由此可以保证带宽)的GEM PORT中传输。The service multiplexing/demultiplexing functional module receives Ethernet type service flow from the internal Ethernet port, classifies it according to the characteristics of the service flow (such as the 802.1P priority of the service flow), and divides it into different service flow classes, each class Business flows are mapped to different GEM PORTs. Because different T-CONT types have different quality-of-service (QoS, quality-of-service) characteristics, for example, service flows that need to guarantee bandwidth and delay sensitive services such as VOIP service flows can be distinguished and carried on T-CONT types 2 (thus the bandwidth can be guaranteed) in the GEM PORT.
目前GPON协议对用户业务流是由以太网帧中的802.1p域(802.1P优先级字段)进行分类的,图8给出了含有802.1p域的以太网帧格式,如图9所示,802.1p优先级映射模块从内部以太网端口收到以太网类型业务类,根据以太网报文中的802.1P优先级字段进行以太网报文分类,具有不同802.1p优先级的以太网报文映射到不同的GEM PORT中,或者多个802.1p优先级的以太网报文映射到一个GEM PORT中。各个GEMPORT通过单独的T-CONT向OLT传输,或者多个GEM PORT的流量汇聚到一个T-CONT向OLT传输。At present, the GPON protocol classifies the user service flow by the 802.1p domain (802.1P priority field) in the Ethernet frame. Figure 8 shows the format of the Ethernet frame containing the 802.1p domain. As shown in Figure 9, the 802.1 The p priority mapping module receives the Ethernet type service class from the internal Ethernet port, and classifies the Ethernet packets according to the 802.1P priority field in the Ethernet packet, and maps the Ethernet packets with different 802.1p priorities to Different GEM PORTs, or multiple 802.1p priority Ethernet packets are mapped to one GEM PORT. Each GEMPORT is transmitted to the OLT through a separate T-CONT, or the traffic of multiple GEM PORTs is aggregated to one T-CONT for transmission to the OLT.
具体的802.1p优先级映射操作通过OLT调度ONT实现,OLT通过OMCI通道指示ONT的对802.1p优先级的映射操作,指示ONT处理不同802.1p优先级的以太网报文映射到哪个GEM PORT。OMCI是GPON标准中定义的一种配置传输通道,OMCI通道建立在OLT和ONT之间,ONT在向OLT注册时建立ONT与OLT之间的OMCI通道。OMCI是 主从式管理协议,OLT是主设备,ONT是从设备,OLT通过OMCI通道控制OLT下面连接的多个ONT设备。OMCI协议中将OLT管理ONT的各种数据抽象成协议独立管理信息库(MIB,protocol-independentManagement Information Base),管理信息库的基本信息单元是管理实体(ME,manage entity)。根据ONT的各种类型的配置,OMCI定义了OLT控制ONT的各个ME。ONT在OLT的控制下实现各个ME的配置管理功能。OMCI协议为支持用户业务流的802.1p映射,定义了下面的METhe specific 802.1p priority mapping operation is implemented through the OLT scheduling ONT. The OLT instructs the ONT to map the 802.1p priority through the OMCI channel, and instructs the ONT to process which GEM PORT the Ethernet packets with different 802.1p priorities are mapped to. OMCI is a configuration transmission channel defined in the GPON standard. The OMCI channel is established between the OLT and the ONT. When the ONT registers with the OLT, the OMCI channel between the ONT and the OLT is established. OMCI is a master-slave management protocol. OLT is the master device and ONT is the slave device. The OLT controls multiple ONT devices connected to the OLT through the OMCI channel. In the OMCI protocol, various data of OLT management ONT are abstracted into a protocol-independent management information base (MIB, protocol-independent Management Information Base), and the basic information unit of the management information base is a management entity (ME, manage entity). According to various types of ONT configurations, OMCI defines the OLT to control each ME of the ONT. The ONT realizes the configuration management function of each ME under the control of the OLT. The OMCI protocol defines the following MEs to support 802.1p mapping of user traffic
实体:entity:
MAC Bridge Port Configuration Data:MAC桥端口配置数据ME;MAC Bridge Port Configuration Data: MAC bridge port configuration data ME;
802.1p mapper service profile:802.1p映射策略表ME;802.1p mapper service profile: 802.1p mapping policy table ME;
GEM Interworking Termination Point:GEM交互终结点ME;GEM Interworking Termination Point: GEM Interworking Termination Point ME;
GEM Port Network CTP:GEM PORT网络连接终结点。GEM Port Network CTP: GEM PORT network connection endpoint.
其中MAC桥端口配置数据ME负责以太网端口各种配置数据的属性管理,MAC桥端口配置数据ME包含的关键属性字段如表1所示:Among them, the MAC bridge port configuration data ME is responsible for the attribute management of various configuration data of the Ethernet port, and the key attribute fields contained in the MAC bridge port configuration data ME are shown in Table 1:
表1Table 1
802.1p映射策略表ME负责以太网报文到GEM PORT的映射,802.1p映射策略表ME包含的关键属性字段如表2所示:The 802.1p mapping policy table ME is responsible for the mapping of Ethernet packets to GEM PORT. The key attribute fields contained in the 802.1p mapping policy table ME are shown in Table 2:
表2Table 2
GEM交互终结点ME,与GEM PORT网络连接终结点ME一一对应,负责连接802.1p映射策略表ME和GEM PORT网络连接终结点ME。GEM交互终结点ME属性字段如表3所示:The GEM interaction termination point ME corresponds to the GEM PORT network connection termination point ME one by one, and is responsible for connecting the 802.1p mapping policy table ME and the GEM PORT network connection termination point ME. The ME attribute fields of the GEM interaction endpoint are shown in Table 3:
表3table 3
GEM PORT网络连接终结点ME,负责GEM PORT相关的配置功能,GEM PORT网络连接终结点ME属性字段如表4所示:The GEM PORT network connection endpoint ME is responsible for the configuration functions related to GEM PORT. The GEM PORT network connection endpoint ME attribute fields are shown in Table 4:
表4Table 4
如图10的ME关系图所示,GEM交互终结点ME与GEM PORT网络连接终结点ME一一对应,负责连接802.1p映射策略表ME和GEMPORT网络连接终结点ME。GEM PORT网络连接终结点ME,负责GEMPORT相关的配置功能,而802.1p优先级是可选支持的功能,802.1p映射策略表ME对应8个GEM PORT网络连接终结点ME。As shown in the ME relationship diagram in Figure 10, the GEM interaction endpoint ME is in one-to-one correspondence with the GEM PORT network connection endpoint ME, and is responsible for connecting the 802.1p mapping policy table ME with the GEMPORT network connection endpoint ME. The GEM PORT network connection endpoint ME is responsible for GEMPORT-related configuration functions, and the 802.1p priority is an optional supported function. The 802.1p mapping policy table ME corresponds to 8 GEM PORT network connection endpoint MEs.
目前GPON技术标准中ONT单纯支持对以太网报文通过802.1p优先级映射到GEM PORT的功能,不支持通过VLAN ID、IP层的DSCP域、IP或者MAC源地址、IP或者MAC目的地址、协议类型、TCP/UDP端口号或者报文的其它特征映射到不同的GEM PORT。不能根据以上报文的特征映射到不同GEM PORT,就不能通过单独的T-CONT为具有以上特征的报文提供特别的QOS服务(GEM PORT属于T-CONT,OLT通过T-CONT调度QOS)。对于需要细分业务保证QOS的情形,现在的标准无法满足要求。Currently, in the GPON technical standard, ONT only supports the function of mapping Ethernet packets to GEM PORT through 802.1p priority, but does not support VLAN ID, DSCP domain of IP layer, IP or MAC source address, IP or MAC destination address, protocol The type, TCP/UDP port number or other characteristics of the packet are mapped to different GEM PORTs. If the characteristics of the above messages cannot be mapped to different GEM PORTs, special QOS services cannot be provided for messages with the above characteristics through a separate T-CONT (GEM PORT belongs to the T-CONT, and the OLT schedules QOS through the T-CONT). For the situation that needs subdivided services to ensure QOS, the current standard cannot meet the requirements.
发明内容Contents of the invention
本发明要解决的技术问题是提供一种无源光网络系统中将业务流映射到业务传输通道的方法,克服现有技术的业务流映射方法不支持通过VLAN ID、IP层的DSCP域、IP或者MAC源地址、IP或者MAC目的地址、协议类型、TCP/UDP端口号或者报文的其它特征将业务流映射到不同的业务传输通道中,因此不能满足细分业务QOS要求的缺点。The technical problem to be solved by the present invention is to provide a method for mapping service flows to service transmission channels in a passive optical network system, which overcomes that the service flow mapping method in the prior art does not support the DSCP domain through VLAN ID, IP layer, IP Or the MAC source address, IP or MAC destination address, protocol type, TCP/UDP port number or other characteristics of the message map the service flow to different service transmission channels, so it cannot meet the shortcomings of the QOS requirements for subdivided services.
本发明实施例提供一种将业务流映射到业务传输通道的方法,包括:在光网络终端中预先保存业务流的报文特征,所述报文特征包括VLAN ID;光网络终端在接收到业务流后,将所述接收到的业务流的报文特征与所述预先保存的报文特征进行比较,若两者匹配,将所述业务流映射到无源光网络封装模式端口GEM PORT。An embodiment of the present invention provides a method for mapping a service flow to a service transmission channel, comprising: pre-saving the message characteristics of the service flow in an optical network terminal, the message characteristics including a VLAN ID; the optical network terminal receiving the service After streaming, compare the message characteristics of the received service flow with the pre-saved message characteristics, and if the two match, map the service flow to the passive optical network encapsulation mode port GEM PORT.
相应地,本发明实施例提供一种光网络终端,包括光网络协议处理模块、业务处理模块,还包括设置于光网络协议处理模块内或者独立设置的通用业务流映射模块,其特征在于,所述通用业务流映射模块,用于将接收到的业务流的报文特征与预先保存的报文特征进行比较,若两者匹配,将所述业务流映射到无源光网络封装模式端口,所述报文特征包括VLAN ID。Correspondingly, an embodiment of the present invention provides an optical network terminal, including an optical network protocol processing module, a service processing module, and a general service flow mapping module disposed in the optical network protocol processing module or independently, wherein the The general service flow mapping module is used to compare the message characteristics of the received service flow with the pre-saved message characteristics, and if the two match, the service flow is mapped to the passive optical network encapsulation mode port, so The above packet characteristics include VLAN ID.
本发明通过新的将用户业务流映射到GEM PORT的实现方法,来支持根据VLAN ID特征将业务流映射到不同的GEM PORT,保证了细分业务QOS的要求。The present invention supports the mapping of service flows to different GEM PORTs according to VLAN ID characteristics through a new implementation method of mapping user service flows to GEM PORTs, thereby ensuring the requirements for subdivided service QOS.
附图说明Description of drawings
图1是现有技术PON系统示意图;FIG. 1 is a schematic diagram of a PON system in the prior art;
图2是现有技术PON下行数据传输示意图;FIG. 2 is a schematic diagram of PON downlink data transmission in the prior art;
图3是现有技术PON上行数据传输示意图;FIG. 3 is a schematic diagram of PON uplink data transmission in the prior art;
图4是现有技术GPON协议栈示意图;Fig. 4 is a schematic diagram of the prior art GPON protocol stack;
图5是现有技术GEM复用业务流方式示意图;FIG. 5 is a schematic diagram of a GEM multiplexing service flow mode in the prior art;
图6是现有技术ONT功能模块示意图;Fig. 6 is a schematic diagram of a prior art ONT functional module;
图7是现有技术支持以太网接入的ONT功能模块示意图;Fig. 7 is a schematic diagram of an ONT functional module supporting Ethernet access in the prior art;
图8是现有技术含有802.1p域的以太网帧格式;Fig. 8 is the Ethernet frame format that contains 802.1p field in the prior art;
图9是现有技术ONT通过802.1p域实现用户业务流分类示意图;Fig. 9 is a schematic diagram of prior art ONT realizing user traffic classification through 802.1p domain;
图10是现有技术ME关系图;Fig. 10 is a prior art ME relationship diagram;
图11是本发明支持通用业务流映射的ONT功能模块示意图;Fig. 11 is a schematic diagram of an ONT functional module supporting general service flow mapping in the present invention;
图12a是本发明支持映射方案一(直接将该业务流映射到指定的业务传输通道,可选同时重标记业务流的优先级标记)通用业务流映射ME关系图;Fig. 12a is a general service flow mapping ME relationship diagram of the present invention supporting mapping scheme 1 (directly mapping the service flow to a specified service transmission channel, and optionally remarking the priority mark of the service flow at the same time);
图12b是本发明支持映射方案二(重标记业务流的优先级标记,根据 报文优先级将业务流映射到指定的业务传输通道)通用业务流映射ME关系图;Fig. 12b is that the present invention supports mapping scheme two (re-labeling the priority mark of service flow, according to message priority the service flow is mapped to the specified service transmission channel) general service flow mapping ME relationship diagram;
图13是本发明通用业务流映射的配置流程图;Fig. 13 is a configuration flowchart of the general service flow mapping of the present invention;
图14是本发明取消通用业务流映射配置的流程图;Fig. 14 is a flow chart of canceling the general service flow mapping configuration in the present invention;
图15是本发明ONT支持通用业务流映射的报文处理流程图。Fig. 15 is a message processing flow chart of ONT supporting general service flow mapping of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步详细说明:Below in conjunction with accompanying drawing and embodiment the present invention is described in further detail:
报文特征是报文数据帧中某一个特征字段的值,例如对于IP地址10.11.1.1,该报文特征的值为4个字节(00001010,00001011,00000001,00000001)。报文特征偏移字节数是报文特征字段距离报文(数据帧)头的偏移字节数,例如源IP地址字段距离以太网报文头的偏移字节数为26。The message feature is the value of a certain feature field in the message data frame. For example, for the IP address 10.11.1.1, the value of the message feature is 4 bytes (00001010, 00001011, 00000001, 00000001). The packet feature offset byte count is the offset byte count between the packet feature field and the packet (data frame) header. For example, the offset byte count between the source IP address field and the Ethernet packet header is 26.
本发明为了克服现有技术不能支持根据不同业务的报文特征对业务流进行映射的缺点,首先确定不同业务的报文特征和报文特征偏移字节数,并在光网络终端中予以保存,例如我们可以确定如下一组报文特征:In order to overcome the disadvantage that the existing technology cannot support the mapping of service flows according to the message characteristics of different services, the present invention first determines the message characteristics of different services and the number of offset bytes of the message characteristics, and saves them in the optical network terminal , for example, we can determine the following set of message characteristics:
1、以太网源地址及以太网源地址段;1. Ethernet source address and Ethernet source address segment;
2、以太网目的地址及以太网目的地址段;2. Ethernet destination address and Ethernet destination address segment;
3、VLAN ID;3. VLAN ID;
4、802.1p优先级;4. 802.1p priority;
5、IP源地址及源IP地址段;5. IP source address and source IP address segment;
6、目的IP地址及目的IP地址段;6. Destination IP address and destination IP address segment;
7、IP DSCP域;7. IP DSCP domain;
8、IP协议类型;8. IP protocol type;
9、TCP/UDP端口号;9. TCP/UDP port number;
在实际应用中我们可以不断扩充报文特征组,使之包括通用的报文 特征表示方法中的报文特征。In practical applications, we can continuously expand the message feature group to include the message features in the general message feature representation method.
光网络终端在接收到业务流后,逐一根据报文特征偏移字节数确定业务流数据帧中,具有与报文特征相同字节数的部分字节,并将其与报文特征进行比较,若两者相符,就停止比较操作,后面的动作有两种方案,映射方案一:直接将该业务流映射到指定的业务传输通道中,可选同时重新标记业务流的优先级标记;映射方案二:重新标记业务流的优先级标记,根据重新标记的报文优先级将业务流映射到指定的业务传输通道中。业务传输通道可以是GEM方式的GEM PORT,或者ATM封装方式的PVP/PVC。After receiving the service flow, the optical network terminal determines the part of bytes in the service flow data frame with the same number of bytes as the message characteristic in the service flow data frame one by one according to the packet characteristic offset byte number, and compares it with the packet characteristic , if the two match, stop the comparison operation. There are two options for the following actions. Mapping option 1: directly map the service flow to the specified service transmission channel, and optionally remark the priority mark of the service flow at the same time; mapping Solution 2: Re-mark the priority mark of the service flow, and map the service flow to the designated service transmission channel according to the re-marked packet priority. The service transmission channel can be GEM PORT in GEM mode, or PVP/PVC in ATM encapsulation mode.
报文特征的长度是没有限制的,但在实际应用中,为了便于硬件处理,报文特征的长度最好是2的整数次幂,例如4、8、16字节等等。The length of the message feature is not limited, but in practical applications, in order to facilitate hardware processing, the length of the message feature is preferably an integer power of 2, such as 4, 8, 16 bytes and so on.
如果报文特征在报文中是连续的字节,前面的方法可以满足硬件处理的要求,但对于报文特征在报文中不是连续的字节,而是两段相互独立的字节段,例如取出源IP地址和TCP端口号相同特征的报文,前面的方法无法实现;对于报文特征在报文中不是连续字节的情形,本发明通过报文特征的掩码来对报文中夹在报文特征之间的非报文特征字节进行过滤,报文特征掩码的表示形式是报文特征字段中真正需要的特征比特位为1,中间不需要的特征比特位为0,这种表示方法称为1匹配表示方式(或者采用0匹配表示形式:真正需要的特征比特位为0,中间不需要的特征比特位为1,后面的描述都是采用1匹配表示方式),真正需要的报文特征是报文特征字段与报文特征的掩码按照位与操作得到的操作结果;这样通过报文特征、报文特征的掩码、报文特征偏移字节数三者的联合,就可以方便、灵活、快速地确定报文中任意的报文特征,包括前面提到的9种报文特征以及其它的报文特征。If the message features are continuous bytes in the message, the previous method can meet the requirements of hardware processing, but the message features are not continuous bytes in the message, but two mutually independent byte segments, For example, take out the message of source IP address and TCP port number identical feature, preceding method can't realize; For the situation that message feature is not continuous byte in message, the present invention carries out the mask in message by the mask of message feature. Filter the non-message feature bytes sandwiched between the message features. The representation of the message feature mask is that the feature bits that are really needed in the message feature field are 1, and the feature bits that are not needed in the middle are 0. This representation method is called 1 matching representation (or 0 matching representation: the feature bit that is really needed is 0, and the feature bit that is not needed in the middle is 1, and the following descriptions all
对于不同的报文特征本发明为其设计并在光网络终端中保存相应的掩码,例如,如果我们打算将源IP地址为10.11.1.0~10.11.1.255一个 网段的报文识别出来,那么该报文特征有4个字节,其中10.11.1.1对应的值是(00001010,00001011,00000001,00000001),如果我们设计掩码为(11111111,11111111,11111111,00000000),然后将掩码和报文特征进行按位与操作,获得的操作结果就表示10.11.1.0~10.11.1.255的网段特征。For different message features, the present invention designs and stores corresponding masks in the optical network terminal, for example, if we intend to identify a message whose source IP address is a network segment of 10.11.1.0~10.11.1.255, then The message feature has 4 bytes, and the value corresponding to 10.11.1.1 is (00001010, 00001011, 00000001, 00000001), if we design the mask as (11111111, 11111111, 11111111, 00000000), then the mask and the report Carry out a bitwise AND operation on the file characteristics, and the obtained operation result represents the characteristics of the network segment from 10.11.1.0 to 10.11.1.255.
光网络终端在接收到业务流后,逐一将掩码和报文特征进行按位与操作,得到第一操作结果,将掩码和根据报文特征偏移字节数确定的业务流数据帧中,具有与报文特征相同字节数的部分字节进行按位与操作,得到第二操作结果,第一操作结果和第二操作结果进行比较,若两者相符,就停止比较操作,后面的动作有两种方案,映射方案一:直接将该业务流映射到指定的业务传输通道中,可选同时重新标记业务流的优先级标记;映射方案二:重新标记业务流的优先级标记,根据重新标记的报文优先级将业务流映射到指定的业务传输通道中。该方法同样适用于报文特征在报文中是连续的字节的情况。After receiving the service flow, the optical network terminal performs a bitwise AND operation on the mask and message characteristics one by one to obtain the first operation result, and puts the mask and the service flow data frame determined according to the number of offset bytes of the message characteristic into , perform bitwise AND operation on some bytes with the same number of bytes as the characteristics of the message, to obtain the second operation result, compare the first operation result with the second operation result, if the two match, stop the comparison operation, and the following There are two options for the action. Mapping option 1: directly map the service flow to the specified service transmission channel, and optionally remark the priority mark of the service flow at the same time; mapping option 2: remark the priority mark of the service flow, according to The remarked packet priority maps the service flow to the specified service transmission channel. This method is also applicable to the case where the packet features are consecutive bytes in the packet.
如图11所示,为了将具有不同报文特征的用户业务报文映射到指定的业务传输通道中,本发明为ONT设计了通用业务流映射模块,通用业务流映射模块与业务处理模块相连,并将通用业务流映射模块用于根据保存的不同业务的报文特征及相应的报文特征偏移字节数,在接收到业务流后,逐一根据报文特征偏移字节数确定业务流数据帧中,具有与报文特征相同字节数的部分字节,并将其与报文特征进行比较,若两者相符,就停止比较操作,后面的动作有两种方案,映射方案一:直接将该业务流映射到指定的业务传输通道中,可选同时重新标记业务流的优先级标记;映射方案二:重新标记业务流的优先级标记,根据重新标记的报文优先级将业务流映射到指定的业务传输通道中。As shown in Figure 11, in order to map user service messages with different message characteristics into specified service transmission channels, the present invention designs a general service flow mapping module for the ONT, and the general service flow mapping module is connected with the service processing module. And the general service flow mapping module is used to offset the number of bytes according to the stored message characteristics of different services and the corresponding message characteristics. After receiving the service flow, determine the service flow one by one according to the number of offset bytes of the message characteristics In the data frame, some bytes with the same number of bytes as the characteristics of the message are compared with the characteristics of the message. If the two match, the comparison operation is stopped. There are two options for subsequent actions. Mapping option 1: Directly map the service flow to the specified service transmission channel, and optionally remark the priority mark of the service flow at the same time; Mapped to the specified service transmission channel.
通用业务流映射模块的进一步优化是用于根据保存的不同业务的报文特征的掩码,在接收到业务流后,逐一将所述掩码和报文特征进行 按位与操作,得到第一操作结果,将所述掩码和根据报文特征偏移字节数确定的业务流数据帧中,具有与报文特征相同字节数的部分字节进行按位与操作,得到第二操作结果,第一操作结果和第二操作结果进行比较,若两者相符,就停止比较操作,后面的动作有两种方案,映射方案一:直接将该业务流映射到指定的业务传输通道中,可选同时重新标记业务流的优先级标记;映射方案二:重新标记业务流的优先级标记,根据重新标记的报文优先级将业务流映射到指定的业务传输通道中。The further optimization of the general service flow mapping module is to perform bitwise AND operation on the mask and message characteristics one by one after receiving the service flow according to the mask of the saved message characteristics of different services to obtain the first As a result of the operation, perform a bitwise AND operation on the mask and some bytes in the service flow data frame determined according to the number of offset bytes of the message feature, which have the same number of bytes as the message feature, to obtain the second operation result , the result of the first operation is compared with the result of the second operation, and if the two match, the comparison operation is stopped. There are two options for subsequent actions. Mapping option 1: directly map the service flow to the specified service transmission channel, which can be Choose to remark the priority mark of the service flow at the same time; mapping scheme 2: remark the priority mark of the service flow, and map the service flow to the designated service transmission channel according to the remarked packet priority.
为了将识别出的业务流映射到GEM PORT中,通用业务流映射模块从与MAC桥连接的内部以太网端口接收以太网报文,根据系统配置好的业务流识别策略,通过报文特征将以太网报文进行分类,并将具有不同报文特征的以太网报文直接映射到不同的GEM PORT中,可选同时重新标记业务流的优先级标记,或者先将具有不同报文特征的以太网报文重新标记不同的优先级,根据重新标记的报文优先级标记将报文映射到不同的GEM PORT中。不同的GEM PORT汇聚到一个T-CONT中或者通过单独的T-CONT承载,在OLT对T-CONT的调度下,ONT基于T-CONT向OLT发送数据。In order to map the identified service flow to the GEM PORT, the general service flow mapping module receives Ethernet packets from the internal Ethernet port connected to the MAC bridge, and according to the service flow identification strategy configured by the system, the Ethernet Network packets are classified, and Ethernet packets with different packet characteristics are directly mapped to different GEM PORTs, and the priority marks of service flows can be remarked at the same time, or Ethernet packets with different packet characteristics are first The packets are remarked with different priorities, and the packets are mapped to different GEM PORTs according to the remarked packet priority marks. Different GEM PORTs are aggregated into one T-CONT or carried by a separate T-CONT. Under the scheduling of the T-CONT by the OLT, the ONT sends data to the OLT based on the T-CONT.
OLT负责下发业务流识别策略给ONT的通用业务流映射模块,具体是OLT通过OMCI消息配置ONT的通用业务流映射模块实现。The OLT is responsible for delivering the service flow identification policy to the general service flow mapping module of the ONT. Specifically, the OLT configures the general service flow mapping module of the ONT through the OMCI message.
将不同特征的用户业务报文映射到GEM PORT或PVP/PVC,采用GPON标准中802.1p映射策略表ME的管理方式是不可行的,802.1p映射策略表ME根据802.1p的8个不同的值(0~7),为每个802.1p的值定义了对应的GEM交互终结点ME指针。当以IP地址作为报文特征时,IP地址的数量是2的32次方个,当以VLAN ID作为报文特征时,VLANID的数量是4096个,如果为每一个报文的特征指定对应的GEM交互终结点ME指针,管理的表项会很复杂。因此本发明定义新的通用业务流映射ME来维护报文特征、报文特征的掩码和报文特征偏移字节数, 支持本发明的通用报文特征表示方法。通用业务流映射ME包含的属性字段如表5所示:It is not feasible to use the management method of 802.1p mapping policy table ME in the GPON standard to map user service packets with different characteristics to GEM PORT or PVP/PVC. The 802.1p mapping policy table ME is based on 8 different values of 802.1p (0~7), defines the corresponding GEM interaction termination point ME pointer for each 802.1p value. When the IP address is used as the feature of the message, the number of IP addresses is 2 to the 32nd power. When the VLAN ID is used as the feature of the message, the number of VLAN IDs is 4096. If the corresponding feature of each message is specified GEM interaction endpoint ME pointer, and the managed entries will be very complicated. Therefore, the present invention defines a new general-purpose service flow mapping ME to maintain the message feature, the mask of the message feature and the number of offset bytes of the message feature, and supports the general message feature representation method of the present invention. The attribute fields contained in the general service flow mapping ME are shown in Table 5:
表5table 5
通用业务流映射ME中的通用报文特征表示项数目根据OLT和ONT的系统规格确定,通用报文特征表示项N(N为单数)包含三个字段,分别用于存储报文特征、掩码、报文特征偏移字节数,三个字段的长度可以灵活定义。The number of general message feature representation items in the general service flow mapping ME is determined according to the system specifications of the OLT and ONT. The general message feature representation item N (N is an odd number) contains three fields, which are used to store the message feature and mask respectively. , Packet characteristic offset byte number, the length of the three fields can be flexibly defined.
GEM PORT-ID存储于相应的GEM PORT网络连接终结点ME的相应属性字段中,GEM交互终结点ME存储用于定位GEM PORT网络连接终结点ME的指针。The GEM PORT-ID is stored in the corresponding attribute field of the corresponding GEM PORT network connection termination point ME, and the GEM interaction termination point ME stores a pointer for locating the GEM PORT network connection termination point ME.
MAC桥端口配置数据ME负责以太网端口各种配置数据的属性管 理,如果采用映射方案一,原来的MAC桥端口配置数据ME也要进行修改,新的MAC桥端口配置数据ME包含的属性字段如表6所示:The MAC bridge port configuration data ME is responsible for the attribute management of various configuration data of the Ethernet port. If the
表6Table 6
如果采用映射方案一,支持通用业务流映射ME的ME关系图如图12a所示,其中的General Traffic Mapper Service Profile就是新增加的通用业务流映射ME。If
如果采用映射方案二,支持通用业务流映射ME的ME关系图如图 12b所示,其中的General Traffic Mapper Service Profile就是新增加的通用业务流映射ME。If the
通用业务流映射ME的配置流程如图13所示(以同一个OMCI通道消息配置一项属性为例),说明如下:The configuration process of the general service flow mapping ME is shown in Figure 13 (taking the configuration of an attribute in the same OMCI channel message as an example), and the description is as follows:
1、配置终端通知OLT配置OLT连接的ONT通用业务流映射ME属性,配置参数为ONUID、报文特征、报文特征掩码、报文特征偏移字节数、GEM PORT-ID;配置参数指示ONT符合特征的报文映射到GEMPORT-ID,实际实现过程中配置终端下发给OLT的参数中的报文特征、报文特征掩码、报文特征偏移字节数三项可以是配置用户易于理解的方式例如VLAN ID,IP地址等,在OLT上将VLAN ID,IP地址拆重新拆分成报文特征,报文特征掩码,报文特征偏移字节数三项下发给ONT;1. Configure the terminal to notify the OLT to configure the ONT general service flow mapping ME attribute connected to the OLT. The configuration parameters are ONUID, packet characteristics, packet characteristic mask, packet characteristic offset byte number, GEM PORT-ID; configuration parameter indication Packets that meet the characteristics of the ONT are mapped to GEMPORT-ID. In the actual implementation process, the three items of the packet characteristics, packet characteristic mask, and packet characteristic offset bytes in the parameters sent by the terminal to the OLT can be configured by the user. Easy-to-understand methods such as VLAN ID, IP address, etc., on the OLT, split the VLAN ID and IP address into packet characteristics, packet characteristic mask, and packet characteristic offset bytes and send them to the ONT ;
2、OLT将配置终端参数中携带的GEM PORT数据转换为与GEMPORT一一对应的GEM交互终结点ME指针,OLT通过OMCI通道发送请求配置ONT通用业务流映射ME属性的消息,配置参数为ONUID、报文特征、报文特征掩码、报文特征偏移字节数、GEM交互终结点ME指针、重标记报文优先级标记;2. The OLT converts the GEM PORT data carried in the configuration terminal parameters into the GEM interaction endpoint ME pointer corresponding to the GEMPORT one-to-one. The OLT sends a message requesting configuration of the ONT general service flow mapping ME attribute through the OMCI channel. The configuration parameters are ONUID, Message feature, message feature mask, message feature offset byte number, GEM interaction endpoint ME pointer, remark message priority mark;
3、ONT配置完成后返回成功或者失败的响应消息。3. After the ONT configuration is completed, a success or failure response message is returned.
取消通用业务流映射ME属性配置的流程如图14所示(以同一个OMCI通道消息取消一项属性配置为例),说明如下:The process of canceling the general service flow mapping ME attribute configuration is shown in Figure 14 (taking the same OMCI channel message as an example to cancel an attribute configuration), and the description is as follows:
1、配置终端通知OLT取消OLT连接的ONT的通用业务流映射ME的属性配置,参数为ONUID、报文特征、报文特征掩码、报文特征偏移字节数,实际实现过程中配置终端下发给OLT的参数中的报文特征字段、报文特征字段掩码、报文特征字段偏移字节数三项可以是配置用户易于理解的方式例如VLAN ID,IP地址等,在OLT上将VLAN ID,IP地址拆重新拆分成报文特征、报文特征掩码、报文特征偏移字节数三项下发给ONT;1. Configure the terminal to notify the OLT to cancel the attribute configuration of the general service flow mapping ME of the ONT connected to the OLT. The parameters are ONUID, message feature, message feature mask, and message feature offset byte number. The terminal is configured in the actual implementation process Among the parameters sent to the OLT, the three items of message feature field, message feature field mask, and message feature field offset byte number can be configured in a way that is easy for users to understand, such as VLAN ID, IP address, etc., on the OLT Split the VLAN ID and IP address into three items: message feature, message feature mask, and message feature offset byte number and send them to ONT;
2、OLT通过OMCI通道发送请求取消ONT通用业务流映射ME属性配置的消息,参数为ONUID、报文特征、报文特征掩码、报文特征偏移字节数、0;2. The OLT sends a message through the OMCI channel requesting to cancel the ME attribute configuration of the ONT general service flow mapping. The parameters are ONUID, message feature, message feature mask, message feature offset byte number, and 0;
3、ONT配置完成后返回成功或者失败的响应消息。3. After the ONT configuration is completed, a success or failure response message is returned.
映射方案一ONT上的报文处理流程如图15所示,其中的虚线部分为新增加的处理流程,ONT使用报文特征、报文特征掩码、报文特征偏移字节数三项来匹配以太网报文的部分字节。
光网络终端的报文处理包括步骤:The message processing of the optical network terminal includes steps:
D1、光网络终端从介质访问控制桥内部以太网端口接收以太网报文;D1. The optical network terminal receives the Ethernet message from the internal Ethernet port of the media access control bridge;
D2、光网络终端判断介质访问控制桥端口配置数据管理实体是否连接到通用业务流映射管理实体,如是执行步骤D4,否则执行步骤D3;D2. The optical network terminal judges whether the media access control bridge port configuration data management entity is connected to the general service flow mapping management entity, if so, execute step D4, otherwise execute step D3;
D3、所有的报文映射到固定的无源光网络封装方式端口中,结束操作;D3. All messages are mapped to the fixed passive optical network encapsulation port, and the operation is ended;
D4、逐项查找通用业务流映射管理实体存储报文特征及其掩码和报文特征偏移字节数的属性字段,将所述掩码和报文特征进行按位与操作,得到第一操作结果,将所述掩码和根据报文特征偏移字节数确定的业务流数据帧中,具有与报文特征相同字节数的部分字节进行按位与操作,得到第二操作结果,第一操作结果和第二操作结果进行比较,如果两者匹配,执行步骤D5,否否则执行步骤D6;D4. Searching item by item for the general service flow mapping management entity to store the attribute field of the message feature and its mask and message feature offset byte number, and performing a bitwise AND operation on the mask and the message feature to obtain the first As a result of the operation, perform a bitwise AND operation on the mask and some bytes in the service flow data frame determined according to the number of offset bytes of the message feature, which have the same number of bytes as the message feature, to obtain the second operation result , compare the first operation result with the second operation result, if they match, go to step D5, otherwise go to step D6;
D5、根据映射规则将报文映射到指定的无源光网络封装方式端口中,结束操作;D5. Map the message to the specified PON encapsulation port according to the mapping rules, and end the operation;
D6、进行出错告警处理,结束操作。D6. Perform error alarm processing and end the operation.
下面给出ONT使用报文特征、报文特征偏移字节数两项来匹配以太网报文部分字节的报文处理流程:The following is the message processing flow of the ONT using the message feature and the number of bytes of the message feature offset to match some bytes of the Ethernet message:
1、ONT从MAC桥内部以太网端口接收到以太网报文;1. The ONT receives the Ethernet message from the internal Ethernet port of the MAC bridge;
2、ONT判断MAC桥端口配置数据ME是否连接到通用业务流映射ME,如果MAC桥端口配置数据ME连接到通用业务流映射ME,表示ONT支持通用业务流映射操作,转第4步处理,否则转第3步处理;2. The ONT judges whether the MAC bridge port configuration data ME is connected to the general service flow mapping ME. If the MAC bridge port configuration data ME is connected to the general service flow mapping ME, it means that the ONT supports the general service flow mapping operation and proceeds to step 4, otherwise Go to step 3;
3、所有的报文映射到固定的GEM PORT中,结束;3. All messages are mapped to the fixed GEM PORT, end;
4、逐项查找通用业务流映射ME属性字段,如果以太网报文中由报文特征偏移字节数确定的部分字节与报文特征匹配,转第5步处理,否则转第6步处理;4. Search the general service flow mapping ME attribute field item by item. If some bytes in the Ethernet message determined by the number of message feature offset bytes match the message feature, go to step 5 for processing, otherwise go to step 6 deal with;
5、根据映射规则将报文映射到不同的GEM PORT中,结束;5. Map the message to different GEM PORTs according to the mapping rules, end;
6、进行出错告警处理,结束。6. Perform error alarm processing and end.
映射方案二ONT上的报文处理流程与映射方案一ONT上的报文处理流程类似,不再赘述。The packet processing flow on the ONT of
虽然通过参照本发明的优选实施例,已经对本发明进行了图示和描述,但本领域的普通技术人员应该明白,在形式上和细节上对本发明所作的各种各样的改变,都不偏离所附权利要求书限定的本发明的范围。Although the present invention has been illustrated and described with reference to preferred embodiments thereof, those skilled in the art will understand that various changes in form and details of the present invention may be made without departing from the present invention. The scope of the invention is defined by the appended claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101956154A CN101257487B (en) | 2006-04-25 | 2006-04-25 | Method for mapping service stream onto service transmission channel as well as optical network terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101956154A CN101257487B (en) | 2006-04-25 | 2006-04-25 | Method for mapping service stream onto service transmission channel as well as optical network terminal |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006100775693A Division CN101005445B (en) | 2006-01-18 | 2006-04-25 | Method for mapping service flow to service transmission path and optical network terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101257487A CN101257487A (en) | 2008-09-03 |
CN101257487B true CN101257487B (en) | 2011-07-20 |
Family
ID=39891960
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101956154A Active CN101257487B (en) | 2006-04-25 | 2006-04-25 | Method for mapping service stream onto service transmission channel as well as optical network terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101257487B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102811159B (en) * | 2011-06-03 | 2017-07-18 | 中兴通讯股份有限公司 | The dispatching method and device of a kind of uplink service |
CN102546118B (en) * | 2012-03-12 | 2015-08-12 | 国家广播电影电视总局广播电视规划院 | Business in a kind of C-DOCSIS system forwards and priority mapping method |
CN103780440A (en) * | 2014-02-25 | 2014-05-07 | 上海斐讯数据通信技术有限公司 | Entity relationship model transformation method for managing ONU |
CN105099941B (en) * | 2015-06-19 | 2018-09-04 | 新华三技术有限公司 | A kind of message processing method and device |
CN105847338A (en) * | 2016-03-18 | 2016-08-10 | 广州市苏瑞计算机科技有限公司 | Service data transmission method and system |
CN107613414B (en) * | 2016-07-12 | 2020-08-04 | 中国电信股份有限公司 | Data transmission device and method for multiple wavelength channels of passive optical network |
CN110414928B (en) * | 2019-07-09 | 2022-07-29 | 京信网络系统股份有限公司 | Service flow classification processing method and device and communication equipment |
CN113329276B (en) | 2020-02-28 | 2022-10-28 | 华为技术有限公司 | Data transmission method, device, gateway, chip and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1428976A (en) * | 2001-12-27 | 2003-07-09 | 阿尔卡塔尔加拿大公司 | User priority mapping in bridge VLAN |
CN1540936A (en) * | 2003-04-26 | 2004-10-27 | 华为技术有限公司 | Message forwarding priority control method based on virtual local area network |
CN1581789A (en) * | 2003-08-06 | 2005-02-16 | 中兴通讯股份有限公司 | Exchange system basedon business grade exchange and its exchange method |
-
2006
- 2006-04-25 CN CN2007101956154A patent/CN101257487B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1428976A (en) * | 2001-12-27 | 2003-07-09 | 阿尔卡塔尔加拿大公司 | User priority mapping in bridge VLAN |
CN1540936A (en) * | 2003-04-26 | 2004-10-27 | 华为技术有限公司 | Message forwarding priority control method based on virtual local area network |
CN1581789A (en) * | 2003-08-06 | 2005-02-16 | 中兴通讯股份有限公司 | Exchange system basedon business grade exchange and its exchange method |
Non-Patent Citations (2)
Title |
---|
EP1191751B1B1 2005.04.20 |
John D.Angelopoulos etc.Efficient Transport of Packets with QoS in an FSAN-Aligned GPON.IEEE Communication Magazine.2004,93-98. * |
Also Published As
Publication number | Publication date |
---|---|
CN101257487A (en) | 2008-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101005445B (en) | Method for mapping service flow to service transmission path and optical network terminal | |
EP1978654B1 (en) | A method for mapping the service stream to the service transmission channel, system and optical network terminator thereof | |
WO2019237521A1 (en) | Access network olt slicing method and system employing onu granularity | |
CN101317377B (en) | Device, method and system for configuring Ethernet service in passive optical network | |
EP1499155B1 (en) | Multicast GPON transmission and GEM frame processing method | |
CN101924649B (en) | Remote management method and system for optical network unit (ONU) in passive optical network (PON) system | |
KR101056091B1 (en) | Method and apparatus for packet forwarding in EPON (EtOernet | |
JP3742406B2 (en) | Ethernet (registered trademark) passive optical network system | |
CN101060523B (en) | Optical network terminal, its port speed limit attribute configuration method and message processing method | |
CN101257487B (en) | Method for mapping service stream onto service transmission channel as well as optical network terminal | |
CN101867523B (en) | PON system middle width strip business collocation method and device | |
EP2019519B1 (en) | Method for addressing ethernet streams with a structured GPON GEM Port ID | |
CN101729371B (en) | Method for service transmission and device for service transmission | |
US20110194854A1 (en) | Upstream efficiency improvement method for passive optical networks | |
US20090208204A1 (en) | Passive optical network system | |
JP2004320745A (en) | GTC frame structure for transmitting ONT management control information in GPON and transmission method thereof | |
WO2007076671A1 (en) | A multicast flow control method,device and system in passive optical network | |
CN101102157B (en) | Sending terminal and data sending method | |
CN101341789A (en) | Method for sending data packets with different priorities over a passive optical network | |
WO2007079665A1 (en) | Method and apparatus for supporting vlan stacking in optical network | |
KR100539952B1 (en) | Multicast Transmission Method in GEM mode and Frame Handling Method for it | |
KR100957046B1 (en) | Ethernet Frame Structure and Virtual Switching Method for Virtual Port Based Switching in GM Mode of Gigabit Passive Optical Subscriber Network | |
KR100786388B1 (en) | Apparatus and method for managing traffic using VID in EPON | |
CN101895796B (en) | Method and system for realizing multicasting in GPON network, and optical network unit | |
CN114727172A (en) | Service processing method, optical line terminal and optical network unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |