CN101605090B - Method for realizing two-layer middle agent of dynamic host configuration protocol in passive optical network - Google Patents
Method for realizing two-layer middle agent of dynamic host configuration protocol in passive optical network Download PDFInfo
- Publication number
- CN101605090B CN101605090B CN2008101251711A CN200810125171A CN101605090B CN 101605090 B CN101605090 B CN 101605090B CN 2008101251711 A CN2008101251711 A CN 2008101251711A CN 200810125171 A CN200810125171 A CN 200810125171A CN 101605090 B CN101605090 B CN 101605090B
- Authority
- CN
- China
- Prior art keywords
- dhcp
- message
- dhcp message
- optical network
- identification information
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明提供了一种无源光网络中动态主机配置协议DHCP二层中间代理的实现方法:光线路终端或者光网络单元收到DHCP客户端发送的上行DHCP报文后进行解析,如判断所述上行报文采用广播模式,则将其转换为单播模式后发送给DHCP服务器,并由光网络单元记录所述上行报文中的与相应下行报文相同的标识信息;DHCP服务器根据收到的上行DHCP报文返回相应的下行报文,光网络单元收到下行报文后,如能匹配到记录的标识信息且该标识信息对应于广播模式的上行报文,则将所述下行报文转换为广播模式后发送给DHCP客户端。该方法能有效的避免在无源光网络中大量的DHCP下行广播报文复制和转发。
The present invention provides a method for implementing the DHCP layer-2 intermediate agent of the dynamic host configuration protocol in a passive optical network: the optical line terminal or the optical network unit analyzes the uplink DHCP message sent by the DHCP client, as described in the judgment The uplink message adopts the broadcast mode, then it is converted into the unicast mode and then sent to the DHCP server, and the optical network unit records the same identification information as the corresponding downlink message in the uplink message; the DHCP server according to the received The uplink DHCP message returns the corresponding downlink message. After the optical network unit receives the downlink message, if the recorded identification information can be matched and the identification information corresponds to the uplink message in the broadcast mode, the downlink message is converted It is sent to the DHCP client after it is in broadcast mode. The method can effectively avoid the duplication and forwarding of a large number of DHCP downlink broadcast messages in the passive optical network.
Description
技术领域 technical field
本发明涉及通讯领域,尤其涉及一种无源光网络中DHCP二层中间代理(L2intermediate Agent)的实现方法。 The invention relates to the communication field, in particular to a method for realizing a DHCP layer-2 intermediate agent (L2intermediate Agent) in a passive optical network. the
背景技术 Background technique
目前,无源光网络包括EPON(Ethernet Passive Optical Network,以太网无源光网络)和GPON(Gigabit Passive Optical Network,吉比特无源光网络)系统逐渐广泛部署。从下行方向上看,不同于目前最主要的接入技术DSL(Digtal Subscriber Loop,数字用户线路),无源光网络是一个点到多点的广播系统,网络下行带宽为所有光网络单元共享的,业务数据报文均会全部复用进无源光网络下行帧中,这样网络下行的大量广播报文将吞噬无源光网络下行业务带宽,伴随着无源光网络系统分路比、集成度的提高及多驻地单元模式(Multi-Dwell Unit,MDU)的应用,系统接入用户数越来越多,这样无源光网络系统的广播效率要求越来越高,如何能够节省下行广播带宽,已成为无源光网络系统的一项重要功能要求。 At present, passive optical networks including EPON (Ethernet Passive Optical Network, Ethernet Passive Optical Network) and GPON (Gigabit Passive Optical Network, Gigabit Passive Optical Network) systems are gradually and widely deployed. From the downlink direction, different from DSL (Digtal Subscriber Loop, Digital Subscriber Line), the most important access technology at present, the passive optical network is a point-to-multipoint broadcasting system, and the downlink bandwidth of the network is shared by all optical network units. , all business data packets will be multiplexed into the passive optical network downlink frame, so that a large number of broadcast packets downlink in the network will swallow up the downlink service bandwidth of the passive optical network. With the improvement of the application of multi-resident unit mode (Multi-Dwell Unit, MDU), the number of system access users is increasing, so the broadcast efficiency requirements of the passive optical network system are getting higher and higher. How can the downlink broadcast bandwidth be saved? It has become an important functional requirement of passive optical network system. the
而DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)是目前和将来占据统治性的无源光网络业务应用场景。DHCP协议工作在OSI(Open System Interconnect,开放式系统互联)的应用层,是一种帮助主机从指定的DHCP服务器获取它们的配置信息的自举协议。DHCP使用客户端/服务器模式,请求配置信息的计算机叫做DHCP客户端,而提供信息的叫做DHCP的服务器。下面请参考图1,该图所示为DHCP协议格式,其中重要字段解释如下: And DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) is the current and future dominant passive optical network service application scenario. The DHCP protocol works at the application layer of OSI (Open System Interconnect, Open System Interconnect), and is a bootstrap protocol that helps hosts obtain their configuration information from a designated DHCP server. DHCP uses the client/server model. The computer that requests configuration information is called a DHCP client, and the computer that provides information is called a DHCP server. Please refer to Figure 1 below, which shows the format of the DHCP protocol, and the important fields are explained as follows:
OP:DHCP报文的操作类型,分为请求报文和响应报文;如果其赋值为1表示请求报文;如果其赋值为2表示响应报文。 OP: The operation type of the DHCP message, which is divided into a request message and a response message; if its value is 1, it means a request message; if its value is 2, it means a response message. the
Htype、Hlen:DHCP客户端的硬件地址类型及长度。 Htype, Hlen: the hardware address type and length of the DHCP client. the
Flags:第一个比特为广播响应标识位,用来标识DHCP服务器响应报文是采用单播还是广播发送。其余比特保留不用。 Flags: The first bit is the broadcast response flag, which is used to identify whether the DHCP server response message is sent by unicast or broadcast. The rest of the bits are reserved. the
如果所述Flags标识的响应报文的发送方式为广播方式则在DHCP协议应用的下行方向上会产生大量广播报文。 If the sending mode of the response message identified by the Flags is broadcast, a large number of broadcast messages will be generated in the downlink direction of the application of the DHCP protocol. the
发明内容Contents of the invention
本发明要解决的技术问题是提供一种在无源光网络中动态主机配置协议二层中间代理的实现方法,实现下行DHCP报文从广播方式到单播方式的转换,从而降低了N:1的VLAN(Virtual LAN,虚拟局域网)架构下广播报文大量复制和转发的巨大负荷。本发明技术适用于所有无源光网络系统在DHCP场景下的应用。 The technical problem to be solved by the present invention is to provide a method for realizing the second-layer intermediate agent of the dynamic host configuration protocol in the passive optical network, to realize the conversion of the downlink DHCP message from the broadcast mode to the unicast mode, thereby reducing the N:1 Under the VLAN (Virtual LAN, virtual local area network) architecture, a large number of broadcast packets are copied and forwarded with a huge load. The technology of the invention is applicable to the application of all passive optical network systems in the DHCP scene. the
为了解决上述技术问题,本发明提供了一种无源光网络中动态主机配置协议DHCP二层中间代理的实现方法,其中: In order to solve the above-mentioned technical problems, the present invention provides a method for implementing a dynamic host configuration protocol DHCP layer-2 intermediate agent in a passive optical network, wherein:
光线路终端或者光网络单元收到DHCP客户端发送的上行DHCP报文后进行解析,如判断所述上行DHCP报文采用广播模式,则将其转换为单播模式的上行DHCP报文后发送给DHCP服务器。 After the optical line terminal or the optical network unit receives the uplink DHCP message sent by the DHCP client, it analyzes it. If it is judged that the uplink DHCP message adopts the broadcast mode, it converts it into an uplink DHCP message in the unicast mode and sends it to DHCP server. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
所述光网络单元记录所述上行DHCP报文中的与相应下行DHCP报文相同的标识信息。 The optical network unit records the same identification information in the uplink DHCP message as that in the corresponding downlink DHCP message. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
所述DHCP服务器根据收到的所述上行DHCP报文返回相应的单播模式的下行DHCP报文; The DHCP server returns a corresponding unicast mode downlink DHCP message according to the received uplink DHCP message;
所述光网络单元收到所述下行DHCP报文后,如能匹配到记录的标识信息且该标识信息对应于广播模式的上行DHCP报文,则将所述下行DHCP报文转换为广播模式的下行DHCP报文,发送给所述DHCP客户端。 After the optical network unit receives the downlink DHCP message, if it can match the recorded identification information and the identification information corresponds to the uplink DHCP message in the broadcast mode, convert the downlink DHCP message into the broadcast mode The downlink DHCP message is sent to the DHCP client. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
是通过所述上行DHCP报文中包含的广播响应标识位的赋值等于代表广播模式的赋值,还是等于代表单播模式的赋值,来判断所述上行DHCP报文是否采用广播模式。 Whether the uplink DHCP message adopts the broadcast mode is determined by whether the value of the broadcast response identification bit included in the uplink DHCP message is equal to the value representing the broadcast mode or equal to the value representing the unicast mode. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
将广播模式的所述上行DHCP报文转换为单播模式的上行DHCP报文时,是将其中的广播响应标识位的赋值修改为代表单播模式的赋值,并重新计算出所述上行DHCP报文的校验数据并更新原有的校验数据。 When converting the uplink DHCP message in the broadcast mode to the uplink DHCP message in the unicast mode, the assignment of the broadcast response identification bit is modified to represent the assignment of the unicast mode, and the uplink DHCP message is recalculated. The verification data of the document and update the original verification data. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
将单播模式的所述下行DHCP报文转换为广播模式的下行DHCP报文时,是将所述下行DHCP报文中包含的广播响应标识位的赋值修改为代表广播模式的赋值,将所述下行DHCP报文中包含的MAC地址和IP地址修改为广播地址,并重新计算出所述下行DHCP报文的校验数据并更新原有的校验数据。 When the downlink DHCP message of the unicast mode is converted into the downlink DHCP message of the broadcast mode, the assignment of the broadcast response identification bit contained in the downlink DHCP message is modified to represent the assignment of the broadcast mode, and the The MAC address and the IP address included in the downlink DHCP message are changed to the broadcast address, and the verification data of the downlink DHCP message is recalculated and the original verification data is updated. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
所述光线路终端或者光网络单元收到DHCP客户端发送的上行DHCP报文后进行解析,如判断所述上行DHCP报文采用单播模式,则直接将其透明上传到所述DHCP服务器。 The optical line terminal or optical network unit parses the uplink DHCP message sent by the DHCP client after receiving it, and if it is judged that the uplink DHCP message adopts the unicast mode, transparently upload it to the DHCP server directly. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
所述光网络单元收到所述上行DHCP报文并解析得知其采用单播模式或广播模式后,均对所述上行DHCP报文中的所述标识信息及其采用的模式进行记录; After the optical network unit receives the uplink DHCP message and analyzes and learns that it adopts unicast mode or broadcast mode, it records the identification information in the uplink DHCP message and the mode it adopts;
所述光网络单元收到所述下行DHCP报文后,提取出其中的标识信息并与记录的标识信息匹配,如匹配到的标识信息对应的模式为广播模式,则确定所述标识信息对应于广播模式的上行DHCP报文。 After the optical network unit receives the downlink DHCP message, it extracts the identification information and matches it with the recorded identification information. If the mode corresponding to the matched identification information is broadcast mode, it is determined that the identification information corresponds to Uplink DHCP packets in broadcast mode. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
所述光网络单元如判断所述下行DHCP报文中的标识信息对应的模式为单播模式,则直接将其透明发送给所述DHCP客户端。 If the optical network unit judges that the mode corresponding to the identification information in the downlink DHCP message is a unicast mode, it will directly and transparently send it to the DHCP client. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
所述标识信息为用户端口信息。 The identification information is user port information. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
所述校验数据为帧检验序列值。 The check data is a frame check sequence value. the
进一步地,上述方法还可具有以下特点: Further, the above method can also have the following characteristics:
所述上行DHCP报文是指DHCP请求报文或DHCP发现报文;所述下行DHCP报文是指DHCP分配报文或DHCP确认报文。 The uplink DHCP message refers to a DHCP request message or a DHCP discovery message; the downlink DHCP message refers to a DHCP allocation message or a DHCP confirmation message. the
本发明所述一种在无源光网络中动态主机配置协议二层中间代理的实现方法可以有效的避免在无源光网络中大量的DHCP下行广播报文复制和转发,从而有效地节省了下行业务带宽,提高了系统安全性,并良好地实现向前兼容性,是对无源光网络系统标准技术的有益补充和扩展。 A method for realizing the second-layer intermediate agent of the dynamic host configuration protocol in the passive optical network described in the present invention can effectively avoid the duplication and forwarding of a large number of DHCP downlink broadcast messages in the passive optical network, thereby effectively saving downlink Service bandwidth improves system security and achieves good forward compatibility, which is a useful supplement and extension to the standard technology of passive optical network systems. the
附图说明 Description of drawings
图1为DHCP报文格式示意图。 FIG. 1 is a schematic diagram of a DHCP message format. the
图2为实现DHCP二层中间代理的系统结构图。
Fig. 2 is a system structure diagram for realizing the
图3为对一条报文进行DHCP二层中间代理处理的方法流程图。
Fig. 3 is a flowchart of a method for performing
具体实施方式 Detailed ways
本发明提出了一种在无源光网络中动态主机配置协议二层中间代理的实现方法,可以有效避免大量的DHCP下行广播报文复制和转发,从而有效地节省了下行业务带宽,提高了系统安全性。其基本构思是:光线路终端(Optical Line Terminal,OLT)或光网络单元(Optical Network Unit,ONU)对无源光网络系统上行DHCP报文进行侦听,对广播/单播请求模式标识进行修改,从而实现OLT至光网络单元下行以单播方式发送DHCP报文,同时考虑到用户侧DHCP客户端的兼容性,在光网络单元上针对原始的广播/单播请求模式标识进行逆向转换和恢复。 The present invention proposes a method for realizing the second-layer intermediate agent of the dynamic host configuration protocol in the passive optical network, which can effectively avoid the duplication and forwarding of a large number of DHCP downlink broadcast messages, thereby effectively saving the downlink service bandwidth and improving the system efficiency. safety. The basic concept is: Optical Line Terminal (OLT) or Optical Network Unit (ONU) listens to the upstream DHCP message of the passive optical network system, and modifies the broadcast/unicast request mode identification , so as to realize the downlink transmission of DHCP messages from the OLT to the optical network unit in unicast mode, and at the same time, considering the compatibility of the DHCP client on the user side, the original broadcast/unicast request mode identifier is reversely converted and restored on the optical network unit. the
下面结合附图及具体实施例对本发明详细说明。 The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. the
本发明实施例所述的无源光网络中动态主机配置协议二层中间代理的实现方法,其业务系统结构如图2所示,包括: The implementation method of the second-layer intermediate agent of the dynamic host configuration protocol in the passive optical network described in the embodiment of the present invention, its business system structure is shown in Figure 2, including:
DHCP客户端:驻留在用户侧,用于发起DHCP请求。对于Windows,Unix,Linux等不同平台下的DHCP客户端其广播/单播请求标识(flags字 段的第一个比特位)原始值可能是不同的,即可能为广播请求方式(flags字段的第一个比特位值为1),也可能为单播请求方式(flags字段的第一个比特位值为0)。以下以flag代表flags字段的第一个比特位。 DHCP client: resides on the user side and is used to initiate a DHCP request. For DHCP clients under different platforms such as Windows, Unix, and Linux, the original value of the broadcast/unicast request identifier (the first bit of the flags field) may be different, that is, it may be the broadcast request mode (the first bit of the flags field) A bit value is 1), and it may also be a unicast request mode (the first bit value of the flags field is 0). In the following, flag represents the first bit of the flags field. the
DHCP服务器:驻留在上游网关侧,用于应答DHCP客户端发出的请求,予以分配IP地址;其应答包的模式依据协议要求将绝对基于DHCP客户端的请求模式,即根据上行DHCP包的flag值来进行单播或广播的下行发送。 DHCP server: Residing on the upstream gateway side, it is used to respond to the request sent by the DHCP client and assign an IP address; the mode of its response packet will be absolutely based on the request mode of the DHCP client according to the protocol requirements, that is, according to the flag value of the upstream DHCP packet To perform unicast or broadcast downlink transmission. the
光线路终端和光网络单元:可统称为接入节点(Access Node)。本发明中上行的DHCP报文的修改既可在光线路终端处完成,也可在光网络单元处完成,下行DHCP报文的修改在光网络单元处完成。这个功能模块在本发明中称为DHCP二层中间代理。进一步地,在光网络单元中还包括:flag信息和端口的对应表,该对应表用于记录特定端口的DHCP报文flag源信息,下行的DHCP报文中flag逆向转换将基于对这个表的查询来完成。
Optical line terminals and optical network units: can be collectively referred to as access nodes (Access Node). In the present invention, the modification of the uplink DHCP message can be completed at the optical line terminal or at the optical network unit, and the modification of the downlink DHCP message can be completed at the optical network unit. This functional module is referred to as a
下面将介绍基于图2所示的系统结构来实现DHCP二层中间代理的方法,以对一条报文进行DHCP二层中间代理处理为例,请参考图3,该方法包括步骤:
The following will introduce the method of implementing the
步骤S301:光网络单元接收DHCP客户端发送来的上行报文,并解析所述上行报文中包含的flags字段,所述报文可以是发现报文(Discover),也可以是请求报文(Request); Step S301: the optical network unit receives the uplink message sent by the DHCP client, and parses the flags field contained in the uplink message. The message can be a discovery message (Discover) or a request message ( Request);
所述请求报文携带DHCP客户端的信息,用于请求动态分配IP地址; The request message carries the information of the DHCP client, and is used to request dynamic allocation of IP addresses;
所述发现报文是DHCP协议的第一个标准消息,用于寻找DHCP服务器; The discovery message is the first standard message of the DHCP protocol, which is used to find a DHCP server;
所述请求报文和发现报文的报文格式均符合图1所示的DHCP协议格式,其中包含flags字段,该字段的第一个比特为广播响应标识位,用来标识DHCP服务器响应报文是采用单播模式还是广播模式发送。 The message formats of the request message and the discovery message all conform to the DHCP protocol format shown in Figure 1, which includes the flags field, and the first bit of this field is a broadcast response identification bit, which is used to identify the DHCP server response message Whether to use unicast mode or broadcast mode to send. the
步骤S302:光网络单元判断所述解析出来的flags字段的第一个比特即广播响应标识位的赋值,如果所述广播响应标识位赋值为0,则进入步骤S303;如果所述广播响应标识位赋值为1,则进入步骤S304; Step S302: the optical network unit judges the first bit of the parsed flags field, that is, the assignment of the broadcast response identification bit, if the broadcast response identification bit is assigned a value of 0, then enter step S303; if the broadcast response identification bit If the assigned value is 1, enter step S304;
步骤S303:将所述上行报文直接转发给光线路终端,由光线路终端再发送给DHCP服务器,结束; Step S303: directly forward the uplink message to the optical line terminal, and then send it to the DHCP server by the optical line terminal, and end;
所述广播响应标识位赋值为0,即表示采用单播发送模式;将所述上行报文透明转发给光线路终端,由光线路终端再发送给DHCP服务器; The assignment of the broadcast response identification bit to 0 means that the unicast transmission mode is adopted; the uplink message is transparently forwarded to the optical line terminal, and then sent to the DHCP server by the optical line terminal;
步骤S304:光网络单元将所述DHCP上行报文中的广播响应标识位赋值为0,并重新计算DHCP报文的帧检验序列值(Frame Check Sequence,FCS),更新原有的帧检验序列值,以确保DHCP服务器可以正确的接收并处理所述上行报文; Step S304: The optical network unit assigns the broadcast response identification bit in the DHCP uplink message to 0, and recalculates the frame check sequence value (Frame Check Sequence, FCS) of the DHCP message, and updates the original frame check sequence value , to ensure that the DHCP server can correctly receive and process the uplink message;
对帧检验序列值的计算采用TCP/IP协议标准使用的循环冗余校验方法对DHCP报文的帧检验序列值的修改,这里不再赘述。 The calculation of the frame check sequence value adopts the cyclic redundancy check method used by the TCP/IP protocol standard to modify the frame check sequence value of the DHCP message, which will not be repeated here. the
步骤S305:光网络单元将所述DHCP上行报文的源DHCP flag和用户端口信息写入源DHCP flag和用户端口的对应表,并将修改后的所述上行报文发送光线路终端,再由光线路终端发送给DHCP服务器; Step S305: the optical network unit writes the source DHCP flag and user port information of the DHCP uplink message into the corresponding table of the source DHCP flag and the user port, and sends the modified uplink message to the optical line terminal, and then the The optical line terminal sends to the DHCP server;
如果源DHCP flag和用户端口的对应表还没有创建,则先创建该对应表再将上述信息写入; If the corresponding table of source DHCP flag and user port has not been created, create the corresponding table first and then write the above information;
步骤S306:DHCP服务器接收上行报文并根据上行报文的信息发送相应的下行报文给光线路终端,所述下行报文可以是分配报文(offer),也可以是确认报文(ACK); Step S306: The DHCP server receives the uplink message and sends a corresponding downlink message to the optical line terminal according to the information of the uplink message. The downlink message can be an allocation message (offer) or an acknowledgment message (ACK) ;
所述分配报文对应于请求报文,用于为DHCP客户端动态分配IP地址; The allocation message corresponds to the request message, and is used to dynamically allocate an IP address for the DHCP client;
所述确认报文对应于发现报文,用于确认寻找到DHCP服务器; The confirmation message corresponds to the discovery message, and is used to confirm that the DHCP server is found;
所述DHCP服务器接收上行报文并根据上行报文的信息发送相应的下行报文的处理流程按照现有标准协议进行处理即可,这里不再赘述; The processing flow of the DHCP server receiving the uplink message and sending the corresponding downlink message according to the information of the uplink message can be processed according to the existing standard protocol, and will not be repeated here;
步骤S307:光网络单元从光线路终端处获取下行分配报文或确认报文,并解析所述下行报文中包含的flags字段; Step S307: the optical network unit obtains a downlink allocation message or confirmation message from the optical line terminal, and parses the flags field contained in the downlink message;
步骤S308:光网络单元查看源DHCP flag和用户端口的对应表,如果该用户端口DHCP报文的原始flags字段的第一个比特位赋值为0,则进入步骤S309;如果该用户端口DHCP报文的原始flags字段的第一个比特位赋值为1,则进入步骤S310; Step S308: the optical network unit checks the corresponding table of the source DHCP flag and the user port, if the first bit of the original flags field of the user port DHCP message is assigned a value of 0, then enter step S309; if the user port DHCP message The first bit of the original flags field of the original flags field is assigned a value of 1, then enter step S310;
步骤S309:光网络单元将所述下行报文发送给光线路终端,再由光线路终端发送给DHCP客户端; Step S309: the optical network unit sends the downlink message to the optical line terminal, and then the optical line terminal sends it to the DHCP client;
步骤S310:光网络单元将所述下行报文中包含的flags字段的第一个比特位赋值为1;将所述下行报文中的MAC地址和IP地址修改为广播地址,重新计算报文的帧检验序列值并替换原帧检验序列值; Step S310: the optical network unit assigns a value of 1 to the first bit of the flags field contained in the downlink message; changes the MAC address and IP address in the downlink message to a broadcast address, and recalculates the Frame check sequence value and replace the original frame check sequence value;
将所述下行报文中包含的flags字段的第一个比特位赋值为1即代表广播模式,所以相应的需要将所述报文的MAC地址和IP地址修改为广播地址,即将所述下行报文中包含的48bit位的MAC地址全部填1即改为0xff-ff-ff-ff-ff-ff,将32bit位的IP地址全部填1即改写为0xff-ff-ff-ff; Assigning a value of 1 to the first bit of the flags field contained in the downlink message represents the broadcast mode, so correspondingly, the MAC address and IP address of the message need to be modified to a broadcast address, that is, the downlink message The 48-bit MAC address contained in the text is filled with 1 and changed to 0xff-ff-ff-ff-ff-ff, and the 32-bit IP address is filled with 1 and changed to 0xff-ff-ff-ff;
该步骤中还采用TCP/IP协议标准使用的循环冗余校验方法对DHCP报文的帧检验序列值进行重新计算,并替换原帧检验序列值,以保证DHCP客户端可以正确的接收并处理所述报文; In this step, the cyclic redundancy check method used by the TCP/IP protocol standard is also used to recalculate the frame check sequence value of the DHCP message, and replace the original frame check sequence value to ensure that the DHCP client can correctly receive and process said message;
步骤S311:光网络单元将修改后的所述下行报文发送出去; Step S311: the optical network unit sends the modified downlink message;
该步骤之后还可以清空所述源DHCP flag和用户端口的对应表,也可不清空,这里不做限定; After this step, the corresponding table of the source DHCP flag and the user port can also be emptied, or not emptied, and there is no limitation here;
在另一实施例中,也可以在对上行报文处理时,光网络单元侧只对所述上行报文的源DHCP flag和用户端口进行记录,并不对其进行修改,然后将所述上行报文发送给光线路终端,由光线路终端按与上述实施例中光网络单元相同的方法对上行报文中的广播响应标识位以及校验数据进行修改,其余流程步骤与上述实施例相同,这里不再赘述。 In another embodiment, when processing the uplink message, the optical network unit side only records the source DHCP flag and the user port of the uplink message without modifying it, and then sends the uplink message The text is sent to the optical line terminal, and the optical line terminal modifies the broadcast response identification bit and the verification data in the uplink message in the same way as the optical network unit in the above-mentioned embodiment, and the rest of the process steps are the same as the above-mentioned embodiment, here No longer. the
上述实施例中,由光网络单元记录所有上行DHCP报文中的源DHCPflag和用户端口信息,在其它实施例中,光网络单元也可以只记录flags第一个比特位值为1的上行DHCP报文中的用户端口信息或者上行DHCP报文中的与相应下行DHCP报文相同的其它标识信息,在对下行DHCP报文处理时,只需判断其中的用户端口信息是否已记录,如已记录则需将其转换为广播响应模式的下行DHCP报文,否则可透明转发。这也是可以的。 In the above embodiment, the optical network unit records the source DHCPflag and user port information in all uplink DHCP messages. In other embodiments, the optical network unit can also only record the uplink DHCP message whose first bit value of flags is 1. The user port information in the text or other identification information in the uplink DHCP message that is the same as the corresponding downlink DHCP message, when processing the downlink DHCP message, only need to judge whether the user port information has been recorded, if recorded, then It needs to be converted into a downlink DHCP message in broadcast response mode, otherwise it can be forwarded transparently. This is also possible. the
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention. the
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008101251711A CN101605090B (en) | 2008-06-14 | 2008-06-14 | Method for realizing two-layer middle agent of dynamic host configuration protocol in passive optical network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008101251711A CN101605090B (en) | 2008-06-14 | 2008-06-14 | Method for realizing two-layer middle agent of dynamic host configuration protocol in passive optical network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101605090A CN101605090A (en) | 2009-12-16 |
| CN101605090B true CN101605090B (en) | 2013-01-16 |
Family
ID=41470647
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2008101251711A Expired - Fee Related CN101605090B (en) | 2008-06-14 | 2008-06-14 | Method for realizing two-layer middle agent of dynamic host configuration protocol in passive optical network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101605090B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103812707A (en) * | 2014-02-28 | 2014-05-21 | 上海斐讯数据通信技术有限公司 | Forwarding processing method of line identity messages |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2014091277A1 (en) * | 2012-12-12 | 2014-06-19 | Pismo Labs Technology Limited | Method and system to reduce wireless network packets for centralized layer two network |
| CN103944867B (en) * | 2013-01-23 | 2017-09-12 | 华为技术有限公司 | Processing method, the device and system of dynamic host configuration protocol message |
| US10298416B2 (en) | 2013-09-05 | 2019-05-21 | Pismo Labs Technology Limited | Method and system for converting a broadcast packet to a unicast packet at an access point |
| CN105337886A (en) * | 2015-11-02 | 2016-02-17 | 福建星网锐捷网络有限公司 | DHCP address allocation method and DHCP address allocation device |
| CN105933471B (en) * | 2016-06-28 | 2020-06-02 | 北京北信源软件股份有限公司 | A Realization Method of Simplified Assignment of Isolation Domain IP Based on DHCP Access |
| CN106254203B (en) * | 2016-09-05 | 2020-02-11 | 新华三技术有限公司 | Message forwarding method and device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1547358A (en) * | 2003-12-02 | 2004-11-17 | 烽火通信科技股份有限公司 | A data frame buffer memory device and method for Ethernet passive optical network |
| CN1558618A (en) * | 2004-01-20 | 2004-12-29 | 北京邮电大学 | A method for optical network elements in optical Internet to support channel interconnection of different network models |
-
2008
- 2008-06-14 CN CN2008101251711A patent/CN101605090B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1547358A (en) * | 2003-12-02 | 2004-11-17 | 烽火通信科技股份有限公司 | A data frame buffer memory device and method for Ethernet passive optical network |
| CN1558618A (en) * | 2004-01-20 | 2004-12-29 | 北京邮电大学 | A method for optical network elements in optical Internet to support channel interconnection of different network models |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103812707A (en) * | 2014-02-28 | 2014-05-21 | 上海斐讯数据通信技术有限公司 | Forwarding processing method of line identity messages |
| CN103812707B (en) * | 2014-02-28 | 2019-07-16 | 上海斐讯数据通信技术有限公司 | A kind of method for processing forwarding of line identification message |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101605090A (en) | 2009-12-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7808994B1 (en) | Forwarding traffic to VLAN interfaces built based on subscriber information strings | |
| US7944918B2 (en) | Dynamic building of VLAN interfaces based on subscriber information strings | |
| CN101605090B (en) | Method for realizing two-layer middle agent of dynamic host configuration protocol in passive optical network | |
| EP2323342B1 (en) | Data transmission method and network node and data transmission system | |
| CN102088391B (en) | Processing method, equipment and system for Internet protocol version 6 (IPv6) message | |
| EP1693996B1 (en) | Automatic discovery of psuedo-wire peer addresses in ethernet-based networks | |
| WO2009012688A1 (en) | Method, system and apparatus for forwarding message in three-layer virtual private network | |
| JP6121548B2 (en) | Method, routing bridge, and system for transmitting packets | |
| WO2011107052A2 (en) | Method and access node for preventing address conflict | |
| CN100502354C (en) | A VLAN-based data packet transmission method and Ethernet bridge equipment | |
| CN109787873B (en) | Many-to-many network access communication method and device | |
| CN102413052B (en) | A kind of method of access network, Apparatus and system | |
| WO2022143395A1 (en) | Redundant path creating method, apparatus, and system | |
| US20080186967A1 (en) | Method for supporting source-specific multicast forwarding over ethernet and device thereof | |
| CN102932228B (en) | The communication means of TRILL network and device, system | |
| CN1852254A (en) | Ethernetwork exchanging apparatus and method for realizing MPLS message retransmission | |
| CN111211982B (en) | Data forwarding method and device, electronic equipment and storage medium | |
| CN110740087B (en) | Message transmission method, terminal, gateway device, electronic device and storage medium | |
| CN109873817B (en) | Method and device for one-to-one network access | |
| EP3609127B1 (en) | Method for control signalling overhead in an access network | |
| CN112165416B (en) | Networking and communication method and device | |
| CN101453401B (en) | Ethernet bridge device, MAC address learning method and data packet transmission method | |
| CN1787520B (en) | System and Method for Realizing Internet Group Management Protocol on Resilient Packet Ring | |
| EP2073506B1 (en) | Method for resolving a logical user address in an aggregation network | |
| CN107231316A (en) | The transmission method and device of message |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130116 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |