WO2017045106A1 - 基于光网络系统的通信方法与设备 - Google Patents

基于光网络系统的通信方法与设备 Download PDF

Info

Publication number
WO2017045106A1
WO2017045106A1 PCT/CN2015/089548 CN2015089548W WO2017045106A1 WO 2017045106 A1 WO2017045106 A1 WO 2017045106A1 CN 2015089548 W CN2015089548 W CN 2015089548W WO 2017045106 A1 WO2017045106 A1 WO 2017045106A1
Authority
WO
WIPO (PCT)
Prior art keywords
dhcp
terminal
optical network
request message
address
Prior art date
Application number
PCT/CN2015/089548
Other languages
English (en)
French (fr)
Inventor
刘晓斌
胡海涛
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/089548 priority Critical patent/WO2017045106A1/zh
Priority to CN201580081190.7A priority patent/CN107710634B/zh
Priority to JP2018513515A priority patent/JP6505319B2/ja
Priority to EP15903797.7A priority patent/EP3337046B1/en
Publication of WO2017045106A1 publication Critical patent/WO2017045106A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/74Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission for increasing reliability, e.g. using redundant or spare channels or apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0088Signalling aspects

Definitions

  • Embodiments of the present invention relate to the field of communications, and, more particularly, to a communication method and apparatus based on an optical network system.
  • the Dynamic Host Configure Protocol (“DHCP”) is one of the TCP/IP protocol suites. It is mainly used to assign dynamic IP addresses to network terminals. These assigned IP addresses are all DHCP servers. A set of addresses consisting of multiple IP addresses reserved in advance, and these IP addresses are usually a contiguous address.
  • the DHCP terminal leases an IP address to the DHCP server, the DHCP server provides an available IP address and subnet mask to the DHCP terminal according to the currently configured IP address, and provides related lease time.
  • FIG. 1 shows a scenario in which communication between a DHCP server and a DHCP terminal is implemented using an optical network system protection group.
  • the protection group includes an optical network unit (Optical Network Unit, referred to as “ONU”) on the DHCP terminal side and an optical line termination (Optical Line Termination (OLT) for short) (FIG. 1)
  • OLT Optical Line Termination
  • the OLT1 and the OLT2 are grouped together to the same network side device (corresponding to the DHCP server).
  • the service is transmitted on the path where the OLT1 is located (that is, the primary path).
  • the DHCP terminal leases an IP address to the DHCP server
  • the DHCP terminal generates a DHCP Request and sends it to the ONU (this process may also be called DHCP).
  • the terminal dials the leased IP address.
  • the ONU sends the DHCP Request to the OLT1 through the primary port, and the OLT1 forwards the DHCP Request to the DHCP server.
  • the DHCP Ack sent by the DHCP server is sent to the ONU through the OLT1, and then forwarded by the ONU to the DHCP terminal.
  • the DHCP terminal can access the network based on the IP address assigned by the server.
  • the OLT1 is configured with a DHCP snooping binding table and an IP/MAC binding table. These tables ensure communication between the DHCP terminal and the network side.
  • the DHCP snooping binding table and the IP/MAC binding table are OLT1. Listen to DHCP Request and DHCP Ack generated.
  • the protection group When the line where OLT1 is located fails, the protection group will The switching occurs, that is, the working port of the ONU is switched from the active port to the standby port, that is, the service is transmitted between the DHCP terminal and the network side by using the path where the OLT 2 is located (ie, the alternate path).
  • the DHCP terminal since the IP address of the DHCP terminal is generally long, the DHCP terminal does not sense the switching action of the protection group. The DHCP terminal does not immediately re-dial to renew the IP address. Therefore, there is no OLT2.
  • the DHCP snooping binding table and the IP/MAC binding table configured on the OLT1 cause the service between the DHCP terminal and the network side to fail.
  • the DHCP snooping binding table and the IP/MAC binding table are generated on the OLT2 until the DHCP terminal performs the re-dial to implement the service between the DHCP terminal and the network side. Back to normal.
  • the current technology causes the end-to-end service switching time to be long, which may result in degradation or even interruption of service transmission quality between the DHCP terminal and the network side.
  • the embodiment of the invention provides a communication method and device based on an optical network system, which can effectively shorten the end-to-end service switching time.
  • a first aspect provides a communication method based on an optical network system, where the optical network system includes a protection group, where the protection group includes a first device on a DHCP terminal side of a dynamic host configuration protocol, and a second device and a third device on a DHCP server side.
  • the primary port of the first device is connected to the second device, and the standby port of the first device is connected to the third device, wherein the method includes:
  • the identifier information of the DHCP terminal is obtained, where the identifier information includes a media access control MAC address of the DHCP terminal;
  • the first device generates, according to the identifier information, a DHCP request message for requesting an IP address for the DHCP terminal, where the DHCP request message includes the identifier information;
  • the first device sends the DHCP request message to the third device by using the standby port, so that the third device forwards the DHCP request message to the DHCP server;
  • the first device receives a DHCP response message sent by the third device, where the DHCP response message is received by the third device from the DHCP server, and the DHCP response message includes an IP address allocated by the DHCP server for the DHCP terminal;
  • the first device sends the IP address assigned by the DHCP server to the DHCP terminal, so that the DHCP terminal performs service transmission with the DHCP server based on the alternate path where the third device is located.
  • the first device is an optical network unit ONU or an optical network terminal ONT
  • the second device and the third device are both optical line terminals OLT.
  • the identifier information of the DHCP terminal further includes virtual local area network (VLAN) VLAN information of the DHCP terminal.
  • VLAN virtual local area network
  • the DHCP request message is a DHCP Request
  • the DHCP response message is a DHCP Ack
  • the second aspect provides a communication method based on an optical network system, where the optical network system includes a protection group, where the protection group includes a first device on the DHCP terminal side of the dynamic host configuration protocol, and a second device and a third device on the DHCP server side.
  • the primary port of the first device is connected to the second device, and the standby port of the first device is connected to the third device.
  • the method includes:
  • the third device receives a DHCP request message sent by the first device for requesting an IP address for the DHCP terminal, where the DHCP request message is generated by the first device according to the identifier information of the DHCP terminal after the protection group is switched.
  • the DHCP terminal request includes the identifier information, where the identifier information includes a media access control MAC address of the DHCP terminal;
  • the third device forwards the DHCP request message to the DHCP server, and configures binding information based on the identifier information;
  • the third device forwards the DHCP response message to the first device, and completes the binding information based on the IP address allocated for the DHCP terminal.
  • the first device is an optical network unit ONU or an optical network terminal ONT
  • the second device and the third device are both optical line terminals OLT.
  • the identifier information of the DHCP terminal further includes virtual local area network (VLAN) VLAN information of the DHCP terminal.
  • VLAN virtual local area network
  • the binding information configured by the third device includes a DHCP snooping binding table, a MAC binding table, and an IP binding table.
  • the DHCP request message is a DHCP Request
  • the DHCP response message is a DHCP Ack
  • the third aspect provides an optical network system-based device, where the optical network system includes a protection group, where the protection group includes the device on the DHCP terminal side of the dynamic host configuration protocol and the second device and the third device on the DHCP server side, where The primary port of the device is connected to the second device, and the standby port of the device is connected to the third device, wherein the device includes:
  • An acquiring module configured to acquire, after detecting that the protection group is switched, the identifier information of the DHCP terminal, where the identifier information includes a media access control MAC address of the DHCP terminal;
  • a generating module configured to generate, according to the identifier information acquired by the acquiring module, a DHCP request message for requesting an IP address for the DHCP terminal, where the DHCP request message includes the identifier information;
  • a first sending module configured to send, by using the standby port, a DHCP request message generated by the generating module to the third device, so that the third device forwards the DHCP request message to the DHCP server;
  • a receiving module configured to receive a DHCP response message sent by the third device, where the DHCP response message is received by the third device from the DHCP server, and the DHCP response message includes an IP address assigned by the DHCP server to the DHCP terminal;
  • the second sending module is configured to send, to the DHCP terminal, an IP address that is received by the receiving module by the DHCP server, so that the DHCP terminal performs service transmission with the DHCP server based on the alternate path where the third device is located.
  • the device is an optical network unit ONU or an optical network terminal ONT, and the second device and the third device are both optical line terminals OLT.
  • the identifier information of the DHCP terminal further includes virtual local area network (VLAN) VLAN information of the DHCP terminal.
  • VLAN virtual local area network
  • the DHCP request message is a DHCP Request
  • the DHCP response message is a DHCP Ack
  • the fourth aspect provides an optical network system-based device, where the optical network system includes a protection group, where the protection group includes a first device on the DHCP terminal side of the dynamic host configuration protocol and a second device and device on the DHCP server side, where The primary port of the first device is connected to the second device, and the standby port of the first device is connected to the device, and the device includes:
  • a first receiving module configured to receive, by the first device, a DHCP request message for requesting an IP address for the DHCP terminal, where the DHCP request message is after the switching of the protection group by the first device, according to the DHCP terminal
  • the identifier information is generated, and the DHCP terminal request includes the identifier information, where the identifier information includes a media access control MAC address of the DHCP terminal;
  • a first sending module configured to forward, to the DHCP server, a DHCP request message received by the first receiving module, and configure binding information based on the identifier information
  • a second receiving module configured to receive a DHCP response message sent by the DHCP server, including an IP address allocated for the DHCP terminal;
  • the second sending module is configured to forward the DHCP response message received by the second receiving module to the first device, and complete the binding information based on the IP address allocated for the DHCP terminal.
  • the first device is an optical network unit ONU or an optical network terminal ONT
  • the second device and the device are both optical line terminals OLT.
  • the identifier information of the DHCP terminal further includes virtual local area network (VLAN) VLAN information of the DHCP terminal.
  • VLAN virtual local area network
  • the binding information configured by the device includes a DHCP snooping binding table, a MAC binding table, and an IP binding table.
  • the DHCP request message is a DHCP Request
  • the DHCP response message is a DHCP Ack
  • the DHCP request message is generated according to the identifier information of the DHCP terminal, and the device sends the DHCP request message to the DHCP server according to the working path after the switching.
  • the DHCP request message receives, by the working path after the switching, the DHCP response message sent by the DHCP server, including the assigned IP address, in the process, so that the third device on the working path after the switching passes the DHCP request message.
  • the DHCP snooping binding table and the MAC/IP binding table are generated corresponding to the DHCP response message, so that the end-to-end service can be executed normally after the protection switching.
  • the DHCP terminal needs to wait for the DHCP request message to be initiated.
  • the embodiment of the present invention can implement fast protection switching of the end-to-end service, thereby improving the reliability of the service transmission between the user terminal and the network side. .
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for communicating based on an optical network system according to an embodiment of the present invention
  • FIG. 3 is another schematic diagram of an application scenario of an embodiment of the present invention.
  • FIG. 4 is another flow chart of an optical network system-based communication method according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of an optical network system-based device according to an embodiment of the present invention.
  • FIG. 6 is another schematic block diagram of an optical network system-based device according to an embodiment of the present invention.
  • FIG. 7 is still another schematic block diagram of an optical network system-based device according to an embodiment of the present invention.
  • FIG. 8 shows still another schematic block diagram of an optical network system based device according to an embodiment of the present invention.
  • the optical network system including a protection group including a first device on the DHCP terminal side of the dynamic host configuration protocol and a second device and a third on the DHCP server side.
  • the device wherein the primary port of the first device is connected to the second device, and the standby port of the first device is connected to the third device, the method 100 includes:
  • the first device detects that the protection group is switched, acquiring the DHCP terminal.
  • Identification information including a media access control MAC address of the DHCP terminal;
  • the switching of the protection group refers to that the working port of the first device is switched from the primary port to the standby port. That is to say, after the first device detects that the primary port and the standby port are switched, it is determined that the protection group is switched.
  • the identifier information of the DHCP terminal further includes virtual local area network VLAN information of the DHCP terminal.
  • the first device generates, according to the identifier information, a DHCP request message for requesting an IP address for the DHCP terminal, where the DHCP request message includes the identifier information.
  • the DHCP request message includes the MAC address of the DHCP terminal. It can be understood that the first device simulates that the DHCP terminal requests an IP address from the server.
  • the first device sends the DHCP request message to the third device by using the standby port, so that the third device forwards the DHCP request message to the DHCP server.
  • the working path is the primary path, that is, the path where the primary port and the second device are located.
  • the working path is switched to the alternate path, that is, the path where the standby port and the third device are located.
  • the first device sends the DHCP request message to the server through the alternate path.
  • the third device forwards the DHCP request message to the DHCP server, and creates a DHCP snooping binding table based on the identifier information of the DHCP terminal carried in the DHCP request message.
  • the DHCP snooping binding table just created includes information such as the MAC address of the DHCP terminal and port information (indicating the alternate port).
  • the first device receives a DHCP response message sent by the third device, where the DHCP response message is received by the third device from the DHCP server, and the DHCP response message includes an IP address allocated by the DHCP server to the DHCP terminal. address;
  • the DHCP server allocates an IP address to the DHCP terminal according to the DHCP request message, and sends a DHCP response message including the assigned IP address. It should be understood that the DHCP response message may further include information such as an IP address lease period.
  • the third device forwards the DHCP response message to the first device, and based on the DHCP response message, completes the DHCP snooping binding table, and generates a MAC binding table and an IP binding table.
  • the improved DHCP snooping binding table further includes an IP address assigned to the DHCP terminal, and may also include IP address lease information.
  • the IP binding table includes an IP address assigned to the DHCP terminal.
  • the MAC binding table includes the MAC address of the DHCP terminal.
  • the DHCP request message is a DHCP Request
  • the DHCP response message is a DHCP Ack.
  • the first device sends the IP address assigned by the DHCP server to the DHCP terminal, so that the DHCP terminal performs service transmission with the DHCP server based on the alternate path where the third device is located.
  • the DHCP snooping binding table and the MAC/IP binding table corresponding to the DHCP terminal are configured on the third device, so that the normal transmission of the service between the DHCP terminal and the network side can be ensured.
  • the DHCP snooping binding table and the MAC/IP binding table configured on the third device are consistent with the DHCP snooping binding table and the MAC/IP binding table configured on the second device before the protection group switching, and can enable the user. There is no difference in online perception, which can improve user experience satisfaction.
  • the DHCP request message is generated according to the identification information of the DHCP terminal, and the DHCP request message is sent to the DHCP server according to the working path after the switching.
  • the third device on the working path after the switching is caused to listen to the DHCP request message and the DHCP response.
  • the message generates the corresponding DHCP snooping binding table and the MAC/IP binding table, so that the end-to-end service can be executed normally after the protection switching.
  • the embodiment of the present invention can implement fast protection switching of the end-to-end service, thereby improving the reliability of the service transmission between the user terminal and the network side. .
  • the first device is an optical network device for accessing a user terminal (corresponding to a DHCP terminal in the embodiment of the present invention) in an optical network system, where the first device is placed, for example, in The user premises side is used to access a user terminal, such as a DHCP client.
  • the first device may be an optical network terminal ONT, or may be an optical network unit ONU, which is not limited in this embodiment of the present invention.
  • the second device is also a central office device in the optical network system, for example, connected to the upper end (aggregation layer) switch by a network cable, and the second device is used to implement functions such as control and management of the ONU on the user side.
  • the second device is, for example, an optical line terminal OLT.
  • the optical network unit ONU is divided into an active optical network unit and a passive optical network unit.
  • Passive Optical Networks (“PON") are connected to the optical line termination OLT using a single fiber, and then the OLT is connected to the ONU.
  • ONU provides data, IPTV (interactive network Network TV) and other services.
  • An optical network terminal (“ONT”) is a product in an xPON network access solution.
  • ONT is an ONU, which is an optical network terminal for a client.
  • an ONT should be part of an ONU. The difference between the ONT and the ONU is that the ONT is an optical network terminal and is directly located at the user end.
  • the ONU is an optical network unit.
  • the ONU can access the xDSL. (adsl, vdsl) or gateway device of the Ethernet access port, and then access to the network terminal.
  • the third device is an OLT.
  • the first device is an optical network unit ONU or an optical network terminal ONT
  • the second device and the third device are optical line terminals OLT.
  • the second device and the third device may also be other routers.
  • the ONU After detecting the protection switching, the ONU obtains the identifier information of the DHCP terminal, generates a DHCP request message, and sends the DHCP request message from the standby port to the OLT 2; the OLT 2 sends the DHCP request message to the DHCP server.
  • the DHCP server allocates an IP address to the DHCP terminal, and sends a DHCP response message including the IP address; the OLT2 sends the DHCP response message to the ONU, and the ONU sends the IP address assigned by the DHCP server to the DHCP terminal, so that the DHCP terminal Access to the network for smooth communication.
  • OLT2 After receiving the DHCP response message, OLT2 will create a DHCP snooping binding table. After receiving the DHCP response message, it will complete the DHCP snooping binding table and generate a MAC/IP binding table.
  • the DHCP snooping binding table and the MAC/IP binding table generated on the OLT2 record the identification information of the DHCP terminal, such as the MAC address and IP address of the DHCP terminal, and also record the port information, that is, the standby port of the ONU. Information, etc. It should be understood that the DHCP snooping binding table and the MAC/IP binding table configured on the OLT2 are consistent with the DHCP snooping binding table and the MAC/IP binding table configured on the OLT1 before the protection switching, so that the switching can be guaranteed. The business is consistent with the previous one, so that the user's online perception is no different.
  • the DHCP request message may also be referred to as a DHCP renewed message.
  • the DHCP response message may also be referred to as a DHCP response to the renewal of the message.
  • the first device is an ONU
  • the second device and the third device are an OLT as an example to describe a networking structure of a protection group based on an optical network system.
  • FIG. 3 shows a networking structure of a protection group.
  • the ONU #1 is connected to the OLT (1) and the OLT (2) through a beam splitter, for example, the beam splitter is an N:2 splitter. It should be understood that there may be multiple ONUs on the ONU side connected to the optical splitter, such as shown in FIG. ONU#1 ⁇ N.
  • the networking type of the protection group based on the optical network system includes type B single attribution, type B dual attribution, type C single attribution, type C dual attribution, type D single assignment, and type D dual assignment.
  • the dual-homing scenario is involved, that is, two OLT PON ports respectively connected to the primary port and the standby port of the ONU belong to different OLTs.
  • the ONU is connected to two different OLTs through the primary and secondary ports, as shown in Figure 3.
  • the embodiment of the present invention provides a method for quickly refreshing the DHCP snooping binding table and the MAC/IP binding table of the OLT on the switching path after the protection switching occurs, which can implement fast recovery of the end-to-end service.
  • FIG. 2 illustrates an optical network system-based communication method according to an embodiment of the present invention from the perspective of a first device (ONU or ONT), which is provided from the perspective of a third device (OLT) in conjunction with FIG. 4 in accordance with an embodiment of the present invention.
  • Communication method based on optical network system.
  • FIG. 4 is a schematic block diagram of an optical network system-based communication method 200, including a protection group including a first device and a DHCP device on a DHCP terminal side of a dynamic host configuration protocol, according to an embodiment of the present invention.
  • the second device and the third device on the server side, wherein the primary port of the first device is connected to the second device, and the standby port of the first device is connected to the third device, wherein the method 200 includes:
  • the third device receives, by the first device, a DHCP request message for requesting an IP address for the DHCP terminal, where the DHCP request message is after the first device is switched by the protection group, according to the identifier of the DHCP terminal.
  • the information generated by the DHCP terminal includes the identifier information, where the identifier information includes a media access control MAC address of the DHCP terminal;
  • the switching of the protection group refers to that the working port of the first device is switched from the primary port to the standby port. That is to say, after the first device detects that the primary port and the standby port are switched, it is determined that the protection group is switched.
  • the DHCP request message includes the MAC address of the DHCP terminal. It can be understood that the first device simulates that the DHCP terminal requests an IP address from the server.
  • the identifier information of the DHCP terminal further includes virtual local area network VLAN information of the DHCP terminal.
  • the third device forwards the DHCP request message to the DHCP server, and is based on The identification information is configured with binding information;
  • the binding information is, for example, a DHCP snooping binding table.
  • the third device creates a DHCP snooping binding table based on the identification information.
  • the newly created DHCP snooping binding table includes the MAC address and port information of the DHCP terminal. The alternate port) and other information.
  • the third device receives a DHCP response message sent by the DHCP server, including an IP address allocated for the DHCP terminal.
  • the DHCP server allocates an IP address to the DHCP terminal according to the DHCP request message, and sends a DHCP response message including the assigned IP address. It should be understood that the DHCP response message may further include information such as an IP address lease period.
  • the third device forwards the DHCP response message to the first device, and completes the binding information based on an IP address allocated for the DHCP terminal.
  • the binding information configured by the third device includes a DHCP snooping binding table, a MAC binding table, and an IP binding table.
  • the third device After receiving the DHCP response message, the third device forwards the DHCP response message to the first device, and based on the DHCP response message, completes the DHCP snooping binding table, and generates a MAC binding table and an IP binding table.
  • the improved DHCP snooping binding table further includes an IP address assigned to the DHCP terminal, and may also include IP address lease information.
  • the IP binding table includes an IP address assigned to the DHCP terminal.
  • the MAC binding table includes the MAC address of the DHCP terminal.
  • the DHCP request message is a DHCP Request
  • the DHCP response message is a DHCP Ack.
  • the DHCP request message is generated according to the identification information of the DHCP terminal, and the DHCP request message is sent to the DHCP server according to the working path after the switching.
  • the third device on the working path after the switching is caused to listen to the DHCP request message and the DHCP response.
  • the message generates the corresponding DHCP snooping binding table and the MAC/IP binding table, so that the end-to-end service can be executed normally after the protection switching.
  • the embodiment of the present invention can implement fast protection switching of the end-to-end service, thereby improving the reliability of the service transmission between the user terminal and the network side. .
  • the first device is used for access in an optical network system.
  • the optical network device of the user terminal (corresponding to the DHCP terminal in the embodiment of the present invention), for example, is placed at the user premises side for accessing a user terminal, such as a DHCP client.
  • the first device may be an optical network terminal ONT, or may be an optical network unit ONU, which is not limited in this embodiment of the present invention.
  • the second device is a central office device in the optical network system, for example, connected to the upper end (aggregation layer) switch by a network cable, and the second device is used to implement functions such as control and management of the ONU on the user side.
  • the second device is, for example, an optical line terminal OLT.
  • the optical network unit ONU is divided into an active optical network unit and a passive optical network unit.
  • Passive Optical Networks (“PON") are connected to the optical line termination OLT using a single fiber, and then the OLT is connected to the ONU.
  • ONU provides services such as data and IPTV (interactive network TV).
  • An optical network terminal (“ONT”) is a product in an xPON network access solution.
  • ONT is an ONU, which is an optical network terminal for a client.
  • an ONT should be part of an ONU.
  • the difference between the ONT and the ONU is that the ONT is an optical network terminal and is directly located at the user end.
  • the ONU is an optical network unit.
  • the ONU can access the xDSL. (adsl, vdsl) or gateway device of the Ethernet access port, and then access to the network terminal.
  • the third device is an OLT.
  • the first device is an optical network unit ONU or an optical network terminal ONT
  • the second device and the third device are optical line terminals OLT.
  • the second device and the third device may also be other routers.
  • the DHCP request message is generated according to the identification information of the DHCP terminal, and the DHCP request message is sent to the DHCP server according to the working path after the switching, corresponding to Receiving, by the working path after the switching, the DHCP response message sent by the DHCP server, including the assigned IP address, in the process, the third device on the working path after the switching is generated by listening to the DHCP request message and the DHCP response message.
  • Corresponding DHCP snooping binding table and MAC/IP binding table so that end-to-end services can be executed normally after protection switching.
  • the DHCP terminal needs to wait for the DHCP request message to be initiated.
  • the embodiment of the present invention can implement fast protection switching of the end-to-end service, thereby improving the reliability of the service transmission between the user terminal and the network side. . Therefore, the embodiment of the present invention provides a DHCP snooping binding table and a MAC/IP binding table of an OLT on a fast refresh switching path after a protection switching occurs. The method can achieve fast recovery of end-to-end services.
  • FIG. 5 is a schematic block diagram of an optical network system-based device 300 according to an embodiment of the present invention, where the optical network system includes a protection group including a device on the DHCP terminal side of the dynamic host configuration protocol and a DHCP server side.
  • the second device and the third device wherein the primary port of the device is connected to the second device, and the standby port of the device is connected to the third device, the device 300 includes:
  • the obtaining module 310 is configured to: when detecting that the protection group is switched, obtain the identifier information of the DHCP terminal, where the identifier information includes a media access control MAC address of the DHCP terminal;
  • the generating module 320 is configured to generate, according to the identifier information acquired by the acquiring module, a DHCP request message for requesting an IP address for the DHCP terminal, where the DHCP request message includes the identifier information;
  • the first sending module 330 is configured to send, by using the standby port, the DHCP request message generated by the generating module to the third device, so that the third device forwards the DHCP request message to the DHCP server;
  • the receiving module 340 is configured to receive a DHCP response message sent by the third device, where the DHCP response message is received by the third device from the DHCP server, and the DHCP response message includes an IP address that the DHCP server allocates for the DHCP terminal;
  • the second sending module 350 is configured to send, to the DHCP terminal, an IP address that the DHCP server receives for the DHCP server, so that the DHCP terminal performs service transmission with the DHCP server based on the alternate path where the third device is located.
  • the DHCP request message is generated according to the identification information of the DHCP terminal, and the DHCP request message is sent to the DHCP server according to the working path after the switching, corresponding to Receiving, by the working path after the switching, the DHCP response message sent by the DHCP server, including the assigned IP address, in the process, the third device on the working path after the switching is generated by listening to the DHCP request message and the DHCP response message.
  • Corresponding DHCP snooping binding table and MAC/IP binding table so that end-to-end services can be executed normally after protection switching.
  • the embodiment of the present invention can implement fast protection switching of the end-to-end service, thereby improving the reliability of the service transmission between the user terminal and the network side. .
  • the device is an optical network unit ONU or an optical network terminal ONT, and the second device and the third device are optical line terminals OLT.
  • the identifier information of the DHCP terminal further includes virtual local area network VLAN information of the DHCP terminal.
  • the DHCP request message is a DHCP Request
  • the DHCP response message is a DHCP Ack.
  • the device 300 may correspond to the first device in the optical network system-based communication method of the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the device 300 are respectively The corresponding processes of the respective methods in FIG. 2 to FIG. 4 are implemented, and are not described herein for brevity.
  • FIG. 6 shows an optical network system-based device 400 according to an embodiment of the present invention, where the optical network system includes a protection group including a first device on the DHCP terminal side of the dynamic host configuration protocol and a second device on the DHCP server side. And a device, wherein the primary port of the first device is connected to the second device, and the standby port of the first device is connected to the device, and the device 400 includes:
  • the first receiving module 410 is configured to receive, by the first device, a DHCP request message for requesting an IP address for the DHCP terminal, where the DHCP request message is after the first device is switched by the protection group, according to the DHCP terminal.
  • the identifier information generated by the DHCP terminal request includes the identifier information, where the identifier information includes a media access control MAC address of the DHCP terminal;
  • the first sending module 420 is configured to forward the DHCP request message received by the first receiving module to the DHCP server, and configure binding information based on the identifier information;
  • the second receiving module 430 is configured to receive a DHCP response message sent by the DHCP server, including an IP address allocated for the DHCP terminal;
  • the second sending module 440 is configured to forward the DHCP response message received by the second receiving module to the first device, and complete the binding information based on the IP address allocated for the DHCP terminal.
  • the DHCP request message is generated according to the identification information of the DHCP terminal, and the DHCP request message is sent to the DHCP server according to the working path after the switching.
  • the third device on the working path after the switching is caused to listen to the DHCP request message and the DHCP response.
  • the message generates the corresponding DHCP snooping binding table and the MAC/IP binding table, so that the end-to-end service can be executed normally after the protection switching.
  • the DHCP terminal needs to wait for the DHCP request message to be initiated, and the embodiment of the present invention can implement fast protection switching of the end-to-end service, thereby improving the user terminal and the network.
  • the first device is an optical network unit ONU or an optical network terminal ONT
  • the second device and the device are optical line terminals OLT.
  • the identifier information of the DHCP terminal further includes virtual local area network VLAN information of the DHCP terminal.
  • the binding information configured by the device includes a DHCP snooping binding table, a MAC binding table, and an IP binding table.
  • the DHCP request message is a DHCP Request
  • the DHCP response message is a DHCP Ack.
  • the device 400 may correspond to the third device in the optical network system-based communication method of the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the device 300 are respectively The corresponding processes of the respective methods in FIG. 2 to FIG. 4 are implemented, and are not described herein for brevity.
  • an embodiment of the present invention further provides an optical network system-based device 500, where the optical network system includes a protection group, where the protection group includes a device 500 on the DHCP terminal side of the dynamic host configuration protocol and a DHCP server side. a second device and a third device, wherein the primary port of the device 500 is connected to the second device, and the standby port of the device 500 is connected to the third device, where the device 500 includes a processor 510, a memory 520, and a bus system 530.
  • Receiver 540 and transmitter 550 are examples of the optical network system.
  • the processor 510, the memory 520, the receiver 540 and the transmitter 550 are connected by a bus system 530 for storing instructions for executing instructions stored in the memory 520 to control the receiver 540 to receive. Signal and control transmitter 550 to send a signal.
  • the processor 510 is configured to: when detecting that the protection group is switched, obtain the identifier information of the DHCP terminal, where the identifier information includes a media access control MAC address of the DHCP terminal, and generate, according to the identifier information, the The DHCP terminal requests a DHCP request message of an IP address, and the DHCP request message includes the identifier information.
  • the sender 550 is configured to send the DHCP request message to the third device by using the standby port, so that the third device sends the DHCP request message to the DHCP device.
  • the server forwards the DHCP request message;
  • the receiver 540 is configured to receive a DHCP response message sent by the third device, where the DHCP response message is received by the third device from the DHCP server, and the DHCP response message includes the DHCP server
  • the IP address assigned by the DHCP terminal is used by the sender 550 to send the IP address assigned by the DHCP server to the DHCP terminal, so that the DHCP terminal performs service transmission with the DHCP server based on the alternate path where the third device is located.
  • the DHCP request message is generated according to the identification information of the DHCP terminal, and the DHCP request message is sent to the DHCP server according to the working path after the switching.
  • the third device on the working path after the switching is caused to listen to the DHCP request message and the DHCP response.
  • the message generates the corresponding DHCP snooping binding table and the MAC/IP binding table, so that the end-to-end service can be executed normally after the protection switching.
  • the embodiment of the present invention can implement fast protection switching of the end-to-end service, thereby improving the reliability of the service transmission between the user terminal and the network side. .
  • the device 500 is an optical network unit ONU or an optical network terminal ONT, and the second device and the third device are both optical line terminals OLT.
  • the identifier information of the DHCP terminal further includes virtual local area network VLAN information of the DHCP terminal.
  • the processor 510 may be a central processing unit (“CPU"), and the processor 510 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 520 can include read only memory and random access memory and provides instructions and data to the processor 510. A portion of the memory 520 may also include a non-volatile random access memory. For example, the memory 520 can also store information of the device type.
  • the bus system 530 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 530 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 510 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 520, and the processor 510 reads the information in the memory 520 and combines it
  • the hardware completes the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the device 500 according to the embodiment of the present invention may correspond to the first device in the optical network system-based communication method of the embodiment of the present invention, and may correspond to the device 300 provided according to the embodiment of the present invention, and in the device 500
  • the above and other operations and/or functions of the respective modules are respectively implemented in order to implement the respective processes of the respective methods in FIG. 2 to FIG. 4, and are not described herein again for brevity.
  • an embodiment of the present invention provides an optical network system-based device 600, where the optical network system includes a protection group, where the protection group includes a first device on the DHCP terminal side of the dynamic host configuration protocol and a DHCP server side. a second device and device 600, wherein the primary port of the first device is connected to the second device, and the standby port of the first device is connected to the device 600.
  • the device 600 includes a processor 610, a memory 620, and a bus system 630.
  • Receiver 640 and transmitter 650 The processor 610, the memory 620, the receiver 640, and the transmitter 650 are connected by a bus system 630.
  • the memory 620 is configured to store instructions for executing the instructions stored in the memory 620 to control the receiver 640 to receive.
  • the receiver 640 is configured to receive, by the first device, a DHCP request message for requesting an IP address for the DHCP terminal, where the DHCP request message is sent by the first device after the protection group is switched, according to the DHCP terminal.
  • the identifier information is generated, the DHCP terminal request includes the identifier information, the identifier information includes a media access control MAC address of the DHCP terminal, and the transmitter 650 is configured to forward the DHCP request message to the DHCP server, and based on the identifier information.
  • the receiver 640 is configured to receive, by the DHCP server, a DHCP response message that includes an IP address assigned to the DHCP terminal, and the transmitter 650 is configured to forward the DHCP response message to the first device, and
  • the binding information is perfected for the IP address assigned by the DHCP terminal.
  • the DHCP request message is generated according to the identification information of the DHCP terminal, and the DHCP request message is sent to the DHCP server according to the working path after the switching.
  • the third device on the working path after the switching is caused to listen to the DHCP request message and the DHCP response.
  • the message generates the corresponding DHCP snooping binding table and the MAC/IP binding table, so that the end-to-end service can be executed normally after the protection switching.
  • the DHCP terminal needs to wait for the DHCP request message to be initiated, and the embodiment of the present invention can implement fast protection switching of the end-to-end service, thereby improving the user terminal and the network.
  • the first device is an optical network unit ONU or an optical network terminal ONT
  • the second device and the device 600 are optical line terminals OLT.
  • the identifier information of the DHCP terminal further includes virtual local area network VLAN information of the DHCP terminal.
  • the binding information configured by the device 600 includes a DHCP snooping binding table, a MAC binding table, and an IP binding table.
  • the processor 610 may be a central processing unit ("CPU"), and the processor 610 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 620 can include read only memory and random access memory and provides instructions and data to the processor 610. A portion of the memory 620 can also include a non-volatile random access memory. For example, the memory 620 can also store information of the device type.
  • the bus system 630 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 630 in the figure.
  • each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 610 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 620, and the processor 610 reads the information in the memory 620 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the device 600 according to the embodiment of the present invention may correspond to the third device in the optical network system-based communication method of the embodiment of the present invention, and may correspond to the device 400 provided according to the embodiment of the present invention, and the device 600
  • the above and other operations and/or functions of the respective modules are respectively implemented in order to implement the respective processes of the respective methods in FIG. 2 to FIG. 4, and are not described herein again for brevity.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the present invention
  • the technical solution in essence or the part contributing to the prior art or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making one
  • the computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

本发明实施例提供一种基于光网络系统的通信方法和设备,光网络系统包括保护组,保护组中的第一设备的主用端口连接保护组中的第二设备,第一设备的备用端口连接保护组中的第三设备,该方法包括:当第一设备检测到保护组发生倒换时,获取DHCP终端的标识信息;第一设备根据标识信息,生成用于为DHCP终端请求IP地址的DHCP请求消息;第一设备向第三设备发送DHCP请求消息,以便于第三设备向DHCP服务器转发DHCP请求消息;第一设备接收第三设备发送的DHCP响应消息,DHCP响应消息包括DHCP服务器为DHCP终端分配的IP地址;第一设备向DHCP终端发送DHCP服务器为其分配的IP地址。本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网络侧的业务传输的可靠性。

Description

基于光网络系统的通信方法与设备 技术领域
本发明实施例涉及通信领域,并且更具体地,涉及一种基于光网络系统的通信方法与设备。
背景技术
动态主机配置协议(Dynamic Host Configure Protocol,简称为“DHCP”)是TCP/IP协议簇中的一种,主要是用来给网络终端分配动态的IP地址,这些被分配的IP地址都是DHCP服务器预先保留的一个由多个IP地址组成的地址集,并且这些IP地址通常是一段连续的地址。当DHCP终端向DHCP服务器租用IP地址时,DHCP服务器会根据目前已经配置的IP地址,向该DHCP终端提供一个可供使用的IP地址和子网掩码,还会提供相关的租约时间。
当前技术中,通常采用基于光网络系统的保护组实现DHCP服务器与DHCP终端之间的可靠通信。图1示出了一种利用光网络系统保护组实现DHCP服务器与DHCP终端之间的通信的场景。如图1所示,该保护组包括DHCP终端侧的光网络单元(Optical Network Unit,简称为“ONU”)和网络侧的光线路终端(Optical Line Termination,简称为“OLT”)(图1中示出两个OLT),其中ONU的主用端口连接OLT1,ONU的备用端口连接OLT2,如图1中所示,OLT1和OLT2汇集到同一个网络侧设备(对应于DHCP服务器)。正常情况下,是在OLT1所在的路径(即主用路径)上传输业务,例如,DHCP终端向DHCP服务器租用IP地址时,DHCP终端生成DHCP Request并发送至ONU(该过程也可称之为DHCP终端拨号租用IP地址),该ONU通过主用端口将该DHCP Request发送至OLT1,再由OLT1将DHCP Request转发至DHCP服务器。DHCP服务器下发的包括IP地址的DHCP Ack通过OLT1发送至ONU,再由ONU转发至DHCP终端,DHCP终端基于服务器分配的IP地址可以访问网络。其中,OLT1上配置有DHCP snooping绑定表和IP/MAC绑定表,这些表能够保证DHCP终端与网络侧的业务通信,其中,DHCP snooping绑定表和IP/MAC绑定表是OLT1通过侦听DHCP Request与DHCP Ack生成的。当OLT1所在的线路发生故障,该保护组会 发生倒换,即ONU的工作端口由主用端口切换为备用端口,即倒换为利用OLT2所在的路径(即备用路径)实现DHCP终端与网络侧之间的业务传输。但是由于该DHCP终端的IP地址的租期一般比较长,该DHCP终端也感知不到保护组的倒换动作,该DHCP终端一般不会马上进行重新拨号以续租IP地址,因此,OLT2上是没有OLT1所配置的DHCP snooping绑定表和IP/MAC绑定表,导致DHCP终端与网络侧之间的业务不通。现有技术中,在发生倒换之后,一直等到DHCP终端进行重新拨号时,才在OLT2上生成对应的DHCP snooping绑定表和IP/MAC绑定表,才能实现DHCP终端与网络侧之间的业务恢复正常。
可知,现有技术会导致端到端业务倒换时间较长,会导致DHCP终端与网络侧之间的业务传输质量下降甚至中断。
发明内容
本发明实施例提供一种基于光网络系统的通信方法和设备,能够有效缩短端到端业务倒换时间。
第一方面,提供一种基于光网络系统的通信方法,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和第三设备,其中,该第一设备的主用端口连接该第二设备,该第一设备的备用端口连接该第三设备,其特征在于,该方法包括:
当该第一设备检测到该保护组发生倒换时,获取该DHCP终端的标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;
该第一设备根据该标识信息,生成用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息包括该标识信息;
该第一设备通过该备用端口,向该第三设备发送该DHCP请求消息,以便于该第三设备向该DHCP服务器转发该DHCP请求消息;
该第一设备接收该第三设备发送的DHCP响应消息,该DHCP响应消息为该第三设备从该DHCP服务器接收,且该DHCP响应消息包括该DHCP服务器为该DHCP终端分配的IP地址;
该第一设备向该DHCP终端发送该DHCP服务器为其分配的IP地址,以便于该DHCP终端基于该第三设备所在的备用路径与该DHCP服务器进行业务传输。
结合第一方面,在第一方面的一种可能实现的方式中,该第一设备为光网络单元ONU或光网络终端ONT,该第二设备与该第三设备均为光线路终端OLT。
结合第一方面以及上述实现方式,在第一方面的一种可能实现的方式中,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
结合第一方面以及上述实现方式,在第一方面的一种可能实现的方式中,该DHCP请求消息为DHCP Request,该DHCP响应消息为DHCP Ack。
第二方面提供一种基于光网络系统的通信方法,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和第三设备,其中,该第一设备的主用端口连接该第二设备,该第一设备的备用端口连接该第三设备,其特征在于,该方法包括:
该第三设备接收该第一设备发送的用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息是该第一设备在该保护组发生倒换之后,根据该DHCP终端的标识信息生成的,该DHCP终端请求包括该标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;
该第三设备向该DHCP服务器转发该DHCP请求消息,并基于该标识信息配置绑定信息;
该第三设备接收该DHCP服务器发送的包括为该DHCP终端分配的IP地址的DHCP响应消息;
该第三设备向该第一设备转发该DHCP响应消息,并基于为该DHCP终端分配的IP地址完善该绑定信息。
结合第二方面,在第二方面的一种可能实现的方式中,该第一设备为光网络单元ONU或光网络终端ONT,该第二设备与该第三设备均为光线路终端OLT。
结合第二方面以及上述实现方式,在第二方面的一种可能实现的方式中,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
结合第二方面以及上述实现方式,在第二方面的一种可能实现的方式中,该第三设备配置的绑定信息包括DHCP Snooping绑定表、MAC绑定表和IP绑定表。
结合第二方面以及上述实现方式,在第二方面的一种可能实现的方式中,该DHCP请求消息为DHCP Request,该DHCP响应消息为DHCP Ack。
第三方面提供了一种基于光网络系统的设备,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的该设备和DHCP服务器侧的第二设备和第三设备,其中,该设备的主用端口连接该第二设备,该设备的备用端口连接该第三设备,其特征在于,该设备包括:
获取模块,用于当检测到该保护组发生倒换时,获取该DHCP终端的标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;
生成模块,用于根据该获取模块获取的标识信息,生成用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息包括该标识信息;
第一发送模块,用于通过该备用端口,向该第三设备发送该生成模块生成的DHCP请求消息,以便于该第三设备向该DHCP服务器转发该DHCP请求消息;
接收模块,用于接收该第三设备发送的DHCP响应消息,该DHCP响应消息为该第三设备从该DHCP服务器接收,且该DHCP响应消息包括该DHCP服务器为该DHCP终端分配的IP地址;
第二发送模块,用于向该DHCP终端发送该接收模块接收的该DHCP服务器为其分配的IP地址,以便于该DHCP终端基于该第三设备所在的备用路径与该DHCP服务器进行业务传输。
结合第三方面,在第三方面的一种可能的实现方式中,该设备为光网络单元ONU或光网络终端ONT,该第二设备与该第三设备均为光线路终端OLT。
结合第三方面以及上述实现方式,在第三方面的一种可能的实现方式中,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
结合第三方面以及上述实现方式,在第三方面的第一种可能的实现方式中,该DHCP请求消息为DHCP Request,该DHCP响应消息为DHCP Ack。
第四方面提供了一种基于光网络系统的设备,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和设备,其中,该第一设备的主用端口连接该第二设备,该第一设备的备用端口连接该设备,其特征在于,该设备包括:
第一接收模块,用于接收该第一设备发送的用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息是该第一设备在该保护组发生倒换之后,根据该DHCP终端的标识信息生成的,该DHCP终端请求包括该标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;
第一发送模块,用于向该DHCP服务器转发该第一接收模块接收的DHCP请求消息,并基于该标识信息配置绑定信息;
第二接收模块,用于接收该DHCP服务器发送的包括为该DHCP终端分配的IP地址的DHCP响应消息;
第二发送模块,用于向该第一设备转发该第二接收模块接收的DHCP响应消息,并基于为该DHCP终端分配的IP地址完善该绑定信息。
结合第四方面,在第四方面的一种可能的实现方式中,该第一设备为光网络单元ONU或光网络终端ONT,该第二设备与该设备均为光线路终端OLT。
结合第四方面以及上述实现方式,在第四方面的一种可能的实现方式中,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
结合第四方面以及上述实现方式,在第四方面的一种可能的实现方式中,该设备配置的绑定信息包括DHCP Snooping绑定表、MAC绑定表和IP绑定表。
结合第四方面以及上述实现方式,在第四方面的一种可能的实现方式中,该DHCP请求消息为DHCP Request,该DHCP响应消息为DHCP Ack。
基于上述技术方案,在本发明实施例中,当DHCP终端侧的第一设备检测到保护组发生倒换之后,根据DHCP终端的标识信息生成DHCP请求消息,根据倒换之后的工作路径向DHCP服务器发送该DHCP请求消息,对应地通过倒换之后的工作路径接收DHCP服务器下发的包括分配的IP地址的DHCP响应消息,在这个过程中,使得倒换之后的工作路径上的第三设备通过侦听DHCP请求消息与DHCP响应消息生成对应的DHCP snooping绑定表和MAC/IP绑定表,从而实现了在保护倒换之后端到端业务也可以正常执行。相比于现有技术中,在保护倒换之后需要等待DHCP终端发起DHCP请求消息,本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网络侧的业务传输的可靠性。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1示出了本发明实施例的应用场景的示意图;
图2示出了根据本发明实施例提供的基于光网络系统的通信方法的流程图;
图3示出了本发明实施例的应用场景的另一示意图;
图4示出了根据本发明实施例提供的基于光网络系统的通信方法的另一流程图;
图5示出了根据本发明实施例提供的基于光网络系统的设备的示意性框图;
图6示出了根据本发明实施例提供的基于光网络系统的设备的另一示意性框图;
图7示出了根据本发明实施例提供的基于光网络系统的设备的再一示意性框图;
图8示出了根据本发明实施例提供的基于光网络系统的设备的再一示意性框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图2示出了一种基于光网络系统的通信方法100,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和第三设备,其中,该第一设备的主用端口连接该第二设备,该第一设备的备用端口连接该第三设备,该方法100包括:
S110,当该第一设备检测到该保护组发生倒换时,获取该DHCP终端的 标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;
应理解,保护组发生倒换指的是,第一设备的工作端口由主用端口切换为备用端口。也就是说,当第一设备检测到主用端口与备用端口发生切换之后,即确定保护组发生倒换。
可选地,在本发明实施例中,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
S120,该第一设备根据该标识信息,生成用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息包括该标识信息;
应理解,该DHCP请求消息包括DHCP终端的MAC地址。可以理解为,该第一设备模拟DHCP终端向服务器请求IP地址。
S130,该第一设备通过该备用端口,向该第三设备发送该DHCP请求消息,以便于该第三设备向该DHCP服务器转发该DHCP请求消息;
应理解,保护倒换之前,工作路径为主用路径,即主用端口和第二设备所在的路径,。保护倒换之后,工作路径切换为备用路径,即备用端口和第三设备所在的路径。在S130中,第一设备就是通过备用路径向服务器发送该DHCP请求消息。
还应理解,第三设备接收到该DHCP请求消息之后,向DHCP服务器转发该DHCP请求消息,并基于该DHCP请求消息中携带的DHCP终端的标识信息创建DHCP snooping绑定表。例如,刚创建的DHCP snooping绑定表包括DHCP终端的MAC地址、端口信息(指示该备用端口)等信息。
S140,该第一设备接收该第三设备发送的DHCP响应消息,该DHCP响应消息为该第三设备从该DHCP服务器接收到的,且该DHCP响应消息包括该DHCP服务器为该DHCP终端分配的IP地址;
应理解,DHCP服务器根据DHCP请求消息,为该DHCP终端分配IP地址,并下发包括分配的IP地址的DHCP响应消息,应理解,该DHCP响应消息中还可以包括IP地址租期等信息。该第三设备接收到该DHCP响应消息后,向该第一设备转发该DHCP响应消息,并基于该DHCP响应消息,完善DHCP snooping绑定表,并生成MAC绑定表和IP绑定表。完善之后的DHCP snooping绑定表还包括为该DHCP终端分配的IP地址,还可以包括IP地址租期信息。IP绑定表包括为该DHCP终端分配的IP地址。MAC绑定表包括该DHCP终端的MAC地址。
可选地,在本发明实施例中,该DHCP请求消息为DHCP Request,该DHCP响应消息为DHCP Ack。
S150,该第一设备向该DHCP终端发送该DHCP服务器为其分配的IP地址,以便于该DHCP终端基于该第三设备所在的备用路径与该DHCP服务器进行业务传输。
应理解,通过S130与S140的步骤,第三设备上配置了DHCP终端对应的DHCP snooping绑定表和MAC/IP绑定表,从而能够保证DHCP终端与网络侧的业务正常传输。此外,第三设备上配置的DHCP snooping绑定表和MAC/IP绑定表与保护组倒换之前第二设备上配置的DHCP snooping绑定表和MAC/IP绑定表是一致的,能够使得用户上网感知无差异,能够提高用户体验满意度。
因此,在本发明实施例中,当DHCP终端侧的第一设备检测到保护组发生倒换之后,根据DHCP终端的标识信息生成DHCP请求消息,根据倒换之后的工作路径向DHCP服务器发送该DHCP请求消息,对应地通过倒换之后的工作路径接收DHCP服务器下发的包括分配的IP地址的DHCP响应消息,在这个过程中,使得倒换之后的工作路径上的第三设备通过侦听DHCP请求消息与DHCP响应消息生成对应的DHCP snooping绑定表和MAC/IP绑定表,从而实现了在保护倒换之后端到端业务也可以正常执行。相比于现有技术中,在保护倒换之后需要等待DHCP终端发起DHCP请求消息,本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网络侧的业务传输的可靠性。
还应理解,在本发明实施例中,该第一设备为光网络系统中用于接入用户终端(对应于本发明实施例中的DHCP终端)的光网络设备,该第一设备例如放置在用户端驻地侧,用于接入用户终端,例如DHCP客户机。具体地,该第一设备可以为光网络终端ONT,或可以为光网络单元ONU,本发明实施例对此不作限定。还该第二设备为光网络系统中的局端设备,例如与上端(汇聚层)交换机用网线连接,该第二设备用于实现对用户端侧的ONU的控制、管理等功能。具体地,该第二设备例如为光线路终端OLT。
应理解,光网络单元ONU分为有源光网络单元和无源光网络单元。无源光网络(Passive Optical Networks,简称为“PON”)使用单光纤连接到光线路终端OLT,然后OLT连接到ONU。ONU提供数据、IPTV(交互式网 络电视)等业务。光网络终端(Optical network terminal,简称为“ONT”),是xPON网络接入方案中的产品。通常来说,ONT就是ONU,是一种用于用户端的光网络终端。严格地说,ONT应该属于ONU的一部分。ONT和ONU的区别在于ONT是光网络终端,直接位于用户端;而ONU是光网络单元,与用户端之间还可能有其它的网络,例如以太网,具体地,例如ONU下面可以接入xDSL(adsl,vdsl)或者以太网接入口的网关设备,之后再接入到网络终端。
上述对第二设备的描述同样适用于第三设备,例如第三设备为OLT。
可选地,在本发明实施例中,该第一设备为光网络单元ONU或光网络终端ONT,该第二设备与该第三设备均为光线路终端OLT。
应理解,该第二设备与第三设备也可以是其他路由器。
具体地,以图1所示场景为例,ONU检测到发生保护倒换之后,获取DHCP终端的标识信息,生成DHCP请求消息,从备用端口发送至OLT2;OLT2将该DHCP请求消息发送至DHCP服务器;DHCP服务器为该DHCP终端分配IP地址,并下发包括该IP地址的DHCP响应消息;OLT2将该DHCP响应消息下发至ONU,ONU将DHCP服务器分配的IP地址发送给DHCP终端,这样,DHCP终端接入网络,进行顺利通信了。在这个过程中,OLT2在接收到该DHCP响应消息后,会创建DHCP snooping绑定表,在接收到DHCP响应消息后,会完善DHCP snooping绑定表,并生成MAC/IP绑定表。
应理解,OLT2上生成的DHCP snooping绑定表和MAC/IP绑定表,记录了该DHCP终端的标识信息,例如DHCP终端的MAC地址、IP地址,还记录了端口信息,即ONU的备用端口的信息等。还应理解,OLT2上配置的DHCP snooping绑定表和MAC/IP绑定表与保护倒换之前在OLT1上配置的DHCP snooping绑定表和MAC/IP绑定表是一致的,这样能够保证倒换之后的业务与倒换之前的一致,使得用户的上网感知无差异。
可选地,在本发明实施例中,该DHCP请求消息也可称之为DHCP续租报文,对应地,该DHCP响应消息也可称之为DHCP回应续租报文。
下文以第一设备为ONU,第二设备与第三设备为OLT为例,描述基于光网络系统的保护组的组网架构,图3示出了一种保护组的组网结构。ONU#1与OLT(1)和OLT(2)通过分光器连接,例如该分光器为N:2的分光器。应理解,ONU侧可以有多个的ONU与分光器连接,例如图3中所示的 ONU#1~N。
应理解,基于光网络系统的保护组的组网类型包括类型B单归属、类型B双归属、类型C单归属、类型C双归属、类型D单归属和类型D双归属。在本发明实施例中只涉及双归属的场景,即分别与ONU的主用端口与备用端口连接的两个OLT PON口属于不同的两个OLT。换句话说,ONU通过主、备端口与两个不同的OLT连接,如图3所示。
因此,本发明实施例提出一种在发生保护倒换之后快速刷新倒换路径上的OLT的DHCP snooping绑定表与MAC/IP绑定表的方法,能够实现端到端业务的快速恢复。
图2从第一设备(ONU或ONT)的角度描述了根据本发明实施例提供的基于光网络系统的通信方法,下面结合图4从第三设备(OLT)的角度描述根据本发明实施例提供的基于光网络系统的通信方法。
图4示出了根据本发明实施例提供的基于光网络系统的通信方法200的示意性框图,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和第三设备,其中,该第一设备的主用端口连接该第二设备,该第一设备的备用端口连接该第三设备,其特征在于,该方法200包括:
S210,该第三设备接收该第一设备发送的用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息是该第一设备在该保护组发生倒换之后,根据该DHCP终端的标识信息生成的,该DHCP终端请求包括该标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;
具体地,第一设备在保护组发生倒换之后,根据该DHCP终端的标识信息生成DHCP请求消息的过程详见上述S110中的描述。
应理解,保护组发生倒换指的是,第一设备的工作端口由主用端口切换为备用端口。也就是说,当第一设备检测到主用端口与备用端口发生切换之后,即确定保护组发生倒换。
应理解,该DHCP请求消息包括DHCP终端的MAC地址。可以理解为,该第一设备模拟DHCP终端向服务器请求IP地址。
可选地,在本发明实施例中,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
S220,该第三设备向该DHCP服务器转发该DHCP请求消息,并基于 该标识信息配置绑定信息;
该绑定信息例如为DHCP snooping绑定表,具体地,该第三设备基于该标识信息,创建DHCP snooping绑定表,刚创建的DHCP snooping绑定表包括DHCP终端的MAC地址、端口信息(指示该备用端口)等信息。
S230,该第三设备接收该DHCP服务器发送的包括为该DHCP终端分配的IP地址的DHCP响应消息;
应理解,DHCP服务器根据DHCP请求消息,为该DHCP终端分配IP地址,并下发包括分配的IP地址的DHCP响应消息,应理解,该DHCP响应消息中还可以包括IP地址租期等信息。
S240,该第三设备向该第一设备转发该DHCP响应消息,并基于为该DHCP终端分配的IP地址完善该绑定信息。
可选地,在本发明实施例中,该第三设备配置的绑定信息包括DHCP Snooping绑定表、MAC绑定表和IP绑定表。
该第三设备接收到该DHCP响应消息后,向该第一设备转发该DHCP响应消息,并基于该DHCP响应消息,完善DHCP snooping绑定表,并生成MAC绑定表和IP绑定表。完善之后的DHCP snooping绑定表还包括为该DHCP终端分配的IP地址,还可以包括IP地址租期信息。IP绑定表包括为该DHCP终端分配的IP地址。MAC绑定表包括该DHCP终端的MAC地址。
可选地,在本发明实施例中,该DHCP请求消息为DHCP Request,该DHCP响应消息为DHCP Ack。
因此,在本发明实施例中,当DHCP终端侧的第一设备检测到保护组发生倒换之后,根据DHCP终端的标识信息生成DHCP请求消息,根据倒换之后的工作路径向DHCP服务器发送该DHCP请求消息,对应地通过倒换之后的工作路径接收DHCP服务器下发的包括分配的IP地址的DHCP响应消息,在这个过程中,使得倒换之后的工作路径上的第三设备通过侦听DHCP请求消息与DHCP响应消息生成对应的DHCP snooping绑定表和MAC/IP绑定表,从而实现了在保护倒换之后端到端业务也可以正常执行。相比于现有技术中,在保护倒换之后需要等待DHCP终端发起DHCP请求消息,本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网络侧的业务传输的可靠性。
还应理解,在本发明实施例中,该第一设备为光网络系统中用于接入用 户终端(对应于本发明实施例中的DHCP终端)的光网络设备,该第一设备例如放置在用户端驻地侧,用于接入用户终端,例如DHCP客户机。具体地,该第一设备可以为光网络终端ONT,或可以为光网络单元ONU,本发明实施例对此不作限定。还应理解,该第二设备为光网络系统中的局端设备,例如与上端(汇聚层)交换机用网线连接,该第二设备用于实现对用户端侧的ONU的控制、管理等功能。具体地,该第二设备例如为光线路终端OLT。
应理解,光网络单元ONU分为有源光网络单元和无源光网络单元。无源光网络(Passive Optical Networks,简称为“PON”)使用单光纤连接到光线路终端OLT,然后OLT连接到ONU。ONU提供数据、IPTV(交互式网络电视)等业务。光网络终端(Optical network terminal,简称为“ONT”),是xPON网络接入方案中的产品。通常来说,ONT就是ONU,是一种用于用户端的光网络终端。严格地说,ONT应该属于ONU的一部分。ONT和ONU的区别在于ONT是光网络终端,直接位于用户端;而ONU是光网络单元,与用户端之间还可能有其它的网络,例如以太网,具体地,例如ONU下面可以接入xDSL(adsl,vdsl)或者以太网接入口的网关设备,之后再接入到网络终端。
上述对第二设备的描述同样适用于第三设备,例如第三设备为OLT。
可选地,在本发明实施例中,该第一设备为光网络单元ONU或光网络终端ONT,该第二设备与该第三设备均为光线路终端OLT。
应理解,该第二设备与第三设备也可以是其他路由器。
在本发明实施例中,当DHCP终端侧的第一设备检测到保护组发生倒换之后,根据DHCP终端的标识信息生成DHCP请求消息,根据倒换之后的工作路径向DHCP服务器发送该DHCP请求消息,对应地通过倒换之后的工作路径接收DHCP服务器下发的包括分配的IP地址的DHCP响应消息,在这个过程中,使得倒换之后的工作路径上的第三设备通过侦听DHCP请求消息与DHCP响应消息生成对应的DHCP snooping绑定表和MAC/IP绑定表,从而实现了在保护倒换之后端到端业务也可以正常执行。相比于现有技术中,在保护倒换之后需要等待DHCP终端发起DHCP请求消息,本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网络侧的业务传输的可靠性。因此,本发明实施例提出一种在发生保护倒换之后快速刷新倒换路径上的OLT的DHCP snooping绑定表与MAC/IP绑定表的 方法,能够实现端到端业务的快速恢复。
图5示出了本发明实施例提供的基于光网络系统的设备300的示意性框图,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的该设备和DHCP服务器侧的第二设备和第三设备,其中,该设备的主用端口连接该第二设备,该设备的备用端口连接该第三设备,该设备300包括:
获取模块310,用于当检测到该保护组发生倒换时,获取该DHCP终端的标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;
生成模块320,用于根据该获取模块获取的标识信息,生成用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息包括该标识信息;
第一发送模块330,用于通过该备用端口,向该第三设备发送该生成模块生成的DHCP请求消息,以便于该第三设备向该DHCP服务器转发该DHCP请求消息;
接收模块340,用于接收该第三设备发送的DHCP响应消息,该DHCP响应消息为该第三设备从该DHCP服务器接收,且该DHCP响应消息包括该DHCP服务器为该DHCP终端分配的IP地址;
第二发送模块350,用于向该DHCP终端发送该接收模块接收的该DHCP服务器为其分配的IP地址,以便于该DHCP终端基于该第三设备所在的备用路径与该DHCP服务器进行业务传输。
因此,在本发明实施例中,当DHCP终端侧的设备检测到保护组发生倒换之后,根据DHCP终端的标识信息生成DHCP请求消息,根据倒换之后的工作路径向DHCP服务器发送该DHCP请求消息,对应地通过倒换之后的工作路径接收DHCP服务器下发的包括分配的IP地址的DHCP响应消息,在这个过程中,使得倒换之后的工作路径上的第三设备通过侦听DHCP请求消息与DHCP响应消息生成对应的DHCP snooping绑定表和MAC/IP绑定表,从而实现了在保护倒换之后端到端业务也可以正常执行。相比于现有技术中,在保护倒换之后需要等待DHCP终端发起DHCP请求消息,本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网络侧的业务传输的可靠性。
可选地,在本发明实施例中,该设备为光网络单元ONU或光网络终端ONT,该第二设备与该第三设备均为光线路终端OLT。
可选地,在本发明实施例中,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
可选地,在本发明实施例中,该DHCP请求消息为DHCP Request,该DHCP响应消息为DHCP Ack。
应理解,根据本发明实施例的设备300可对应于本发明实施例的基于光网络系统的通信方法中的第一设备,并且设备300中的各个模块的上述和其它操作和/或功能分别为了实现图2至图4中的各个方法的相应流程,为了简洁,在此不再赘述。
图6示出了本发明实施例提供的基于光网络系统的设备400,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和设备,其中,该第一设备的主用端口连接该第二设备,该第一设备的备用端口连接该设备,该设备400包括:
第一接收模块410,用于接收该第一设备发送的用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息是该第一设备在该保护组发生倒换之后,根据该DHCP终端的标识信息生成的,该DHCP终端请求包括该标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;
第一发送模块420,用于向该DHCP服务器转发该第一接收模块接收的DHCP请求消息,并基于该标识信息配置绑定信息;
第二接收模块430,用于接收该DHCP服务器发送的包括为该DHCP终端分配的IP地址的DHCP响应消息;
第二发送模块440,用于向该第一设备转发该第二接收模块接收的DHCP响应消息,并基于为该DHCP终端分配的IP地址完善该绑定信息。
因此,在本发明实施例中,当DHCP终端侧的第一设备检测到保护组发生倒换之后,根据DHCP终端的标识信息生成DHCP请求消息,根据倒换之后的工作路径向DHCP服务器发送该DHCP请求消息,对应地通过倒换之后的工作路径接收DHCP服务器下发的包括分配的IP地址的DHCP响应消息,在这个过程中,使得倒换之后的工作路径上的第三设备通过侦听DHCP请求消息与DHCP响应消息生成对应的DHCP snooping绑定表和MAC/IP绑定表,从而实现了在保护倒换之后端到端业务也可以正常执行。相比于现有技术中,在保护倒换之后需要等待DHCP终端发起DHCP请求消息,本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网 络侧的业务传输的可靠性。
可选地,在本发明实施例中,该第一设备为光网络单元ONU或光网络终端ONT,该第二设备与该设备均为光线路终端OLT。
可选地,在本发明实施例中,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
可选地,在本发明实施例中,该设备配置的绑定信息包括DHCP Snooping绑定表、MAC绑定表和IP绑定表。
可选地,在本发明实施例中,该DHCP请求消息为DHCP Request,该DHCP响应消息为DHCP Ack。
应理解,根据本发明实施例的设备400可对应于本发明实施例的基于光网络系统的通信方法中的第三设备,并且设备300中的各个模块的上述和其它操作和/或功能分别为了实现图2至图4中的各个方法的相应流程,为了简洁,在此不再赘述。
如图7所示,本发明实施例还提供了一种基于光网络系统的设备500,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的设备500和DHCP服务器侧的第二设备和第三设备,其中,该设备500的主用端口连接该第二设备,该设备500的备用端口连接该第三设备,该设备500包括处理器510、存储器520、总线系统530、接收器540和发送器550。其中,处理器510、存储器520、接收器540和发送器550通过总线系统530相连,该存储器520用于存储指令,该处理器510用于执行该存储器520存储的指令,以控制接收器540接收信号,并控制发送器550发送信号。其中,处理器510用于,当检测到该保护组发生倒换时,获取该DHCP终端的标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;根据该标识信息,生成用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息包括该标识信息;发送器550用于,通过该备用端口,向该第三设备发送该DHCP请求消息,以便于该第三设备向该DHCP服务器转发该DHCP请求消息;接收器540用于,接收该第三设备发送的DHCP响应消息,该DHCP响应消息为该第三设备从该DHCP服务器接收,且该DHCP响应消息包括该DHCP服务器为该DHCP终端分配的IP地址;发送器550用于,向该DHCP终端发送该DHCP服务器为其分配的IP地址,以便于该DHCP终端基于该第三设备所在的备用路径与该DHCP服务器进行业务传输。
因此,在本发明实施例中,当DHCP终端侧的第一设备检测到保护组发生倒换之后,根据DHCP终端的标识信息生成DHCP请求消息,根据倒换之后的工作路径向DHCP服务器发送该DHCP请求消息,对应地通过倒换之后的工作路径接收DHCP服务器下发的包括分配的IP地址的DHCP响应消息,在这个过程中,使得倒换之后的工作路径上的第三设备通过侦听DHCP请求消息与DHCP响应消息生成对应的DHCP snooping绑定表和MAC/IP绑定表,从而实现了在保护倒换之后端到端业务也可以正常执行。相比于现有技术中,在保护倒换之后需要等待DHCP终端发起DHCP请求消息,本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网络侧的业务传输的可靠性。
可选地,作为一个实施例,该设备500为光网络单元ONU或光网络终端ONT,该第二设备与该第三设备均为光线路终端OLT。
可选地,作为一个实施例,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
应理解,在本发明实施例中,该处理器510可以是中央处理单元(Central Processing Unit,简称为“CPU”),该处理器510还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该存储器520可以包括只读存储器和随机存取存储器,并向处理器510提供指令和数据。存储器520的一部分还可以包括非易失性随机存取存储器。例如,存储器520还可以存储设备类型的信息。
该总线系统530除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统530。
在实现过程中,上述方法的各步骤可以通过处理器510中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器520,处理器510读取存储器520中的信息,结合其 硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
应理解,根据本发明实施例的设备500可对应于本发明实施例的基于光网络系统的通信方法中的第一设备,以及可以对应于根据本发明实施例提供的设备300,并且设备500中的各个模块的上述和其它操作和/或功能分别为了实现图2至图4中的各个方法的相应流程,为了简洁,在此不再赘述。
如图8所示,本发明实施例提供了一种基于光网络系统的设备600,该光网络系统包括保护组,该保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和设备600,其中,该第一设备的主用端口连接该第二设备,该第一设备的备用端口连接该设备600,该设备600包括处理器610、存储器620、总线系统630、接收器640和发送器650。其中,处理器610、存储器620、接收器640和发送器650通过总线系统630相连,该存储器620用于存储指令,该处理器610用于执行该存储器620存储的指令,以控制接收器640接收信号,并控制发送器650发送信号。其中,接收器640用于,接收该第一设备发送的用于为该DHCP终端请求IP地址的DHCP请求消息,该DHCP请求消息是该第一设备在该保护组发生倒换之后,根据该DHCP终端的标识信息生成的,该DHCP终端请求包括该标识信息,该标识信息包括该DHCP终端的介质访问控制MAC地址;发送器650用于,向该DHCP服务器转发该DHCP请求消息,并基于该标识信息配置绑定信息;接收器640用于,接收该DHCP服务器发送的包括为该DHCP终端分配的IP地址的DHCP响应消息;发送器650用于,向该第一设备转发该DHCP响应消息,并基于为该DHCP终端分配的IP地址完善该绑定信息。
因此,在本发明实施例中,当DHCP终端侧的第一设备检测到保护组发生倒换之后,根据DHCP终端的标识信息生成DHCP请求消息,根据倒换之后的工作路径向DHCP服务器发送该DHCP请求消息,对应地通过倒换之后的工作路径接收DHCP服务器下发的包括分配的IP地址的DHCP响应消息,在这个过程中,使得倒换之后的工作路径上的第三设备通过侦听DHCP请求消息与DHCP响应消息生成对应的DHCP snooping绑定表和MAC/IP绑定表,从而实现了在保护倒换之后端到端业务也可以正常执行。相比于现有技术中,在保护倒换之后需要等待DHCP终端发起DHCP请求消息,本发明实施例能够实现端到端业务的快速保护倒换,从而能够提高用户终端与网 络侧的业务传输的可靠性。
可选地,作为一个实施例,该第一设备为光网络单元ONU或光网络终端ONT,该第二设备与该设备600均为光线路终端OLT。
可选地,作为一个实施例,该DHCP终端的标识信息还包括该DHCP终端的虚拟局域网VLAN信息。
可选地,作为一个实施例,该设备600配置的绑定信息包括DHCP Snooping绑定表、MAC绑定表和IP绑定表。
应理解,在本发明实施例中,该处理器610可以是中央处理单元(Central Processing Unit,简称为“CPU”),该处理器610还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该存储器620可以包括只读存储器和随机存取存储器,并向处理器610提供指令和数据。存储器620的一部分还可以包括非易失性随机存取存储器。例如,存储器620还可以存储设备类型的信息。
该总线系统630除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统630。
在实现过程中,上述方法的各步骤可以通过处理器610中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器620,处理器610读取存储器620中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
应理解,根据本发明实施例的设备600可对应于本发明实施例的基于光网络系统的通信方法中的第三设备,以及可以对应于根据本发明实施例提供的设备400,并且设备600中的各个模块的上述和其它操作和/或功能分别为了实现图2至图4中的各个方法的相应流程,为了简洁,在此不再赘述。
还应理解,本文中涉及的第一、第二、第三、第四以及各种数字编号仅为描述方便进行的区分,并不用来限制本发明实施例的范围。
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明 的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (14)

  1. 一种基于光网络系统的通信方法,所述光网络系统包括保护组,所述保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和第三设备,其中,所述第一设备的主用端口连接所述第二设备,所述第一设备的备用端口连接所述第三设备,其特征在于,所述方法包括:
    当所述第一设备检测到所述保护组发生倒换时,获取所述DHCP终端的标识信息,所述标识信息包括所述DHCP终端的介质访问控制MAC地址;
    所述第一设备根据所述标识信息,生成用于为所述DHCP终端请求IP地址的DHCP请求消息,所述DHCP请求消息包括所述标识信息;
    所述第一设备通过所述备用端口,向所述第三设备发送所述DHCP请求消息,以便于所述第三设备向所述DHCP服务器转发所述DHCP请求消息;
    所述第一设备接收所述第三设备发送的DHCP响应消息,所述DHCP响应消息为所述第三设备从所述DHCP服务器接收,且所述DHCP响应消息包括所述DHCP服务器为所述DHCP终端分配的IP地址;
    所述第一设备向所述DHCP终端发送所述DHCP服务器为其分配的IP地址,以便于所述DHCP终端基于所述第三设备所在的备用路径与所述DHCP服务器进行业务传输。
  2. 根据权利要求1所述的方法,其特征在于,所述第一设备为光网络单元ONU或光网络终端ONT,所述第二设备与所述第三设备均为光线路终端OLT。
  3. 根据权利要求1或2所述的方法,其特征在于,所述DHCP终端的标识信息还包括所述DHCP终端的虚拟局域网VLAN信息。
  4. 一种基于光网络系统的通信方法,所述光网络系统包括保护组,所述保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和第三设备,其中,所述第一设备的主用端口连接所述第二设备,所述第一设备的备用端口连接所述第三设备,其特征在于,所述方法包括:
    所述第三设备接收所述第一设备发送的用于为所述DHCP终端请求IP地址的DHCP请求消息,所述DHCP请求消息是所述第一设备在所述保护组发生倒换之后,根据所述DHCP终端的标识信息生成的,所述DHCP终 端请求包括所述标识信息,所述标识信息包括所述DHCP终端的介质访问控制MAC地址;
    所述第三设备向所述DHCP服务器转发所述DHCP请求消息,并基于所述标识信息配置绑定信息;
    所述第三设备接收所述DHCP服务器发送的包括为所述DHCP终端分配的IP地址的DHCP响应消息;
    所述第三设备向所述第一设备转发所述DHCP响应消息,并基于为所述DHCP终端分配的IP地址完善所述绑定信息。
  5. 根据权利要求4所述的方法,其特征在于,所述第一设备为光网络单元ONU或光网络终端ONT,所述第二设备与所述第三设备均为光线路终端OLT。
  6. 根据权利要求4或5所述的方法,其特征在于,所述DHCP终端的标识信息还包括所述DHCP终端的虚拟局域网VLAN信息。
  7. 根据权利要求4至6中任一项所述的方法,其特征在于,所述第三设备配置的绑定信息包括DHCP Snooping绑定表、MAC绑定表和IP绑定表。
  8. 一种基于光网络系统的设备,所述光网络系统包括保护组,所述保护组包括动态主机配置协议DHCP终端侧的所述设备和DHCP服务器侧的第二设备和第三设备,其中,所述设备的主用端口连接所述第二设备,所述设备的备用端口连接所述第三设备,其特征在于,所述设备包括:
    获取模块,用于当检测到所述保护组发生倒换时,获取所述DHCP终端的标识信息,所述标识信息包括所述DHCP终端的介质访问控制MAC地址;
    生成模块,用于根据所述获取模块获取的标识信息,生成用于为所述DHCP终端请求IP地址的DHCP请求消息,所述DHCP请求消息包括所述标识信息;
    第一发送模块,用于通过所述备用端口,向所述第三设备发送所述生成模块生成的DHCP请求消息,以便于所述第三设备向所述DHCP服务器转发所述DHCP请求消息;
    接收模块,用于接收所述第三设备发送的DHCP响应消息,所述DHCP响应消息为所述第三设备从所述DHCP服务器接收,且所述DHCP响应消息包括所述DHCP服务器为所述DHCP终端分配的IP地址;
    第二发送模块,用于向所述DHCP终端发送所述接收模块接收的所述 DHCP服务器为其分配的IP地址,以便于所述DHCP终端基于所述第三设备所在的备用路径与所述DHCP服务器进行业务传输。
  9. 根据权利要求8所述的设备,其特征在于,所述设备为光网络单元ONU或光网络终端ONT,所述第二设备与所述第三设备均为光线路终端OLT。
  10. 根据权利要求8或9所述的设备,其特征在于,所述DHCP终端的标识信息还包括所述DHCP终端的虚拟局域网VLAN信息。
  11. 一种基于光网络系统的设备,所述光网络系统包括保护组,所述保护组包括动态主机配置协议DHCP终端侧的第一设备和DHCP服务器侧的第二设备和设备,其中,所述第一设备的主用端口连接所述第二设备,所述第一设备的备用端口连接所述设备,其特征在于,所述设备包括:
    第一接收模块,用于接收所述第一设备发送的用于为所述DHCP终端请求IP地址的DHCP请求消息,所述DHCP请求消息是所述第一设备在所述保护组发生倒换之后,根据所述DHCP终端的标识信息生成的,所述DHCP终端请求包括所述标识信息,所述标识信息包括所述DHCP终端的介质访问控制MAC地址;
    第一发送模块,用于向所述DHCP服务器转发所述第一接收模块接收的DHCP请求消息,并基于所述标识信息配置绑定信息;
    第二接收模块,用于接收所述DHCP服务器发送的包括为所述DHCP终端分配的IP地址的DHCP响应消息;
    第二发送模块,用于向所述第一设备转发所述第二接收模块接收的DHCP响应消息,并基于为所述DHCP终端分配的IP地址完善所述绑定信息。
  12. 根据权利要求11所述的设备,其特征在于,所述第一设备为光网络单元ONU或光网络终端ONT,所述第二设备与所述设备均为光线路终端OLT。
  13. 根据权利要求11或12所述的设备,其特征在于,所述DHCP终端的标识信息还包括所述DHCP终端的虚拟局域网VLAN信息。
  14. 根据权利要求11至13中任一项所述的设备,其特征在于,所述设备配置的绑定信息包括DHCP Snooping绑定表、MAC绑定表和IP绑定表。
PCT/CN2015/089548 2015-09-14 2015-09-14 基于光网络系统的通信方法与设备 WO2017045106A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2015/089548 WO2017045106A1 (zh) 2015-09-14 2015-09-14 基于光网络系统的通信方法与设备
CN201580081190.7A CN107710634B (zh) 2015-09-14 2015-09-14 基于光网络系统的通信方法与设备
JP2018513515A JP6505319B2 (ja) 2015-09-14 2015-09-14 光ネットワークシステムに基づく通信方法およびデバイス
EP15903797.7A EP3337046B1 (en) 2015-09-14 2015-09-14 Communication method and device based on optical network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/089548 WO2017045106A1 (zh) 2015-09-14 2015-09-14 基于光网络系统的通信方法与设备

Publications (1)

Publication Number Publication Date
WO2017045106A1 true WO2017045106A1 (zh) 2017-03-23

Family

ID=58288279

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089548 WO2017045106A1 (zh) 2015-09-14 2015-09-14 基于光网络系统的通信方法与设备

Country Status (4)

Country Link
EP (1) EP3337046B1 (zh)
JP (1) JP6505319B2 (zh)
CN (1) CN107710634B (zh)
WO (1) WO2017045106A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160112349A1 (en) * 2014-10-16 2016-04-21 Electronics And Telecommunications Research Institute Method for providing protection switching service in virtual tenant network and controller therefor
CN117098018A (zh) * 2023-10-19 2023-11-21 微网优联科技(成都)有限公司 用于全光产品的网络模式自适应切换控制方法及系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995877B (zh) * 2019-11-12 2022-08-16 锐捷网络股份有限公司 自动更新ip地址的方法、窥探设备和dhcp服务器
CN115297091B (zh) * 2022-08-03 2024-03-12 国核自仪系统工程有限公司 Ip地址管理方法及ip地址管理系统
CN116781494B (zh) * 2023-08-17 2024-03-26 天津南大通用数据技术股份有限公司 一种基于现有网络设备的主备倒换判决方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050074238A1 (en) * 2003-10-02 2005-04-07 Sung Jung Sik Apparatus and method for supporting quality of service in Ethernet passive optical network system
CN102480323A (zh) * 2010-11-25 2012-05-30 中兴通讯股份有限公司 一种实现olt异地容灾的系统和方法
CN103731282A (zh) * 2012-10-10 2014-04-16 中兴通讯股份有限公司 无源光网络中实现业务快速切换的方法及系统及相关设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100584342B1 (ko) * 2003-07-30 2006-05-26 삼성전자주식회사 이더넷 수동 광 가입자망에서 ip 주소 할당 방법
CN101834668A (zh) * 2010-05-25 2010-09-15 中兴通讯股份有限公司 无源光网络中实现线路倒换后快速业务恢复的方法及系统
WO2012042191A1 (en) * 2010-09-28 2012-04-05 British Telecommunications Public Limited Company Communications network
EP2744155A4 (en) * 2011-09-05 2014-11-12 Huawei Tech Co Ltd DATA COMMUNICATION METHOD IN AN OPTICAL NETWORK SYSTEM AND OPTICAL NETWORK UNIT AND SYSTEM

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050074238A1 (en) * 2003-10-02 2005-04-07 Sung Jung Sik Apparatus and method for supporting quality of service in Ethernet passive optical network system
CN102480323A (zh) * 2010-11-25 2012-05-30 中兴通讯股份有限公司 一种实现olt异地容灾的系统和方法
CN103731282A (zh) * 2012-10-10 2014-04-16 中兴通讯股份有限公司 无源光网络中实现业务快速切换的方法及系统及相关设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160112349A1 (en) * 2014-10-16 2016-04-21 Electronics And Telecommunications Research Institute Method for providing protection switching service in virtual tenant network and controller therefor
US9935900B2 (en) * 2014-10-16 2018-04-03 Electronics And Telecommunications Research Institute Method for providing protection switching service in virtual tenant network and controller therefor
CN117098018A (zh) * 2023-10-19 2023-11-21 微网优联科技(成都)有限公司 用于全光产品的网络模式自适应切换控制方法及系统
CN117098018B (zh) * 2023-10-19 2024-01-02 微网优联科技(成都)有限公司 用于全光产品的网络模式自适应切换控制方法及系统

Also Published As

Publication number Publication date
EP3337046B1 (en) 2021-05-19
CN107710634A (zh) 2018-02-16
EP3337046A4 (en) 2018-07-11
EP3337046A1 (en) 2018-06-20
JP2018526941A (ja) 2018-09-13
JP6505319B2 (ja) 2019-04-24
CN107710634B (zh) 2019-11-29

Similar Documents

Publication Publication Date Title
US11665134B2 (en) Message processing method, access controller, and network node
US10122679B2 (en) Method, relay agent, and system for acquiring internet protocol address in network
WO2017045106A1 (zh) 基于光网络系统的通信方法与设备
EP2169877B1 (en) Processing method and device for qinq termination configuration
US11405314B2 (en) Packet processing method and apparatus
US20220060344A1 (en) Method for indicating multicast forwarding entry and device
US9113031B2 (en) Call control for conferencing calls
US11265244B2 (en) Data transmission method, PNF SDN controller, VNF SDN controller, and data transmission system
WO2012109849A1 (zh) Mac地址分配方法和设备
US10225091B2 (en) Method for implementing point-to-multipoint multicast, network node, and system
WO2020238564A1 (zh) 一种流量处理方法及相关设备、建立转发表的方法及装置、存储介质
US20210119814A1 (en) Data multicast implementation method, apparatus, and system
US20130086259A1 (en) Method for acquiring an ip address and network access device
EP4277211A1 (en) Interface management method for accessed user equipment, and accessed user equipment
CN113973101A (zh) 一种表项信息处理方法及装置
EP4199430A1 (en) Access control method and apparatus
US9985795B2 (en) Method and apparatus for optical network unit ONU overall rate limiting
CN115051970A (zh) 一种控制用户上线的方法、装置、转发面网元及介质

Legal Events

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

Ref document number: 15903797

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2018513515

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2015903797

Country of ref document: EP