CN105227370B - A kind of method of the virtual LAN full configuration of optical network unit - Google Patents
A kind of method of the virtual LAN full configuration of optical network unit Download PDFInfo
- Publication number
- CN105227370B CN105227370B CN201510678901.0A CN201510678901A CN105227370B CN 105227370 B CN105227370 B CN 105227370B CN 201510678901 A CN201510678901 A CN 201510678901A CN 105227370 B CN105227370 B CN 105227370B
- Authority
- CN
- China
- Prior art keywords
- local area
- area network
- virtual local
- thread
- configuration data
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0067—Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明适用于网络领域,提供了一种光网络单元的虚拟局域网满配的方法,其包括如下步骤:通过OLT对ONU进行管理配置,下发大量的vlan配置数据,配置数据通过EPON协议栈到EPON线程,该EPON线程进行扩展OAM的解析处理,且包含vlan模式的配置;该EPON线程收到OAM报文进行解析,并判定是否为vlan配置数据;若为vlan配置数据,则存储该vlan配置数据;该EPON线程发送vlan处理消息到vlan消息队列;及该EPON线程回复正常OAM报文到该EPON协议栈,进而快速地响应的OLT的配置请求,避免回复超时。
The present invention is applicable to the network field, and provides a method for fully configuring a virtual local area network of an optical network unit, which includes the following steps: managing and configuring the ONU through the OLT, sending a large amount of vlan configuration data, and sending the configuration data to the ONU through the EPON protocol stack. EPON thread, the EPON thread performs extended OAM analysis processing, and includes the configuration of the vlan mode; the EPON thread receives the OAM message for analysis, and determines whether it is vlan configuration data; if it is vlan configuration data, then store the vlan configuration data; the EPON thread sends the vlan processing message to the vlan message queue; and the EPON thread replies to the normal OAM message to the EPON protocol stack, and then responds quickly to the configuration request of the OLT to avoid replying overtime.
Description
技术领域technical field
本发明属于网络领域,尤其涉及一种光网络单元(Optical Network Unit,ONU)的虚拟局域网(Virtual Local Area Network,vlan)满配的方法。The invention belongs to the network field, and in particular relates to a method for fully configuring a virtual local area network (Virtual Local Area Network, vlan) of an optical network unit (Optical Network Unit, ONU).
背景技术Background technique
在以太网无源光网络(Ethernet Passive Optical Network,EPON)系统中,通过局端光线路终端(Optical Line Terminal,OLT)来配置管理终端ONU。对已注册的ONU,管理人员会通过OLT来配置管理ONU,实现用户的业务需求。ONU的虚拟局域网模式配置是其不可缺少的配置之一,随着光纤到户的宽带接入的发展,三网融合的发展,多用户接入单元(Multiple Dwelling Unit,MDU)型设备已大量应用其中,迎合了多用户宽带接入的发展需求。In an Ethernet Passive Optical Network (EPON) system, a management terminal ONU is configured through an optical line terminal (Optical Line Terminal, OLT) at the central office. For the registered ONU, the management staff will configure and manage the ONU through the OLT to realize the user's business needs. The virtual local area network mode configuration of the ONU is one of its indispensable configurations. With the development of fiber-to-the-home broadband access and the development of triple network integration, multiple user access unit (Multiple Dwelling Unit, MDU) devices have been widely used Among them, it caters to the development needs of multi-user broadband access.
当一个24口的EPON MDU型设备的vlan模式配置为满配时,OLT就会下发大量操作管理维护(Operation Administration and Maintenance,OAM)报文给ONU,ONU会收到报文后就会解析报文内容来处理以及做出应答给OLT。例如:ONU的24个口都配置为中继(trunk)模式,每个端口可以配置17个vlan(包括一个缺省vlan),24个端口就可以配置17×24=408个vlan。MDU型ONU软件采用ECOS实时操作系统,多线程编程,OAM的报文处理在线程EPON中。vlan的模式实现比较复杂,用户接口是基于端口的配置,驱动接口是基于vlan的,对内部交换芯片而言就是全局。从用户接口数据结构转化到驱动接口数据结构有较复杂的逻辑,特别是当已有大量vlan时,再添加一个vlan的配置,中央处理器(central processing unit,CPU)就会花费较长时间处理。若OLT下发配置数据过快,会等更长的时间ONU才去回复OLT,但是OLT已经超时,就会认为这个配置失败,就不会在OLT保存这个配置,当ONU重新上线时,OLT重新下发配置就不会下发此前的配置,从而导致ONU的配置恢复失败。When the vlan mode of a 24-port EPON MDU device is configured as full configuration, the OLT will send a large number of Operation Administration and Maintenance (OAM) messages to the ONU, and the ONU will analyze them after receiving the messages. message content to process and make a response to the OLT. For example: 24 ports of ONU are all configured as trunk mode, each port can be configured with 17 vlans (including a default vlan), and 24 ports can be configured with 17*24=408 vlans. MDU type ONU software adopts ECOS real-time operating system, multi-thread programming, OAM message processing in thread EPON. The implementation of vlan mode is relatively complicated. The user interface is based on port configuration, and the driver interface is based on vlan, which is the overall situation for the internal switching chip. The conversion from the user interface data structure to the driver interface data structure has more complex logic, especially when there are already a large number of vlans, adding another vlan configuration will take a long time for the central processing unit (CPU) to process . If the OLT sends the configuration data too quickly, it will wait for a longer time for the ONU to reply to the OLT. If the configuration is delivered, the previous configuration will not be delivered, resulting in failure to restore the configuration of the ONU.
发明内容Contents of the invention
本发明所要解决的技术问题在于提供一种光网络单元的虚拟局域网满配的方法,旨在确保OLT下发携带大量vlan数据的OAM报文及时得到回复,避免由于ONU的OAM回复超时导致OLT认为配置失败的问题出现。The technical problem to be solved by the present invention is to provide a method for fully configuring a virtual local area network of an optical network unit. The problem of configuration failure occurs.
本发明是这样实现的,一种光网络单元的虚拟局域网满配的方法,其包括如下步骤:通过OLT对ONU进行管理配置,下发大量的vlan配置数据,该vlan配置数据通过EPON协议栈到EPON线程,该EPON线程进行扩展OAM的解析处理,且包含vlan模式的配置;该EPON线程收到OAM报文进行解析,并判定是否为vlan配置数据;若为vlan配置数据,则存储该vlan配置数据;该EPON线程发送vlan处理消息到vlan消息队列;及该EPON线程回复正常OAM报文到该EPON协议栈。The present invention is realized in this way, a kind of virtual local area network full allocation method of optical network unit, it comprises the following steps: carry out management configuration to ONU by OLT, send a large amount of vlan configuration data, this vlan configuration data passes EPON protocol stack to EPON thread, the EPON thread performs extended OAM analysis processing, and includes the configuration of the vlan mode; the EPON thread receives the OAM message for analysis, and determines whether it is vlan configuration data; if it is vlan configuration data, then store the vlan configuration data; the EPON thread sends a vlan processing message to the vlan message queue; and the EPON thread replies a normal OAM message to the EPON protocol stack.
本发明与现有技术相比,有益效果在于:本发明的光网络单元的虚拟局域网满配的方法,能够确保OLT下发携带大量vlan数据的OAM报文及时得到回复,避免由于ONU的OAM回复超时导致OLT认为配置失败的问题出现。Compared with the prior art, the present invention has the beneficial effects that: the full configuration method of the virtual local area network of the optical network unit of the present invention can ensure that the OAM message carrying a large amount of vlan data issued by the OLT can be replied in time, and the OAM reply due to the ONU can be avoided. The timeout causes the OLT to think that the configuration has failed.
附图说明Description of drawings
图1是本发明实施例提供的光网络单元的虚拟局域网满配的方法的流程图。FIG. 1 is a flow chart of a method for full configuration of a virtual local area network of an optical network unit provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
如图1所示,本发明的实施例提供的光网络单元的虚拟局域网满配的方法,针对MDU ONU高效、快速的响应OLT下发的配置请求报文(也别是携带ONU vlan满配数据时),而且不影响ONU收核心线程EPON效率。该方法通过改变vlan处理流程。创建vlan模式配置的线程,添加消息队列机制,用于EPON线程通知vlan处理线程来完成vlan模式的配置。由于EPON线程是共享内存的,采用消息队列机制是EPON线程和vlan处理线程同步的最佳选择,此外嵌入式可配置操作系统(embedded Configurable operating system,ECOS系统)的线程调度策略应该设置为抢占式,优先级高的线程优先执行。设置vlan处理线程的优先级低于核心线程EPON。这样vlan的大部分处理流程就交给vlan处理线程来处理。从而EPON线程就可以及时回复OAM给OLT,避免由于配置回复超时导致OLT认为配置失败的问题出现。As shown in Figure 1, the method for the virtual local area network of the optical network unit provided by the embodiment of the present invention is fully configured, for the MDU ONU efficiently and quickly responds to the configuration request message sent by the OLT (also does not carry the ONU vlan fully configured data ), and it does not affect the EPON efficiency of the ONU receiving core thread. This method handles the flow by changing the vlan. Create a thread configured in vlan mode, and add a message queue mechanism for EPON threads to notify the vlan processing thread to complete the configuration of vlan mode. Since EPON threads share memory, using the message queue mechanism is the best choice for synchronization between EPON threads and VLAN processing threads. In addition, the thread scheduling policy of embedded configurable operating system (ECOS system) should be set to preemptive , threads with higher priority are executed first. Set the priority of the vlan processing thread to be lower than the core thread EPON. In this way, most of the processing flow of vlan is handed over to the vlan processing thread for processing. Thus, the EPON thread can reply the OAM to the OLT in time, avoiding the problem that the OLT considers the configuration to be a failure due to the timeout of the configuration reply.
该光网络单元的虚拟局域网满配的方法包括如下步骤:The method for fully configuring the virtual local area network of the optical network unit includes the following steps:
S1:通过OLT对ONU进行管理配置,下发大量的vlan配置数据,该vlan配置数据通过EPON协议栈到EPON线程,该EPON线程主要进行扩展OAM的解析处理,包含vlan模式的配置。S1: The ONU is managed and configured through the OLT, and a large amount of vlan configuration data is delivered. The vlan configuration data passes through the EPON protocol stack to the EPON thread. The EPON thread mainly performs the analysis and processing of the extended OAM, including the configuration of the vlan mode.
S2:该EPON线程收到OAM报文进行解析,并判定是否为vlan配置数据。S2: The EPON thread receives the OAM message, analyzes it, and determines whether it is vlan configuration data.
S3:若不为vlan配置数据,则结束。S3: If no data is configured for the vlan, then end.
S4:若为vlan配置数据,则存储该vlan配置数据。S4: If it is vlan configuration data, store the vlan configuration data.
S5:该EPON线程发送vlan处理消息到vlan消息队列。该vlan处理消息包含该vlan配置数据的存储地址,该vlan处理线程根据该存储地址读取vlan配置数据。S5: The EPON thread sends the vlan processing message to the vlan message queue. The vlan processing message includes the storage address of the vlan configuration data, and the vlan processing thread reads the vlan configuration data according to the storage address.
S6:该EPON线程回复正常OAM报文到该EPON协议栈,进而快速地响应的OLT的配置请求,避免回复超时。S6: The EPON thread replies a normal OAM message to the EPON protocol stack, and then quickly responds to the configuration request of the OLT, avoiding reply timeout.
S7:该vlan处理线程在运行状态轮询消息队列,判断是否有vlan配置数据要处理。S7: the vlan processing thread polls the message queue in the running state to determine whether there is vlan configuration data to be processed.
S8:若没有vlan配置数据要处理,则结束。S8: if there is no vlan configuration data to be processed, then end.
S9:若有vlan配置数据要处理,则该vlan处理线程读取vlan配置数据进行vlan软件表处理。S9: If there is vlan configuration data to be processed, the vlan processing thread reads the vlan configuration data to process the vlan software table.
S10:该vlan处理线程把该vlan软件表下发到硬件表,最终完成大量vlan的配置处理。S10: the vlan processing thread sends the vlan software table to the hardware table, and finally completes the configuration processing of a large number of vlans.
与现有技术相比较,本发明的光网络单元的虚拟局域网满配的方法,将修改MDU型vlan数据的处理流程,创建一个消息队列存放vlan配置数据,再创建一个vlan处理线程。vlan处理线程的优先级要低于核心线程EPON的优先级。这样以后,EPON线程及时解析出vlan配置数据,并存到vlan消息队列里,回复OAM报文给OLT。Vlan的配置在vlan处理线程里进行处理。这样既提高了核心,而且不浪费核心进程的资源,既保障了核心线程的稳定、高效,又确保OLT下发携带大量vlan数据的OAM报文及时得到回复,避免由于ONU的OAM回复超时导致OLT认为配置失败的问题。Compared with the prior art, the method for fully configuring the virtual local area network of the optical network unit of the present invention will modify the processing flow of the MDU type vlan data, create a message queue to store the vlan configuration data, and then create a vlan processing thread. The priority of the vlan processing thread is lower than that of the core thread EPON. After this, the EPON thread parses out the vlan configuration data in time, saves it in the vlan message queue, and replies the OAM message to the OLT. Vlan configuration is processed in the vlan processing thread. This not only improves the core, but also does not waste the resources of the core process. It not only ensures the stability and high efficiency of the core thread, but also ensures that the OAM message carrying a large amount of vlan data sent by the OLT is answered in time, and the OLT is prevented from being caused by the ONU reply timeout. Issues that consider configuration failures.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510678901.0A CN105227370B (en) | 2015-10-19 | 2015-10-19 | A kind of method of the virtual LAN full configuration of optical network unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510678901.0A CN105227370B (en) | 2015-10-19 | 2015-10-19 | A kind of method of the virtual LAN full configuration of optical network unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105227370A CN105227370A (en) | 2016-01-06 |
CN105227370B true CN105227370B (en) | 2018-05-18 |
Family
ID=54996081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510678901.0A Active CN105227370B (en) | 2015-10-19 | 2015-10-19 | A kind of method of the virtual LAN full configuration of optical network unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105227370B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209416B (en) * | 2016-06-23 | 2019-05-24 | 武汉丰天鼎业信息网络有限公司 | A kind of automatic discovery operational administrative ADOA system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043352A (en) * | 2006-03-22 | 2007-09-26 | 华为技术有限公司 | Method for configuring Native VLAN for GPON system and processing Ethernet packets |
CN101505438A (en) * | 2008-12-31 | 2009-08-12 | 深圳市共进电子有限公司 | Implementing method and apparatus for EPON terminal CTC protocol stack |
CN103428012A (en) * | 2012-05-17 | 2013-12-04 | 中兴通讯股份有限公司 | Configuration method and network element management system of passive optical network service |
CN103716185A (en) * | 2013-12-17 | 2014-04-09 | 上海斐讯数据通信技术有限公司 | Passive optical network protocol stack accelerated processing method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8769156B2 (en) * | 2009-12-23 | 2014-07-01 | Citrix Systems, Inc. | Systems and methods for maintaining transparent end to end cache redirection |
-
2015
- 2015-10-19 CN CN201510678901.0A patent/CN105227370B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043352A (en) * | 2006-03-22 | 2007-09-26 | 华为技术有限公司 | Method for configuring Native VLAN for GPON system and processing Ethernet packets |
CN101505438A (en) * | 2008-12-31 | 2009-08-12 | 深圳市共进电子有限公司 | Implementing method and apparatus for EPON terminal CTC protocol stack |
CN103428012A (en) * | 2012-05-17 | 2013-12-04 | 中兴通讯股份有限公司 | Configuration method and network element management system of passive optical network service |
CN103716185A (en) * | 2013-12-17 | 2014-04-09 | 上海斐讯数据通信技术有限公司 | Passive optical network protocol stack accelerated processing method |
Also Published As
Publication number | Publication date |
---|---|
CN105227370A (en) | 2016-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2963874B1 (en) | Data scheduling and switching method, apparatus, and system | |
US8817799B2 (en) | Network processor for supporting residential gateway applications | |
CN104639385B (en) | Detect the method and apparatus of L2VPN network user's side interface connectivity | |
CN104467951A (en) | Optical network unit management method and optical network unit | |
US9515881B2 (en) | Method, device, and system for packet processing | |
CN103475559A (en) | Method and system for processing and transmitting message according to contents of message | |
CN108512779B (en) | Control information transfer method, server and system | |
CN103117798B (en) | The method that after OLT power-off restarting, ONU configures fast quick-recovery | |
CN106341296A (en) | Method of avoiding data message collision in communication network within transformer substation | |
CN110690990B (en) | Server upgrading method and device, electronic equipment and storage medium | |
CN105227370B (en) | A kind of method of the virtual LAN full configuration of optical network unit | |
US20200244579A1 (en) | Flexible Ethernet Frame Forwarding Method and Apparatus | |
CN108418860A (en) | A osd heartbeat communication method based on ceph cluster | |
CN111866916B (en) | Service configuration method, equipment and server | |
CN105516116A (en) | System for controlling OpenFlow exchanger based on ForCES control element and protocol conversion method | |
WO2017215438A1 (en) | Service activating method, device and system, and storage medium | |
US8634306B2 (en) | Systems and methods for implementing service operation, administration, and management for hairpinned ethernet services | |
CN109981363B (en) | Adaptation method and system of southbound interface | |
CN105009512B (en) | Maintenance association MA setting methods, apparatus and system | |
CN103609066B (en) | Method and node for querying operation administration maintenance configuration information | |
CN102055598A (en) | Method and system for realizing point-to-multipoint OAM of 802.3ah protocol | |
EP4277211A1 (en) | Interface management method for accessed user equipment, and accessed user equipment | |
CN112073756B (en) | Service control method, device, electronic device and readable storage medium | |
CN101296112B (en) | Method, device and system for implementing Ethernet service quality in optical network unit | |
CN108881026A (en) | A kind of BGP message forwarding method and device for realizing router based on linux system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201207 Address after: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province Patentee after: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd. Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Patentee before: Phicomm (Shanghai) Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method of virtual LAN full configuration of optical network unit Effective date of registration: 20211203 Granted publication date: 20180518 Pledgee: Zhejiang Tailong Commercial Bank Co.,Ltd. Huzhou Branch Pledgor: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd. Registration number: Y2021330002446 |
|
PC01 | Cancellation of the registration of the contract for pledge of patent right | ||
PC01 | Cancellation of the registration of the contract for pledge of patent right |
Date of cancellation: 20230811 Granted publication date: 20180518 Pledgee: Zhejiang Tailong Commercial Bank Co.,Ltd. Huzhou Branch Pledgor: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd. Registration number: Y2021330002446 |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250423 Address after: Unit 1107, 11th Floor, Building 7, No.1 Beiqing Road, Changping District, Beijing 100000 Patentee after: Beijing Juxin Jiaye Technology Co.,Ltd. Country or region after: China Address before: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province Patentee before: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd. Country or region before: China |