WO2019019918A1 - Method for establishing control signalling channel in ptn, ptn netwok element and storage medium - Google Patents

Method for establishing control signalling channel in ptn, ptn netwok element and storage medium Download PDF

Info

Publication number
WO2019019918A1
WO2019019918A1 PCT/CN2018/095262 CN2018095262W WO2019019918A1 WO 2019019918 A1 WO2019019918 A1 WO 2019019918A1 CN 2018095262 W CN2018095262 W CN 2018095262W WO 2019019918 A1 WO2019019918 A1 WO 2019019918A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
dhcp
message
domain controller
sent
Prior art date
Application number
PCT/CN2018/095262
Other languages
French (fr)
Chinese (zh)
Inventor
王敏学
程伟强
Original Assignee
***通信有限公司研究院
***通信集团有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ***通信有限公司研究院, ***通信集团有限公司 filed Critical ***通信有限公司研究院
Publication of WO2019019918A1 publication Critical patent/WO2019019918A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • H04L41/0809Plug-and-play configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Definitions

  • the present disclosure relates to the field of network technologies, and in particular, to a method for establishing a control signaling channel in a Packet Transport Network (PTN), a PTN network element, and a storage medium.
  • PTN Packet Transport Network
  • PTN Packet Transport Network
  • the Small SPTN (Software Defined Packet Transport Network, SPTN) device based on the openflow protocol is a new PTN device. Based on the miniaturized access PTN, the southbound interface is openflowed and is part of the SPTN system.
  • the Data Communication Network (DCN) within the SPTN device based on Openflow does not currently have a technical solution for automatic opening.
  • the Openflow-based SPTN device is managed and controlled by a management (network management) and control integrated domain controller. Since this device is in the access layer of the network, the optical fiber resources are very precious and cannot provide redundant links for devices and domain controllers. Communication between control channels is required, so an in-band DCN scheme is required.
  • the DCN under the SDN and openflow architectures are out-of-band DCNs in the data center and other areas, and have independent data communication networks, so there is no automatic establishment scheme of the control signaling channels of the in-band DCN.
  • the establishment of the control signaling channel of the in-band DCN is manually configured by the administrator.
  • CPE Customer Premise Equipment
  • the embodiments of the present disclosure are expected to provide a method for establishing a control signaling channel in a PTN, a PTN network element, and a storage medium, at least partially solving the above problems.
  • a first aspect of the embodiments of the present disclosure provides a method for establishing a control channel in a packet transmission network PTN, which is applied to a domain controller of a data communication network DCN, and includes:
  • the DHCP discovery packet is sent to the DHCP server when the packet-in packet is encapsulated with the dynamic host configuration protocol DHCP discovery packet, where the DHCP discovery packet is: the first device application and the The domain controller establishes an application packet for the openflow connection;
  • the DHCP-provided packet When receiving the DHCP-provided packet sent by the DHCP server, the DHCP-provided packet is encapsulated into a packet-out packet and sent to the second device, where the DHCP-provided packet includes: The first device establishes configuration information required for the openflow connection with the domain controller, and is based on the DHCP discovery packet reply;
  • the DHCP acknowledgment message When receiving the DHCP acknowledgment message sent by the DHCP server, the DHCP acknowledgment message is encapsulated into a packet-out message and sent to the second device; wherein the DHCP acknowledgment message is used for Notifying the first device to confirm establishing an openflow connection;
  • the DHCP providing message includes: a network protocol IP address allocated to the first device and a gateway identifier of the second device access gateway.
  • the domain controller and the DHCP server are two sub-devices of an integrated device; an internal communication interface is established between the domain controller and the DHCP server; and the domain controller at least includes: openflow a module; the DHCP server includes at least a DHCP module;
  • the method further includes:
  • the first packet is parsed by the openlow module
  • the DHCP packet is: the DHCP discovery packet or the DHCP request packet; when the first packet carries The DHCP discovery packet or the DHCP request packet is used by the DHCP module to send to the DHCP server.
  • the method further includes:
  • the DHCP-provided packet is encapsulated into a packet-out packet and sent to the second device, including:
  • the DHCP acknowledgement packet sent by the DHCP server is received, the DHCP acknowledgement packet is encapsulated into a packet-out packet, including:
  • the DHCP acknowledgement packet is encapsulated into the packet-out packet by the openflow module.
  • the configuration information includes: a network protocol IP address allocated to the first device;
  • the DHCP discovery packet carries at least a media access control MAC address of the first device and geographic location information of the first device;
  • the method further includes:
  • the IP address, the MAC address, and the geographical location information are stored correspondingly; wherein different devices located in the same geographical location are assigned the same IP address.
  • a second aspect of the embodiments of the present disclosure provides a method for establishing a control signaling channel in a packet transmission network PTN, which is applied to a second device of a data communication network DCN, and includes:
  • the DHCP discovery packet is encapsulated into a packet-in packet and sent to the
  • the domain controller is configured to: the first device requests an application message for establishing an openflow connection with the domain controller;
  • the domain controller Sending, by the domain controller, the packet that is sent by the domain controller based on the packet-in packet to the first device, where the packet-out packet is And carrying the DHCP-provided message returned by the DHCP server based on the DHCP discovery packet, where the DHCP-provided packet carries configuration information required for the first device to establish an openflow connection with the domain controller;
  • the DHCP request message When receiving the DHCP request message sent by the first device based on the DHCP-provided message, the DHCP request message is encapsulated into a packet-in message and sent to the domain controller, where the DHCP request message is sent. And the method is configured to trigger the domain controller to provide an openflow connection of the packet to the first device based on the DHCP;
  • the DHCP acknowledgment message When receiving the packet-out packet that is included in the DHCP acknowledgment message, the DHCP acknowledgment message is forwarded to the first device, where the DHCP acknowledgment message is used. The first device is informed to confirm the establishment of an openflow connection.
  • the method further includes:
  • a third aspect of the embodiments of the present disclosure provides a method for establishing a control channel in a packet transmission network PTN, which is applied to a first device of a data communication network DCN, and includes:
  • the broadcast dynamic host configuration protocol (DHCP) packet is sent to the domain controller after the second device that is connected to the first device is configured to be encapsulated as a packet-in packet.
  • the second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery packet is: the first device requests an application message for establishing an openflow connection with the domain controller;
  • the DHCP-providing packet includes: configuration information required for the first device to establish an openflow connection with the domain controller, And based on the DHCP discovery message reply;
  • DHCP request message Sending a DHCP request message to the second device, where the DHCP request message is used by the second device to be encapsulated into a packet-in message and sent to the domain controller. And for triggering the domain controller to provide an openflow connection of the packet to the first device based on the DHCP;
  • the packet-out packet is sent by the domain controller.
  • the sending the DHCP request message to the second device based on the DHCP providing packet includes:
  • the DHCP request message that is selected only by the selected one of the DHCP-based packets is returned to the DHCP request message, including:
  • a fourth aspect of the embodiments of the present disclosure provides a packet transmission network PTN network element, where the network element is a domain controller applied to a data communication network DCN, and includes: a first parsing and sending module, a first encapsulating and sending module, and a connecting module;
  • the first parsing and sending module is configured to: when receiving the packet-in packet encapsulating the dynamic host configuration protocol DHCP discovery packet, send the DHCP discovery packet to the DHCP server; wherein the DHCP discovery packet
  • the first device applies for an application for establishing an openflow connection with the domain controller;
  • the first encapsulating and sending module is configured to: when receiving the DHCP providing packet sent by the DHCP server, the DHCP providing packet is encapsulated into a packet-out packet and sent to the second device, where
  • the DHCP providing message includes: configuration information required for the first device to establish an openflow connection with the domain controller, and is based on the DHCP discovery message reply;
  • the first parsing and sending module is further configured to: when receiving a packet-in packet encapsulating a DHCP request packet, send the DHCP request packet to the DHCP server, where the DHCP request packet is Used to trigger the domain controller to provide an openflow connection of the packet with the first device based on the DHCP;
  • the first packet sending module is further configured to: when receiving the DHCP acknowledgment message sent by the DHCP server, the DHCP acknowledgment message is encapsulated into a packet-out message, and sent to the second device; The DHCP acknowledgement message is used to notify the first device to confirm that an openflow connection is established.
  • connection module is further configured to establish an openflow connection with the first device based on the DHCP-provided packet, where the packet-in packet is encapsulated by the second device.
  • a fifth aspect of the embodiments of the present disclosure provides a packet transmission network PTN network element, where the PTN network element is a second device applied to the data communication network DCN, and includes:
  • the second encapsulation sending module is configured to: when receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, encapsulating the DHCP discovery packet into a packet- In the message, and sent to the domain controller; wherein the DHCP discovery message is: the first device requests an application message for establishing an openflow connection with the domain controller;
  • a second parsing sending module configured to send the DHCP providing packet to the first device, when receiving the packet-out packet that is sent by the domain controller based on the packet-in packet, where The packet-out packet carries a DHCP-provided packet returned by the DHCP server based on the DHCP discovery packet, where the DHCP-provided packet carries the first device and establishes an openflow connection with the domain controller.
  • the second package sending module is further configured to: when receiving the DHCP request message sent by the first device based on the DHCP-provided message, encapsulate the DHCP request message into a packet-in message, and send the packet to the packet-in packet a domain controller, where the DHCP request message is used to trigger the domain controller to connect to the openFlow of the first device based on the DHCP request message;
  • the second parsing sending module is further configured to forward the DHCP acknowledgement packet to the first device when receiving the packet-out packet included in the DHCP acknowledgment message returned by the domain controller
  • the DHCP acknowledgement message is used to notify the first device to confirm that an openflow connection is established.
  • a sixth aspect of the embodiments of the present disclosure provides a packet transmission network PTN network element, where the PTN network element is a first device of a data communication network DCN, and includes:
  • a broadcast module configured to broadcast a dynamic host configuration protocol DHCP discovery packet, where the DHCP discovery packet is used to encapsulate the packet-in packet after the second device that is connected to the first device is received.
  • the second device is a device that has established an openflow connection with the domain controller
  • the DHCP discovery message is: the first device requests to establish an openflow connection with the domain controller. Apply for a message;
  • a receiving module configured to receive a DHCP-provided packet that is sent by the second device from the packet-out packet, where the DHCP-provided packet includes: establishing, by the first device, an openflow connection with the domain controller Required configuration information, and is based on the DHCP discovery message reply;
  • a sending module configured to send, by using the DHCP-provided packet, a DHCP request message to the second device, where the DHCP request message is used by the second device to be encapsulated into a packet-in message and sent to
  • the domain controller is configured to trigger the domain controller to provide an openflow connection with the first device based on the DHCP provisioning message;
  • the receiving module is further configured to receive a DHCP acknowledgment message that is sent by the second device from the packet-out message, where the DHCP acknowledgment message is used to notify the first device to confirm establishing an openflow connection;
  • the packet-out packet is sent by the domain controller.
  • a seventh aspect of the embodiments of the present disclosure provides a packet transmission network PTN network element, including: a transceiver, a processor, and a computer program;
  • the processor is connected to the transceiver, and is configured to implement a method for establishing a control channel of a PTN provided by any one of the above technical solutions by executing execution of a computer program stored in the memory.
  • the eighth aspect of the embodiments of the present disclosure provides a computer storage medium, where the computer storage medium stores a computer program; after the computer program is executed, the method for establishing a control channel of the PTN provided by any one of the above technical solutions is implemented.
  • the method for establishing a control signaling channel in a PTN, a PTN network element, and a storage medium are provided in the embodiment of the present disclosure.
  • a device that is newly connected to the DCN broadcasts a DHCP discovery packet, it will encapsulate the DHCP discovery packet into a packet-in packet, which is established by itself and the domain controller.
  • the openflow connection is sent to the domain controller, so that the corresponding DHCP discovery message is submitted to the assigned IP address to determine the gateway to which the device accesses, so that all DHCP packets are re-encapsulated into openflow connections during the openflow connection establishment process.
  • the transmitted packet-in packet and the packet-out packet are connected in the established openflow, so that the openflow connection that has not been established is automatically established by using the established openflow connection.
  • FIG. 1 is a schematic flowchart of a method for establishing a control signaling channel in a first type of PTN according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for establishing a control signaling channel in a second PTN according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of a method for establishing a control signaling channel in a third PTN according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a domain controller according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a second device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a first device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic flowchart of a method for establishing a control signaling channel in a fourth PTN according to an embodiment of the present disclosure
  • FIG. 8 is a schematic structural diagram of a DCN network according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic flowchart of a method for establishing a control signaling channel in a fifth PTN according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of an integrated device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic flowchart of packet processing of an integrated device according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic diagram of connection between a domain controller and a DHCP server according to an embodiment of the present disclosure
  • FIG. 13 is a schematic flowchart of packet processing performed by an independent domain controller according to an embodiment of the present disclosure
  • FIG. 14 is a schematic structural diagram of a CPE device according to an embodiment of the present disclosure.
  • this embodiment provides a method for establishing a control signaling channel in a PTN, which is applied to a domain controller of a DCN, and includes:
  • Step S110 When receiving the packet encapsulated with the dynamic host configuration protocol DHCP discovery packet, the packet is sent to the DHCP server, where the DHCP discovery packet is: The device applies for an application message for establishing an open flow openflow connection with the domain controller;
  • Step S120 When receiving the DHCP provisioning packet sent by the DHCP server, the DHCP provisioning packet is encapsulated into a packet output packet-out packet and sent to the second device, where the DHCP providing packet includes The configuration information required for the first device to establish an openflow connection with the domain controller, and is based on the DHCP discovery message reply;
  • Step S130 When receiving a packet-in packet encapsulating a DHCP request message, sending the DHCP request message to the DHCP server, where the DHCP request message is used to trigger the domain controller Providing, according to the DHCP providing message, an openflow connection with the first device;
  • Step S140 When receiving the DHCP acknowledgement packet sent by the DHCP server, the DHCP acknowledgement packet is encapsulated into a packet-out packet and sent to the second device. The DHCP acknowledgement packet is sent to the second device. Used to notify the first device to confirm establishment of an openflow connection;
  • Step S150 Establish an openflow connection with the first device based on the DHCP-provided packet, where the packet-in packet is formed by the second device.
  • the domain controller is a device directly connected to the DHCP server.
  • the domain controller is a device located in a metro transport network.
  • the DCN in this embodiment may include: an in-band DCN and an out-of-band DCN; wherein the in-band DCN is relative to the out-of-band DCN.
  • the service channel for performing service data transmission by the device in the out-of-band DCN and the control channel for performing communication control signaling transmission are completely isolated physical links, and do not affect each other.
  • In-band DCN, the service channel and the control channel essentially share a physical link, but are separated at a logical level. For example, configuring different virtual local area networks based on the same physical link to isolate the service channel and the control channel.
  • the DCN described in this embodiment is preferably an in-band DCN.
  • the second device and the first device may both be CPE devices, and the CPE device may be a regular PTN device or an SPTN device.
  • the configuration of the control channel includes: the application of the IP address, the determination of the access gateway, and the notification of the MAC address of the device.
  • the MAC address mainly informs the DHCP server.
  • the CPE device that is newly added to the DCN broadcasts a DHCP discovery packet that is used to establish an openflow connection.
  • the DHCP discovery packet can also be called a DHCP discover message.
  • the second device herein may be a hub (HUB) device or other CPE device connected to the HUB device.
  • the HUB device can typically be a device that is directly connected to the metro transport network.
  • the second device may be one of the relay devices connected to the domain controller by the first device.
  • the domain controller After receiving the packet-in packet carrying the DHCP discover message sent by the first device, the domain controller extracts the DHCP discover message from the packet-in packet in step S110, for example, The encapsulation of the DHCP discover message is removed to obtain the complete DHCP discover message.
  • the package is a basic encapsulation format of the packet-in packet, and includes information such as a header of the packet-in packet. For example, the packet of the packet-in packet can be directly added to the DHCP discover message, and the DHCP discover message can be encapsulated into a packet-in packet.
  • the packet-in packet encapsulates the port of the DHCP discovery packet sent by the first device, in addition to the DHCP discovery packet.
  • the port is a downlink port connected to the first device by the second device, and the first device is connected to an uplink port of the second device.
  • the uplink port of the first device may be directly extracted from the packet-in packet, and when the openflow connection is established, the uplink port is directly added to the management VLAN to implement control. The establishment of the channel.
  • the domain controller receives
  • the DHCP server can receive the DHCP discover message, and the message usually carries the client information.
  • the client information is the related information of the first device, and specifically includes: the MAC address of the first device and the network.
  • the network configuration information may include: port information, location information, and device identification information of the first device.
  • the port information may include: a port number of the first device, and/or a port type and the like.
  • the location information may include: indication information of a geographical location where the first device is located, for example, latitude and longitude of the geographic location where the first device is located, and the like.
  • the device identification information may be any identification information of the first device, for example, an International Mobile Equipment Identity (IMEI) or the like.
  • IMEI International Mobile Equipment Identity
  • the DHCP server After receiving the DHCP discover message, the DHCP server allocates an IP address to the first device based on the application of the first device, and determines that the first device accesses the gateway in the DCH, and the IP address is And the gateway identifier is carried in the DHCP provided message and returned to the domain controller.
  • the DHCP provides a packet, which may also be referred to as a DHCP offer message.
  • the DHCP-enabled packet After receiving the packet, the DHCP-enabled packet is encapsulated into a packet-out packet and sent to the second device. If there is a plurality of transit devices between the domain controller and the second device, the packet-out packet is forwarded to the second device by the transit device.
  • the second device After receiving the packet-out packet, the second device decapsulates the packet-out message, and then extracts the DHCP offer packet, for example, removing the packet-out packet.
  • the package will get the DHCP offer message.
  • the DHCP offer message carries configuration information for establishing an openflow connection with the domain controller for the first device to connect to the DCN. If the openflow connection is established, it is equivalent to the establishment of a transmission channel (ie, the control channel) in which the control signaling is completed.
  • the second device determines whether an openflow connection is established according to the received DHCP offer message.
  • the first device connected to the second device may send the packet carrying the DHCP discover message to the domain controller.
  • the -in packet so that the first device may receive multiple DHCP offer messages.
  • the device only selects a DHCP offer message to reply to send a DHCP request message. In this way, the domain controller will only receive a DHCP request message encapsulated into a packet-in message.
  • the DHCP request message here can also be referred to as a DHCP request message.
  • the domain controller receives the packet-in packet carrying the DHCP request packet, the DHCP request packet is extracted and forwarded to the DHCP server.
  • the DHCP server determines that the first device will connect to the DCN based on the previously assigned IP address and gateway identity and establish a control channel. Then the DHCP server will recognize the client information and respond to the DHCP acknowledgement message.
  • the DHCP acknowledgement packet may also be referred to as a DHCP ACK packet.
  • the DHCP ACK packet is forwarded by the domain controller to the packet-out packet to the second device.
  • the second device receives the packet-out packet, and the second device extracts the DHCP ACK packet from the packet-out packet, so that the first device completes the openflow connection, thereby completing the establishment of the control channel.
  • the step S150 may include:
  • the uplink device connected to the second device of the first device is added to the management VLAN, so that the domain controller can use the domain controller.
  • the management VLAN is connected to the first device, and the first device is managed, which is equivalent to completing the establishment of the control channel of the openflow connection.
  • the establishing the openflow connection further includes: configuring an IP address of the domain controller, a Transport Control Protocol (TCP) port to the first device, and enabling an openflow of the first device Connected so that the first device can perform data transfer based on the openflow connection.
  • TCP Transport Control Protocol
  • step S150 may include at least one of the following operations:
  • Configure the management VLAN for the first device add the uplink port of the first device to the configured VLAN, record its IP address, set the default gateway to which it is connected, enable the openflow or ofconfig function, and configure the first device and the domain controller.
  • the IP address of the connection and the TCP port is
  • the DHCP packet is sent and received by using the packet-in packet and the packet-out packet, so that the domain controller can receive the DHCP discovery packet and trigger the DHCP.
  • the server performs operations such as IP address allocation and setting of the access gateway, thereby completing the access of the CPE device to the DCN, and establishing the openflow connection establishment control channel, so that the device can be plug and play on the other hand. It is not required to be manually configured by the administrator, and has the characteristics of high configuration efficiency and high user experience.
  • the DHCP providing message includes: a network protocol IP address allocated to the first device and a gateway identifier of the second device access gateway.
  • the gateway identifier here may include: a gateway address of a gateway for the first device to access the DCN, and the gateway address may be an IP address of the gateway or the like.
  • the domain controller after receiving the first packet, identifies the type of the packet. Determining whether the first packet is a packet-in packet; if the first packet is the packet-in packet, further determining whether it is an ordinary packet-in packet or carrying the DHCP packet Packet-in message.
  • the DHCP packet carried in the packet-in packet may include: the DHCP discovery packet and the DCHP request packet.
  • the domain controller and the DHCP server are two sub-devices of an integrated device; an internal communication interface is established between the domain controller and the DHCP server; the domain controller includes at least : an openflow module; the DHCP server includes at least a first parsing transmitting module.
  • the openlow module is a processing module that performs packet processing and transceiving based on the openflow protocol.
  • the first parsing and sending module may be a processing module that performs packet processing and transceiving based on the DHCP protocol.
  • the two modules in the domain controller are two modules that are independent of each other.
  • a connection interface is established between two modules in the domain controller, and the openflow module will be from the packet-
  • the DHCP packet extracted in the in packet is forwarded to the first parsing and sending module for subsequent processing, and the first parsing and transmitting module forwards the DHCP packet to be encapsulated into a packet-out packet to the openflow module.
  • the second device first identifies the type of the packet. If the packet is a packet-in packet, it further analyzes whether the DHCP packet is carried. If the DHCP packet is carried, the openflow module forwards the proposed DHCP packet to the first parsing and sending module, and the first parsing and transmitting module performs the DHCP protocol based on the IP address.
  • the method further includes:
  • the first parsing sending module sends the DHCP providing packet or the DHCP acknowledgement packet to the openflow module;
  • the step S120 may specifically include: encapsulating, by the openflow module, the DHCP-provided packet into the packet-out packet;
  • the step S140 may include: encapsulating, by the openflow module, the DHCP acknowledgement packet into the packet-out packet.
  • the packet-in packet and the packet-out packet are packets that can be transmitted by using an openflow connection. Therefore, in this embodiment, if the DHCP message needs to be transmitted by using the openflow connection, the packet that needs to be transmitted by the openflow connection needs to be encapsulated.
  • the second device is generally a downstream device of the domain controller, and is required to be encapsulated into the packet-in packet, and the domain controller needs to encapsulate the DHCP packet into a packet-out packet.
  • the domain controller establishes an interface between the openflow module and the first parsing and sending module to re-encapsulate the DHCP packet.
  • the configuration information includes: a network protocol IP address assigned to the first device; the DHCP discovery message carries at least a MAC address of the first device and the first device Location information.
  • the domain controller determines to establish an openflow connection with the first device, and the domain controller further stores the IP address, The MAC address and the geographical location information; wherein different devices located in the same geographical location are assigned the same IP address.
  • the domain controller may query the corresponding relationship based on the geographical location information, and perform matching of the geographical location information in the corresponding relationship. If the matching is successful, the domain controller directly
  • the IP address encapsulation corresponding to the geographical location information is encapsulated as a packet of the DHCP-provided packet and is sent to the requesting device.
  • the DHCP providing message may be simulated by the first parsing sending module of the domain controller itself.
  • the corresponding relationship is stored in the DHCP server, and the domain controller still performs step S110 to step S150, and the query of the corresponding relationship and the matching of the geographical location information are performed by the DHCP server. And the domain controller receives the DHCP offer message from the DHCP server as usual.
  • different devices in the same geographical location are distinguished by their respective MAC addresses, and different openflow connections and control channels are established based on the MAC addresses, which can alleviate the tension of the number of IP addresses.
  • Different devices in the same geographical location may replace the old device with the new device. In this case, if the old device is not used, the IP address assigned to the old device is not used because the old device is disabled. Thereby improving the effective use rate of the IP address.
  • this embodiment provides a method for establishing a control signaling channel in a packet transmission network PTN, which is applied to a second device of a data communication network DCN, and includes:
  • Step S210 When receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, the DHCP discovery packet is encapsulated into a packet-in packet. And sending to the domain controller, where the DHCP discovery message is: the first device requests an application message for establishing an openflow connection with the domain controller;
  • Step S220 When receiving the packet-out packet replied by the domain controller based on the packet-in packet, sending the DHCP provisioning packet to the first device, where the packet-out
  • the packet carries a DHCP-provided message returned by the DHCP server based on the DHCP Discovery message.
  • the DHCP providing packet carries configuration information required for the first device to establish an openflow connection with the domain controller.
  • Step S230 When receiving the DHCP request message sent by the first device based on the DHCP-provided message, the DHCP request message is encapsulated into a packet-in message and sent to the domain controller, where the a DHCP request packet, configured to trigger the domain controller to connect to the openFlow of the first device based on the DHCP request packet;
  • Step S240 When receiving the packet-out packet included in the DHCP acknowledgment message returned by the domain controller, forwarding the DHCP acknowledgment message to the first device, where the DHCP acknowledgement message is sent. And means for informing the first device to confirm establishing an openflow connection.
  • the second device is a device that is directly connected to the first device.
  • the second device After receiving the DHCP discovery packet broadcast by the first device, the second device encapsulates the DHCP discovery packet into a packet-in packet, and sends the packet to the domain through one or more relay devices.
  • the domain controller After the domain controller performs the foregoing steps S110 to S150, the first device exchanges the packet-in packet and the packet-out packet with the domain controller based on the openflow connection, and passes the packet-in packet.
  • the encapsulation and the parsing of the packet-out packet will send the received DHCP packet to the first device, thereby assisting the first device to establish an openflow connection by using an openflow connection established between the second device and the domain controller. Thereby completing the establishment of a control channel between the first device and the domain controller.
  • the method further includes:
  • the second device after receiving the DHCP message, the second device first determines whether it has an openflow connection with the domain controller, and if so, encapsulates the DHCP packet into a packet-in packet and forwards the packet to the packet-in packet.
  • the domain controller otherwise discarding the DHCP packet, does not continue to broadcast, so as not to cause a broadcast storm.
  • the second device may determine whether at least one port has been added to the management VLAN, and if it has been added, determine the second The device has established an openflow connection with the domain controller. Otherwise, the DHCP discovery packet is discarded.
  • the method further includes:
  • VLAN virtual local area network
  • the DHCP discovery message is discarded.
  • this embodiment provides a method for establishing a control channel in a packet transmission network PTN, which is applied to a first device of a DCN, and includes:
  • Step S310 Broadcasting a DHCP discovery packet, where the DHCP discovery packet is sent to the domain controller after being encapsulated by the second device that is connected by the first device, and is encapsulated as a packet-in packet;
  • the second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery packet is: the first device requests an application for establishing an openflow connection with the domain controller;
  • Step S320 Receive a DHCP-provided packet that is extracted by the second device from the packet-out packet.
  • the DHCP-provided packet includes: required for the first device to establish an openflow connection with the domain controller. Configuration information, and is based on the DHCP discovery message reply;
  • Step S330 Send a DHCP request message to the second device, where the DHCP request message is used by the second device to be encapsulated into a packet-in message and sent to the a domain controller, configured to trigger the domain controller to provide an openflow connection of the packet to the first device based on the DHCP;
  • Step S340 Receive a DHCP acknowledgement message that is sent by the second device from the packet-out message, where the DHCP acknowledgement message is used to notify the first device to confirm that an openflow connection is established.
  • the packet-out packet is sent by the domain controller.
  • the first device may be a device to be accessed in the DCN, and after the physical connection is established, the first device automatically broadcasts the DHCP discovery packet, and thus, The other device that has established a physical connection with the first device will receive the message.
  • the device that receives the DHCP discovery message in this embodiment may be the second device.
  • the second device may use the openFlow connection established by the second device to forward the first device to obtain configuration information and confirm all the DHCP packets involved, so that the first device can be assisted by the second device.
  • the openflow connection with the domain controller is automatically established to complete the establishment of the control channel.
  • the step S330 may include:
  • the first device may receive a plurality of the DHCP offer messages.
  • a redundant connection is established, and the first device selects a DHCP-provided message to perform a DHCP request message reply based on the preset policy, so that the first device is used to complete the first connection by using the openflow connection of the second device. All information in the device's openflow connection process interacts.
  • the DHCP server does not receive a corresponding DHCP request message within a predetermined time range after the IP address is assigned to the first device, and the current allocation failure is confirmed. For example, if the IP address is only assigned to the first device, the IP address is re-set as an idle IP address. If the IP address is a shared IP address of the first device and other devices, the IP address is not established. Corresponding relationship of the device identifier of the first device, where the device correspondence relationship may be the MAC address.
  • the step S330 may include:
  • the sequence of receiving the second device may be different, the number of links from the second device to the domain controller may be different, and the transmission bandwidth of the second device to the domain controller may be Differently, the DHCP device provides a message to the first device, indicating that the first device establishes an openflow connection with the domain controller by using the second device, and may have a small number of link hops and a small transmission delay.
  • the advantage of the transmission bandwidth is large. Therefore, in this embodiment, based on the sequence of receiving the packets provided by the DHCP, only the most-fetched DHCP-provided packet is selected for reply, and the openflow connection between the first device and the domain controller is established.
  • the second device may also forward its own status information to the first device, or inform the first device based on the establishment priority determined by its own status information.
  • the first device receives the status information or the establishing priority, in step S330, the corresponding DHCP-provided DHCP-provided message is selected to be replied, or the status information is selected to meet the preset condition.
  • DHCP provides a message to reply.
  • the status information herein may include: the number of other devices connected to the second device, the average load rate, and/or the bandwidth.
  • the establishment priority is negatively correlated with the number, negatively correlated with the average load rate, and positively correlated with the bandwidth.
  • the status information includes not limited to the above information.
  • the first device may determine to perform the DHCP request message, and may start to perform the IP address and the gateway identifier carried in the corresponding DHCP-provided message.
  • the configuration of the openflow connection may be also perform the openflow configuration after receiving the DHCP acknowledgement message.
  • the embodiment provides a PTN network element, where the network element is a domain controller applied to the DCN, and includes: a first parsing and sending module 110, a first encapsulating and sending module 120, and a connecting module 130;
  • the first parsing and sending module 110 is configured to: when receiving the packet-in packet encapsulating the dynamic host configuration protocol DHCP discovery packet, send the DHCP discovery packet to the DHCP server; wherein the DHCP discovery The packet is: the first device applies for an application for establishing an openflow connection with the domain controller;
  • the first encapsulation sending module 120 is configured to: when receiving the DHCP provisioning packet sent by the DHCP server, encapsulating the DHCP provisioning packet into a packet-out packet and sending the packet to the second device, where
  • the DHCP providing message includes: configuration information required for the first device to establish an openFlow connection with the domain controller, and is based on the DHCP discovery message reply;
  • the first parsing and sending module 110 is further configured to: when receiving a packet-in packet encapsulating a DHCP request packet, send the DHCP request packet to the DHCP server, where the DHCP request packet is sent Used to trigger the domain controller to provide an openflow connection with the first device based on the DHCP provisioning message;
  • the first encapsulating and sending module 120 is further configured to: when receiving the DHCP acknowledgment message sent by the DHCP server, encapsulating the DHCP acknowledgment message into a packet-out packet, and sending the packet to the second device
  • the DHCP confirmation message is used to notify the first device to confirm that an openflow connection is established;
  • the connection module 130 is further configured to establish an openflow connection with the first device based on the DHCP-provided packet, where the packet-in packet is encapsulated by the second device.
  • the first packet sending module 120 can be a processing module for processing and forwarding packets according to the openflow protocol.
  • the first parsing and sending module 110 can be a processing module for performing packet forwarding and forwarding based on the DHCP protocol.
  • connection module can correspond to a communication interface and a processor.
  • the processor may include a central processing unit, a microprocessor, a digital signal processor, an application processor, a programmable array, or an application specific integrated circuit.
  • the first parsing and transmitting module 110, the first encapsulating and transmitting module 120, and the connecting module 130 may correspond to the processor; and the processor is executed by a computer program or the like to implement the operations of the foregoing modules.
  • the DHCP providing message includes: a network protocol IP address allocated to the first device and a gateway identifier of the second device access gateway.
  • the domain controller further includes:
  • a first port module configured to receive a first packet sent by the second device; where the first port module may include a downlink port that is connected to the downstream device by the domain controller;
  • the identification module is configured to identify the type of the first message; the identification module herein can also correspond to the processor, and can identify the type of the message by processing operations such as the format of the message.
  • the first packet sending module 120 is further configured to: when the type of the first packet is the packet-in packet, parse the first packet by an openlow module; and determine, according to the result of the parsing, Whether the first packet carries a DHCP packet, where the DHCP packet is: the DHCP discovery packet or the DHCP request packet; when the first packet carries the DHCP packet, the The DHCP discovery packet or the DHCP request packet is sent to the DHCP server by the first parsing sending module.
  • the first parsing sending module 110 is further configured to send the DHCP providing packet or the DHCP acknowledgement packet when receiving the DHCP providing packet or the DHCP acknowledgement packet. Give the openflow module.
  • the configuration information includes: a network protocol IP address assigned to the first device; the DHCP discovery message carries at least a media access control MAC address of the first device, and the Geographic location information of a device;
  • the PTN network element further includes:
  • a storage module configured to correspondingly store the IP address, the MAC address, and the geographical location information; wherein different devices located in the same geographical location are assigned the same IP address.
  • the storage module further includes a storage medium, and is configured to store the correspondence.
  • the embodiment further provides a PTN network element, where the PTN network element is a second device of the DCN, and includes:
  • the second encapsulation sending module 210 is configured to: when receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, encapsulating the DHCP discovery packet into a packet -in the message, and sent to the domain controller; wherein the DHCP discovery message is: the first device requests an application message for establishing an openflow connection with the domain controller;
  • the second parsing and sending module 220 is configured to send the DHCP providing packet to the first device when receiving the packet-out packet replied by the domain controller based on the packet-in packet, where
  • the packet-out packet carries a DHCP-provided packet returned by the DHCP server based on the DHCP discovery packet, where the DHCP-provided packet carries the first device and establishes an openflow with the domain controller. Connect the required configuration information;
  • the second package sending module 210 is further configured to: when receiving the DHCP request message sent by the first device based on the DHCP-provided message, encapsulate the DHCP request message into a packet-in message, and send the packet a domain controller, wherein the DHCP request message is used to trigger the domain controller to connect to the openFlow of the first device based on the DHCP provisioning message;
  • the second parsing and sending module 220 is further configured to: when receiving the packet-out packet included in the DHCP acknowledgment message returned by the domain controller, forwarding the DHCP acknowledgment message to the first The device, wherein the DHCP acknowledgement message is used to notify the first device to confirm establishment of an openflow connection.
  • the second package sending module 210 and the second parsing sending module 220 correspond to the processor and the transceiver; the difference is that one is used for encapsulating the message and then one is used for parsing and reporting. Send the text.
  • the processor here can be any of the foregoing.
  • the PTN network element further includes:
  • the discarding unit is configured to discard the DHCP discovery packet when the second device does not establish an openflow connection with the domain controller.
  • the discarding unit may correspond to a processor, and the processor discards the DHCP discovery packet, specifically, the operation of the masking port to send the DHCP discovery packet, and the deletion of the DHCP discovery packet.
  • the embodiment provides a PTN network element of a packet transmission network, where the PTN network element is a first device of a data communication network DCN, and includes:
  • the broadcast module 310 is configured to broadcast a dynamic host configuration protocol DHCP discovery packet, where the DHCP discovery packet is used to encapsulate the packet-in report after the second device that is connected to the first device is received.
  • the device is sent to the domain controller;
  • the second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery message is: the first device requests to establish an openflow connection with the domain controller.
  • the receiving module 320 is configured to receive a DHCP provisioning packet that is extracted by the second device from the packet-out packet, where the DHCP providing packet includes: establishing, by the first device, an openflow connection with the domain controller. Required configuration information, and is based on the DHCP discovery message reply;
  • the sending module 330 is configured to send, according to the DHCP-provided packet, a DHCP request message to the second device, where the DHCP request message is used to be encapsulated into a packet-in message by the second device. Giving the domain controller, and used to trigger the domain controller, to provide an openflow connection of the packet with the first device based on the DHCP;
  • the receiving module 320 is further configured to receive a DHCP acknowledgment message that is sent by the second device from the packet-out message, where the DHCP acknowledgment message is used to notify the first device to confirm that an openflow connection is established.
  • the packet-out packet is sent by the domain controller.
  • the broadcast unit corresponds to the processor and the transceiver, and may form the DHCP discovery message, and send the DHCP discovery message to the other device by using the transceiver.
  • Both the receiving module 320 and the sending module 330 can correspond to a transceiver for transmitting and receiving messages.
  • the first device further includes: a configuration module corresponding to the processor, the processor being operative to perform automatic configuration of the openflow connection based on the HDPC providing the message.
  • the sending module 330 is configured to: when receiving a plurality of DHCP-provided messages forwarded by the second device, only one of the DHCP-provided messages selected according to a preset policy replies to the DHCP request message. Text.
  • the sending module 330 is specifically configured to: according to the receiving sequence of the plurality of DHCP-provided messages, reply to the DHCP request message based on the first received DHCP-provided message.
  • the embodiment provides a PTN network element, including: a transceiver, a processor, and a computer program;
  • the processor is connected to the transceiver for performing the execution of the method for establishing a control signaling channel in the PTN provided by the foregoing one or more technical solutions by executing the computer program.
  • the processor can implement one or more domain name resolution methods applied to the domain name resolution system by executing the computer program.
  • the transceiver may be a network port of a network element, where the PTN network element may be the foregoing domain controller, the first device, the second device, or a DHCP server.
  • the processor herein may be one or more of the aforementioned central processing unit, microprocessor, digital signal processor, application processor, programmable array or application specific integrated circuit. The number of processors may also be one or more.
  • the transceiver can be coupled to the processor via an in-device bus interface, such as an integrated circuit bus.
  • the embodiment of the present disclosure further provides a computer storage medium, where the computer storage medium stores a computer program, and after the computer program is executed by the processor, implements establishment of a control signaling channel in the PTN provided by the foregoing one or more technical solutions. Execution of the method.
  • the computer storage medium may be: a removable storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code.
  • the computer storage medium is preferably a non-transitory storage medium.
  • the present example provides a method for establishing a control signaling channel in a PTN according to any one of the foregoing embodiments, including:
  • Step S1 After the CPE is powered on, the DHCP discover message carrying the 4094 is broadcasted through the port X. After receiving the DHCP Discover message sent by the peer, the device and the CPE send the packet to the processor of the device. The device finds that the device is not connected to the controller and discards the packet.
  • Step S2 If the last hop device has established an openflow connection with the controller, the DHCP discover message received from the port Y is encapsulated in a packet-in manner to form a packet-in packet and sent to the controller.
  • Step S3 After receiving the packet-in packet and decapsulating the packet into a DHCP discover message, the domain controller notifies the DHCP server, for example, forwards the DHCP discover message to the DHCP server.
  • Step S4 The DHCP server receives the DHCP Discover message, identifies the client information, responds to the DHCP Offer message, and allocates a permanent IP and a gateway.
  • Step S5 The domain controller receives the DHCP Offer packet, and forms a packet-out packet in the packet-out mode, and sends the packet-out packet to the previous hop device.
  • Step S6 The device of the last hop decapsulates the packet-out packet, and sends the DHCP Offer packet to the CPE device.
  • Step S7 The CPE device receives the DHCP Offer message and responds to the DHCP Request message.
  • Step S8 The last hop device receives the DHCP Request message of the CPE device from the port Y, and encapsulates the packet into the packet-in packet and sends the packet to the domain controller.
  • Step S9 The domain controller receives the packet-in packet, and after decapsulating, sends the packet to the DHCP server.
  • Step S10 The DHCP server receives the DHCP Request message, identifies the client information, and responds to the DHCP ACK message.
  • Step S11 The domain controller receives the DHCP ACK packet, forms a packet-out packet in the packet-out mode, and sends the previous hop device.
  • Step S12 The device in the previous hop decapsulates the packet-out packet, and sends the DHCP ACK packet to the CPE device. After receiving the DHCP ACK packet, the CPE device configures the inband IP and gateway, and applies the interface to the IP address. Port X is added to the management VLAN; the IP address here is the inband management IP.
  • Step S13 The domain controller adds the downlink port Y of the previous hop device to the management VLAN through the extended interface of the configuration management protocol (ofconfig).
  • Step S14 the domain controller and the CPE device establish a network configuration protocol (NetConf) connection;
  • Step S15 The domain controller configures the IP address and TCP port number of the domain controller to the CPE device through the interface defined by OF-CONFIG1.2, and enables the openflow connection.
  • Step S16 The CPE device establishes an OpenFlow connection with the domain controller.
  • the present example provides a method of establishing a control signaling channel in a PTN based on any of the foregoing embodiments.
  • FIG. 8 shows a DCN network provided for this example.
  • the HUB device and CPE1 and CPE3 are connected to the network side edge device 0 (PE0).
  • CPE2 has not yet established a connection with PE0.
  • a network side edge device 1 (PE1) and a network side edge device 2 (PE2) are also disposed in the metropolitan area transport network.
  • the domain controller (D-controller) is connected to the metro transport network through the network side edge device.
  • the domain controller and the DHCP server may be disposed on different physical devices, and in other cases, the domain controller and the DHCP server are also integrated on the same physical device. In order to reduce transmission outside the data device and reduce response delay, it is preferable to integrate the domain controller and the DHCP server on one physical device.
  • the deployment scenario 1 shown in Figure 8 is that the domain controller accesses the DCN through the metropolitan transport network, and the deployment situation 2 is directly connected. Go to the HUB device.
  • Step S21 The CPE2 device is powered on, and sends a DHCP discover message carrying vlan 4094 to the port 1.
  • Step S22 The CPE1 encapsulates the received DHCP discover message into a packet-in packet by using the packet-in packet, and sends the packet-in packet to the controller.
  • Step S23 After receiving the packet-in packet and decapsulating the packet into a DHCP discover message, the domain controller notifies the DHCP server;
  • Step S24 CPE2 simultaneously sends a DHCP discover message carrying VLAN 4094 to port 2.
  • Step S25 The CPE3 encapsulates the received DHCP discover message into a packet-in packet by using a packet-in packet, and sends the packet-in packet to the controller.
  • Step S26 The domain controller notifies the DHCP server after receiving the packet-in and decapsulating it into a DHCP discover;
  • Step S27 The DHCP server receives the DHCP Discover message, identifies the client information, responds to the DHCP Offer message, and allocates a permanent IP and a gateway.
  • Step S28 The domain controller receives the DHCP offer message, and encapsulates the DHCP Offer message in a packet-out manner to form a packet-out message, and sends the packet to the CPE1 device.
  • Step S29 The CPE1 device decapsulates the packet-out packet and sends the DHCP offer packet to the CPE2 device.
  • Step S30 The DHCP server receives the DHCP Discover message, identifies the client information, responds to the DHCP Offer message, and allocates a permanent IP and a gateway.
  • Step S31 The domain controller receives the DHCP Offer message, and encapsulates the DHCP Offer message in a packet-out manner to form a packet-out message, and sends the packet to the CPE3 device.
  • Step S32 The CPE3 device decapsulates the packet-out packet and sends the DHCP offer packet to the CPE2 device.
  • Step S33 The CPE2 device receives the first DHCP offer message, responds to the DHCP request message, and sends the message from port 1.
  • Step S34 The CPE1 device receives the DHCP Request message of the CPE2 device from the port 2, and encapsulates the packet-in packet by the packet-in mode, and sends the packet to the domain controller.
  • Step S35 The domain controller receives the packet-in packet, and after decapsulating, sends the DHCP request packet to the server in the form of notification.
  • Step S36 The DHCP server receives the DHCP request message, identifies the client information, and responds to the DHCP ACK message.
  • Step 37 The domain controller receives the DHCP ACK packet, and encapsulates the DHCP Offer packet in a packet-out manner to form a packet-out packet, and sends the packet-out packet to the HUB device.
  • Step S38 The CPE1 device decapsulates the packet-out and sends the DHCP ACK packet to the CPE2 device. After receiving the DHCP ACK packet, the CPE2 device configures the inband management IP address and the gateway, and adds the portX application to the IP interface.
  • the VLAN In the VLAN;
  • Step S39 The domain controller adds the lower port 2 of the CPE1 device to the management VLAN through the extended interface of the ofconfig;
  • Step S40 The domain controller and the CPE2 device establish a NetConf connection
  • Step S41 The domain controller configures the IP address and TCP port number of the domain controller to the CPE2 device through the interface defined by OF-CONFIG1.2, and enables the openflow connection.
  • Step S42 The CPE2 device establishes an Openflow connection with the domain controller.
  • CPE2 will receive the DHCP offer message forwarded by CPE1 and CPE3, but CPE2 will only reply to the DHCP offer message forwarded by CPE1, and establish an openflow connection with the domain controller through the ports of CPE1 and CPE2. And the domain controller adds the ports of CPE1 and CPE2 to the management VLAN to complete the establishment of the control channel.
  • the embodiment provides an integrated device including a domain controller and a DHCP server, including: an ingress port, an egress port, an identification module, and an openflow module corresponding to the domain controller, and A DHCP module corresponding to the DHCP server.
  • the identification module is connected to the openflow module and the DHCP module through the internal interface 1 and the internal interface 2, respectively.
  • the openflow module connects the openflow module and the DHCP module through an internal interface 3.
  • the openflow module and the DHCP module are both connected to the outgoing port.
  • the ingress port is used to receive packets, and the egress port is used to send packets.
  • the identification module is configured to identify the type of the received packet, whether it is a packet-in packet or a DHCP packet.
  • Figure 11 shows a packet processing method provided in this example, including:
  • Step S51 The identification module identifies the type of the packet received by the ingress port.
  • Step S52 determining whether it is a packet-in packet, and determining whether it is a DHCP packet;
  • Step S53 If it is a packet-in packet, it is sent to the openflow module through the internal interface 1.
  • Step S54 Decapsulating the packet-in packet
  • Step S55 It is determined whether the DHCP message is carried. If the process proceeds to step S56, the process is normally processed by using the openflow protocol.
  • Step S56 Forwarding the DHCP message to the DHCP module through the internal interface 3;
  • Step S57 The DHCP module performs packet processing according to the DHCP protocol, and responds to the corresponding DHCP message.
  • Step S58 The DHCP module forwards the responding DHCP message to the openflow module through the internal interface 3;
  • Step S59 The openflow module encapsulates the DHCP packet into a packet-out packet.
  • Step S60 The openflow module sends the packet-out packet through the egress port.
  • Step S61 When the packet received by the ingress port is a DHCP packet, the packet is sent to the DHCP module through the internal interface 2;
  • Step S62 The DHCP module performs DHCP packet processing according to the DHCP protocol, and responds to the packet;
  • Step S63 The DHCP module sends the response packet through the egress port.
  • This example provides a domain controller that is separate from the DHCP server. As shown in FIG. 13, the external interface 1 of the domain controller is connected to the external interface 2 of the DHCP server. Both the domain controller and the DHCP server are configured with an ingress port for receiving packets and an egress port for sending packets.
  • a packet processing method as shown in Figure 13, includes:
  • Step S71 The ingress port of the domain controller receives the packet-in packet.
  • Step S72 Decapsulating the packet-in packet
  • Step S73 Determine whether a DHCP message is carried. If there is a next step, if not, the openflow protocol parses the message.
  • Step S74 Send the DHCP message to the DHCP server through the external interface 1.
  • Step S75 The DHCP server processes the packet according to the DHCP protocol, and generates a response DHCP packet.
  • Step S76 The DHCP server sends the responding DHCP message to the domain controller through the external interface 2;
  • Step S77 The domain controller encapsulates the responding DHCP packet into a packet-out packet.
  • Step S78 The domain controller sends the packet-out packet through its own egress port.
  • the example further provides a CPE, where the CPE device can be a second device, including:
  • Incoming port which can be used to receive DHCP packets.
  • a DHCP identification module configured to identify a DHCP message
  • the DHCP judging module is configured to determine whether to continue to forward the DHCP packet, where the DHCP packet includes at least a DHCP discovery packet, and in some cases, a DHCP request packet.
  • the egress port is used to forward DHCP packets or send packet-in packets encapsulating DHCP packets.
  • DHCP discover packets from other devices. If the CPE does not have a port in the management VLAN, the CPE does not go online. DHCP discover broadcast message. In this way, the device will forward all DHCP discover messages, which will cause an Ethernet loop.
  • the DHCP identification module is configured to identify the DHCP discover message, and may correspond to the second parsing sending unit in the foregoing embodiment;
  • the DHCP judging module is configured to determine whether to continue to forward the DHCP discover message. If the existing port is added to the management VLAN, the DHCP forwarding module forwards the DHCP discover message from the port that is added to the management VLAN. If no port is added to the management VLAN. In the middle, the DHCP discover message is discarded.
  • the DHCP packet when the openFlow connection is not established, the DHCP packet is encapsulated in the packet-in mode and the packet-out mode in the openflow protocol.
  • the IP-based application message is sent in the packet-in mode, and the IP-based application reply message is sent in the packet-out mode.
  • the SPTN device joins the VLAN on the uplink port and establishes a NetConf connection with the domain controller, the openFlow connection with the domain controller is finally established. .
  • the device does not forward DHCP discover packets before the device goes online.
  • the device receives DHCP discover packets. You need to determine whether a port is in the management VLAN to prevent broadcast storms.
  • the device can be added on a first-come, first-served basis to avoid forming an Ethernet loop.
  • the CPE device goes online.
  • the IP address sent by the controller to the miniaturized SPTN device is associated with the MAC address of the device and the uplink port, and the same IP address is assigned at the same location. When the device is replaced, it is convenient for network address management and device maintenance.
  • the domain controller integrates or separates the openflow module and the DHCP module.
  • the two modules operate independently and cooperate with each other through interfaces or channels.
  • DHCP completes the IP address allocation.
  • the Openflow module completes the Packet in and Packet out encapsulation of DHCP messages.
  • the DHCP packet is encapsulated in the Packet in and Packet Out mode.
  • the solution provided by the embodiment of the present disclosure can avoid forming an Ethernet loop and avoid equipment broadcast storms
  • the IP address of the device that is sent to the miniaturized SPTN is associated with the MAC address of the device and the uplink port.
  • the same IP address is assigned to the same location to facilitate network address management and device maintenance.
  • the disclosed apparatus and method 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 such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, that is, may be located in one place or distributed on 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 disclosure may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a method for establishing a control signalling channel in PTN, a PTN network element and a storage medium. The method applied to a domain controller of DCN comprises: when receiving a packet-in message packaged with a dynamic host configuration protocol DHCP discovery message, sending the DHCP discovery message to a DHCP server; when receiving a DHCP provisioning message sent by the DHCP server, packaging the DHCP provisioning message as a packet-out message and sending same to a second device; when receiving the packet-in message packaged with a DHCP request message, sending the DHCP request message to the DHCP server; when receiving a DHCP confirmation message sent by the DHCP server, packaging the DHCP confirmation message as a packet-out message and sending same to the second device; and establishing an openflow connection with the first device based on the DHCP provisioning message.

Description

PTN中控制信令通道的建立方法、PTN网元及存储介质Method for establishing control signaling channel in PTN, PTN network element and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请主张在2017年7月25日在中国提交的中国专利申请号No.201710614458.X的优先权,其全部内容通过引用包含于此。The present application claims priority to Chinese Patent Application No. 201710614458.X filed on Jan. 25, 2017, the entire content of
技术领域Technical field
本公开涉及网络技术领域,尤其涉及一种分组传输网络(Packet Transport Network,PTN)中控制信令通道的建立方法、PTN网元及存储介质。The present disclosure relates to the field of network technologies, and in particular, to a method for establishing a control signaling channel in a Packet Transport Network (PTN), a PTN network element, and a storage medium.
背景技术Background technique
基于openflow协议的小型SPTN(Software defined Packet Transport Network,SPTN)设备是新的PTN设备形态,基于小型化接入PTN,进行南向接口openflow化,是SPTN***的一部分。基于Openflow的SPTN设备带内的数据通信网络(Data Communication Network,DCN)目前没有自动化开通的技术方案。The Small SPTN (Software Defined Packet Transport Network, SPTN) device based on the openflow protocol is a new PTN device. Based on the miniaturized access PTN, the southbound interface is openflowed and is part of the SPTN system. The Data Communication Network (DCN) within the SPTN device based on Openflow does not currently have a technical solution for automatic opening.
基于Openflow的SPTN设备由管理(网管)和控制一体的域控制器进行管理和控制,由于这种设备在网络的接入层,光纤资源非常珍贵,不能提供多余的链路进行设备和域控制器之间的控制信道通信,因此需要采用带内DCN方案。The Openflow-based SPTN device is managed and controlled by a management (network management) and control integrated domain controller. Since this device is in the access layer of the network, the optical fiber resources are very precious and cannot provide redundant links for devices and domain controllers. Communication between control channels is required, so an in-band DCN scheme is required.
目前SDN、openflow架构下的DCN在数据中心等层面都是带外DCN,有独立的数据通信网络,因此没有带内DCN的控制信令通道的自动建立方案。At present, the DCN under the SDN and openflow architectures are out-of-band DCNs in the data center and other areas, and have independent data communication networks, so there is no automatic establishment scheme of the control signaling channels of the in-band DCN.
在相关技术中带内DCN的控制信令通道的建立都是由管理人员手工进行配置。In the related art, the establishment of the control signaling channel of the in-band DCN is manually configured by the administrator.
一方面,手工配置存在配置效率低的问题。On the one hand, manual configuration has the problem of low configuration efficiency.
另一方面,用户购买了终端接入设备(Customer Premise Equipment,CPE)后,由于需要管理人员手工配置所述控制信令通道,故新加入到PTN的设备无法实现即插即用,从而导致CPE的接入不便利和用户的使用满意度低等问题。On the other hand, after the customer purchases the Customer Premise Equipment (CPE), the management personnel must manually configure the control signaling channel. Therefore, the device newly added to the PTN cannot be plugged and used, resulting in CPE. The access is not convenient and the user's use satisfaction is low.
发明内容Summary of the invention
有鉴于此,本公开实施例期望提供一种PTN中控制信令通道的建立方法、PTN网元及存储介质,至少部分解决上述问题。In view of this, the embodiments of the present disclosure are expected to provide a method for establishing a control signaling channel in a PTN, a PTN network element, and a storage medium, at least partially solving the above problems.
为达到上述目的,本公开的技术方案是这样实现的:To achieve the above object, the technical solution of the present disclosure is implemented as follows:
本公开实施例第一方面提供一种分组传输网络PTN中控制通道的建立方法,应用于数据通信网络DCN的域控制器中,包括:A first aspect of the embodiments of the present disclosure provides a method for establishing a control channel in a packet transmission network PTN, which is applied to a domain controller of a data communication network DCN, and includes:
当接收到封装有动态主机配置协议DHCP发现报文的packet-in报文时,将所述DHCP发现报文发送给DHCP服务器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;The DHCP discovery packet is sent to the DHCP server when the packet-in packet is encapsulated with the dynamic host configuration protocol DHCP discovery packet, where the DHCP discovery packet is: the first device application and the The domain controller establishes an application packet for the openflow connection;
当接收到所述DHCP服务器发送的DHCP提供报文时,将所述DHCP提供报文封装为packet-out报文并发送给第二设备,其中,所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;When receiving the DHCP-provided packet sent by the DHCP server, the DHCP-provided packet is encapsulated into a packet-out packet and sent to the second device, where the DHCP-provided packet includes: The first device establishes configuration information required for the openflow connection with the domain controller, and is based on the DHCP discovery packet reply;
当接收到封装有DHCP请求报文的packet-in报文时,向所述DHCP服务器发送所述DHCP请求报文,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;Sending the DHCP request message to the DHCP server when receiving the packet-in packet encapsulating the DHCP request message, where the DHCP request message is used to trigger the domain controller, based on the Describe a DHCP-enabled packet and an openflow connection of the first device;
当接收到所述DHCP服务器发送的DHCP确认报文时,将所述DHCP确认报文封装为packet-out报文,并发送给所述第二设备;其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;When receiving the DHCP acknowledgment message sent by the DHCP server, the DHCP acknowledgment message is encapsulated into a packet-out message and sent to the second device; wherein the DHCP acknowledgment message is used for Notifying the first device to confirm establishing an openflow connection;
基于所述DHCP提供报文,与所述第一设备建立openflow连接;其中,所述packet-in报文是由所述第二设备封装形成的。Establishing an openflow connection with the first device based on the DHCP-provided packet; wherein the packet-in packet is formed by the second device.
基于上述方案,所述DHCP提供报文包括:分配给所述第一设备的网络协议IP地址及所述第二设备接入网关的网关标识。Based on the foregoing solution, the DHCP providing message includes: a network protocol IP address allocated to the first device and a gateway identifier of the second device access gateway.
基于上述方案,所述域控制器和所述DHCP服务器为一个一体设备的两个子设备;所述域控制器和所述DHCP服务器之间建立有内部通信接口;所述域控制器至少包括:openflow模块;所述DHCP服务器至少包括DHCP模块;Based on the foregoing solution, the domain controller and the DHCP server are two sub-devices of an integrated device; an internal communication interface is established between the domain controller and the DHCP server; and the domain controller at least includes: openflow a module; the DHCP server includes at least a DHCP module;
所述方法还包括:The method further includes:
接收所述第二设备发送的第一报文;Receiving a first packet sent by the second device;
识别所述第一报文的类型;Identifying a type of the first message;
当所述第一报文的类型为所述packet-in报文时,由openlow模块解析所述第一报文;When the type of the first packet is the packet-in packet, the first packet is parsed by the openlow module;
基于解析的结果确定所述第一报文是否为有携带DHCP报文,其中,所述DHCP报文为:所述DHCP发现报文或DHCP请求报文;当所述第一报文携带有所述DHCP报文时,所述DHCP发现报文或DHCP请求报文,用于供DHCP模块发送给DHCP服务器。Determining, according to the result of the parsing, whether the first packet carries a DHCP packet, where the DHCP packet is: the DHCP discovery packet or the DHCP request packet; when the first packet carries The DHCP discovery packet or the DHCP request packet is used by the DHCP module to send to the DHCP server.
基于上述方案,所述方法还包括:Based on the foregoing solution, the method further includes:
所述DHCP模块将所述DHCP提供报文或所述DHCP确认报文发送给所述openflow模块;Sending, by the DHCP module, the DHCP providing message or the DHCP acknowledgement message to the openflow module;
所述当接收到所述DHCP服务器发送的DHCP提供报文时,将所述DHCP提供报文封装为packet-out报文并发送给第二设备,包括:When the DHCP-supplied message sent by the DHCP server is received, the DHCP-provided packet is encapsulated into a packet-out packet and sent to the second device, including:
由所述openflow模块将所述DHCP提供报文封装成所述packet-out报文;Encapsulating the DHCP-provided packet into the packet-out packet by the openflow module;
所述当接收到所述DHCP服务器发送的DHCP确认报文时,将所述DHCP确认报文封装为packet-out报文,包括:When the DHCP acknowledgement packet sent by the DHCP server is received, the DHCP acknowledgement packet is encapsulated into a packet-out packet, including:
由所述openflow模块将所述DHCP确认报文封装成所述packet-out报文。The DHCP acknowledgement packet is encapsulated into the packet-out packet by the openflow module.
基于上述方案,所述配置信息包括:分配给所述第一设备的网络协议IP地址;Based on the foregoing solution, the configuration information includes: a network protocol IP address allocated to the first device;
所述DHCP发现报文,至少携带有所述第一设备的媒体访问控制MAC地址及所述第一设备的地理位置信息;The DHCP discovery packet carries at least a media access control MAC address of the first device and geographic location information of the first device;
所述方法还包括:The method further includes:
对应存储所述IP地址、所述MAC地址及所述地理位置信息;其中,位于同一个地理位置的不同设备,分配同一个IP地址。The IP address, the MAC address, and the geographical location information are stored correspondingly; wherein different devices located in the same geographical location are assigned the same IP address.
本公开实施例第二方面提供一种分组传输网络PTN中控制信令通道的建立方法,应用于数据通信网络DCN的第二设备中,包括:A second aspect of the embodiments of the present disclosure provides a method for establishing a control signaling channel in a packet transmission network PTN, which is applied to a second device of a data communication network DCN, and includes:
当接收到第一设备广播的DHCP发现报文,且当所述第二设备已与域控制器建立有openflow连接时,将所述DHCP发现报文封装为packet-in报文,并发送给所述域控制器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;Receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, the DHCP discovery packet is encapsulated into a packet-in packet and sent to the The domain controller is configured to: the first device requests an application message for establishing an openflow connection with the domain controller;
当接收到所述域控制器基于所述packet-in报文回复的packet-out报文时,将所述DHCP提供报文发送给所述第一设备,其中,所述packet-out报文,携带有DHCP服务器基于所述DHCP发现报文返回的DHCP提供报文,其中,所述DHCP提供报文携带有所述第一设备与所述域控制器建立openflow连接所需的配置信息;Sending, by the domain controller, the packet that is sent by the domain controller based on the packet-in packet to the first device, where the packet-out packet is And carrying the DHCP-provided message returned by the DHCP server based on the DHCP discovery packet, where the DHCP-provided packet carries configuration information required for the first device to establish an openflow connection with the domain controller;
当接收到第一设备基于所述DHCP提供报文回复的DHCP请求报文时,将所述DHCP请求报文封装为packet-in报文,并发送给域控制器,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;When receiving the DHCP request message sent by the first device based on the DHCP-provided message, the DHCP request message is encapsulated into a packet-in message and sent to the domain controller, where the DHCP request message is sent. And the method is configured to trigger the domain controller to provide an openflow connection of the packet to the first device based on the DHCP;
当接收到所述域控制器返回的携带有DHCP确认报文包括的packet-out报文时,将所述DHCP确认报文转发给所述第一设备,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接。When receiving the packet-out packet that is included in the DHCP acknowledgment message, the DHCP acknowledgment message is forwarded to the first device, where the DHCP acknowledgment message is used. The first device is informed to confirm the establishment of an openflow connection.
基于上述方案,所述方法还包括:Based on the foregoing solution, the method further includes:
当所述第二设备未与所述域控制器建立有openflow连接时,丢弃所述DHCP发现报文。And when the second device does not establish an openflow connection with the domain controller, discarding the DHCP discovery packet.
本公开实施例第三方面提供一种分组传输网络PTN中控制通道的建立方法,应用于数据通信网络DCN的第一设备中,包括:A third aspect of the embodiments of the present disclosure provides a method for establishing a control channel in a packet transmission network PTN, which is applied to a first device of a data communication network DCN, and includes:
广播动态主机配置协议DHCP发现报文,其中,所述DHCP发现报文,用于在于所述第一设备建立有连接的第二设备接收到后,封装为packet-in报文发送给域控制器;所述第二设备为与所述域控制器已建立有openflow连接的设备,所述DHCP发现报文为:所述第一设备申请与所述域控制器建立openflow连接的申请报文;The broadcast dynamic host configuration protocol (DHCP) packet is sent to the domain controller after the second device that is connected to the first device is configured to be encapsulated as a packet-in packet. The second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery packet is: the first device requests an application message for establishing an openflow connection with the domain controller;
接收所述第二设备从packet-out报文中提取的DHCP提供报文;所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;Receiving, by the second device, a DHCP-provided packet extracted from the packet-out packet; the DHCP-providing packet includes: configuration information required for the first device to establish an openflow connection with the domain controller, And based on the DHCP discovery message reply;
基于所述DHCP提供报文,向所述第二设备发送DHCP请求报文,其中,所述DHCP请求报文,用于由所述第二设备封装成packet-in消息发送给所述域控制器,并用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;Sending a DHCP request message to the second device, where the DHCP request message is used by the second device to be encapsulated into a packet-in message and sent to the domain controller. And for triggering the domain controller to provide an openflow connection of the packet to the first device based on the DHCP;
接收所述第二设备从packet-out消息中提取的DHCP确认报文,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;Receiving, by the second device, a DHCP acknowledgment message extracted from the packet-out message, where the DHCP acknowledgment message is used to notify the first device to confirm establishing an openflow connection;
所述packet-out报文均为所述域控制器发送的。The packet-out packet is sent by the domain controller.
基于上述方案,所述基于所述DHCP提供报文,向所述第二设备发送DHCP请求报文,包括:Based on the foregoing solution, the sending the DHCP request message to the second device based on the DHCP providing packet includes:
当接收到多个所述第二设备转发的DHCP提供报文时,基于预设策略仅选择的一个所述DHCP提供报文回复所述DHCP请求报文。When receiving a plurality of DHCP-provided messages forwarded by the second device, only one of the DHCP-provided messages selected based on the preset policy replies to the DHCP request message.
基于上述方案,所述当接收到多个所述第二设备转发的DHCP提供报文时,基于预设策略仅选择的一个所述DHCP提供报文回复所述DHCP请求报文,包括:According to the above solution, when receiving a plurality of DHCP-provided messages forwarded by the second device, the DHCP request message that is selected only by the selected one of the DHCP-based packets is returned to the DHCP request message, including:
根据多个所述DHCP提供报文的接收顺序,基于最早接收的所述DHCP提供报文回复所述DHCP请求报文。And according to the receiving sequence of the plurality of DHCP-provided messages, replying to the DHCP request message based on the first received DHCP-provided message.
本公开实施例第四方面提供一种分组传输网络PTN网元,所述网元为应用于数据通信网络DCN的域控制器,包括:第一解析发送模块、第一封装发送模块及连接模块;A fourth aspect of the embodiments of the present disclosure provides a packet transmission network PTN network element, where the network element is a domain controller applied to a data communication network DCN, and includes: a first parsing and sending module, a first encapsulating and sending module, and a connecting module;
所述第一解析发送模块,用于当接收到封装有动态主机配置协议DHCP发现报文的packet-in报文时,将所述DHCP发现报文发送给DHCP服务器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;The first parsing and sending module is configured to: when receiving the packet-in packet encapsulating the dynamic host configuration protocol DHCP discovery packet, send the DHCP discovery packet to the DHCP server; wherein the DHCP discovery packet The first device applies for an application for establishing an openflow connection with the domain controller;
所述第一封装发送模块,用于当接收到所述DHCP服务器发送的DHCP提供报文时,将所述DHCP提供报文封装为packet-out报文并发送给第二设备,其中,所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;The first encapsulating and sending module is configured to: when receiving the DHCP providing packet sent by the DHCP server, the DHCP providing packet is encapsulated into a packet-out packet and sent to the second device, where The DHCP providing message includes: configuration information required for the first device to establish an openflow connection with the domain controller, and is based on the DHCP discovery message reply;
所述第一解析发送模块,还用于当接收到封装有DHCP请求报文的packet-in报文时,向所述DHCP服务器发送所述DHCP请求报文,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;The first parsing and sending module is further configured to: when receiving a packet-in packet encapsulating a DHCP request packet, send the DHCP request packet to the DHCP server, where the DHCP request packet is Used to trigger the domain controller to provide an openflow connection of the packet with the first device based on the DHCP;
所述第一封装发送模块,还用于当接收到所述DHCP服务器发送的DHCP确认报文时,将所述DHCP确认报文封装为packet-out报文,并发送 给所述第二设备;其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;The first packet sending module is further configured to: when receiving the DHCP acknowledgment message sent by the DHCP server, the DHCP acknowledgment message is encapsulated into a packet-out message, and sent to the second device; The DHCP acknowledgement message is used to notify the first device to confirm that an openflow connection is established.
所述连接模块,还用于基于所述DHCP提供报文,与所述第一设备建立openflow连接;其中,所述packet-in报文是由所述第二设备封装形成的。The connection module is further configured to establish an openflow connection with the first device based on the DHCP-provided packet, where the packet-in packet is encapsulated by the second device.
本公开实施例第五方面提供一种分组传输网络PTN网元,所述PTN网元为应用于数据通信网络DCN的第二设备,包括:A fifth aspect of the embodiments of the present disclosure provides a packet transmission network PTN network element, where the PTN network element is a second device applied to the data communication network DCN, and includes:
第二封装发送模块,用于当接收到第一设备广播的DHCP发现报文,且当所述第二设备已与域控制器建立有openflow连接时,将所述DHCP发现报文封装为packet-in报文,并发送给所述域控制器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;The second encapsulation sending module is configured to: when receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, encapsulating the DHCP discovery packet into a packet- In the message, and sent to the domain controller; wherein the DHCP discovery message is: the first device requests an application message for establishing an openflow connection with the domain controller;
第二解析发送模块,用于当接收到所述域控制器基于所述packet-in报文回复的packet-out报文时,将所述DHCP提供报文发送给所述第一设备,其中,所述packet-out报文,携带有DHCP服务器基于所述DHCP发现报文返回的DHCP提供报文,其中,所述DHCP提供报文携带有所述第一设备与所述域控制器建立openflow连接所需的配置信息;a second parsing sending module, configured to send the DHCP providing packet to the first device, when receiving the packet-out packet that is sent by the domain controller based on the packet-in packet, where The packet-out packet carries a DHCP-provided packet returned by the DHCP server based on the DHCP discovery packet, where the DHCP-provided packet carries the first device and establishes an openflow connection with the domain controller. Required configuration information;
所述第二封装发送模块,还用于当接收到第一设备基于所述DHCP提供报文回复的DHCP请求报文时,将所述DHCP请求报文封装为packet-in报文,并发送给域控制器,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;The second package sending module is further configured to: when receiving the DHCP request message sent by the first device based on the DHCP-provided message, encapsulate the DHCP request message into a packet-in message, and send the packet to the packet-in packet a domain controller, where the DHCP request message is used to trigger the domain controller to connect to the openFlow of the first device based on the DHCP request message;
所述第二解析发送模块,还用于当接收到所述域控制器返回的携带有DHCP确认报文包括的packet-out报文时,将所述DHCP确认报文转发给所述第一设备,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接。The second parsing sending module is further configured to forward the DHCP acknowledgement packet to the first device when receiving the packet-out packet included in the DHCP acknowledgment message returned by the domain controller The DHCP acknowledgement message is used to notify the first device to confirm that an openflow connection is established.
本公开实施例第六方面提供一种分组传输网络PTN网元,所述PTN网元为数据通信网络DCN的第一设备,包括:A sixth aspect of the embodiments of the present disclosure provides a packet transmission network PTN network element, where the PTN network element is a first device of a data communication network DCN, and includes:
广播模块,用于广播动态主机配置协议DHCP发现报文,其中,所述DHCP发现报文,用于在于所述第一设备建立有连接的第二设备接收到后,封装为packet-in报文发送给域控制器;所述第二设备为与所述域控制器已建立有openflow连接的设备,所述DHCP发现报文为:所述第一设备申请与所 述域控制器建立openflow连接的申请报文;a broadcast module, configured to broadcast a dynamic host configuration protocol DHCP discovery packet, where the DHCP discovery packet is used to encapsulate the packet-in packet after the second device that is connected to the first device is received. Sending to the domain controller; the second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery message is: the first device requests to establish an openflow connection with the domain controller. Apply for a message;
接收模块,用于接收所述第二设备从packet-out报文中提取的DHCP提供报文;所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;a receiving module, configured to receive a DHCP-provided packet that is sent by the second device from the packet-out packet, where the DHCP-provided packet includes: establishing, by the first device, an openflow connection with the domain controller Required configuration information, and is based on the DHCP discovery message reply;
发送模块,用于基于所述DHCP提供报文,向所述第二设备发送DHCP请求报文,其中,所述DHCP请求报文,用于由所述第二设备封装成packet-in消息发送给所述域控制器,并用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;a sending module, configured to send, by using the DHCP-provided packet, a DHCP request message to the second device, where the DHCP request message is used by the second device to be encapsulated into a packet-in message and sent to The domain controller is configured to trigger the domain controller to provide an openflow connection with the first device based on the DHCP provisioning message;
所述接收模块,还用于接收所述第二设备从packet-out消息中提取的DHCP确认报文,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;所述packet-out报文均为所述域控制器发送的。The receiving module is further configured to receive a DHCP acknowledgment message that is sent by the second device from the packet-out message, where the DHCP acknowledgment message is used to notify the first device to confirm establishing an openflow connection; The packet-out packet is sent by the domain controller.
本公开实施例第七方面提供一种分组传输网络PTN网元,包括:收发器、处理器及计算机程序;A seventh aspect of the embodiments of the present disclosure provides a packet transmission network PTN network element, including: a transceiver, a processor, and a computer program;
所述处理器,与所述收发器连接,用于通过执行存储在所述存储器的计算机程序的执行,能够实现,能够实现上述任意一个技术方案提供的PTN的控制信道的建立方法。The processor is connected to the transceiver, and is configured to implement a method for establishing a control channel of a PTN provided by any one of the above technical solutions by executing execution of a computer program stored in the memory.
本公开实施例第八方面提供一种计算机存储介质,所述计算机存储介质存储有计算机程序;所述计算机程序被执行后,实现上述任意一个技术方案提供的PTN的控制信道的建立方法。The eighth aspect of the embodiments of the present disclosure provides a computer storage medium, where the computer storage medium stores a computer program; after the computer program is executed, the method for establishing a control channel of the PTN provided by any one of the above technical solutions is implemented.
本公开实施例提供的PTN中控制信令通道的建立方法、PTN网元及存储介质。当一个新接入到DCN的设备,会自动广播DHCP发现报文,接收到该DHCP发现的报文,会将该DHCP发现报文封装为packet-in报文,利用自身与域控制器已建立的openflow连接发送给域控制器,从而将对应的DHCP发现报文提交给分配IP地址确定该设备接入的网关,从而在openflow连接建立过程中,将所有DHCP报文重新封装为可在openflow连接传输的packet-in报文和packet-out报文在已建立的openflow中连接,从而利用已经建立的openflow连接完成对尚未建立的openflow连接进行自动建立。The method for establishing a control signaling channel in a PTN, a PTN network element, and a storage medium are provided in the embodiment of the present disclosure. When a device that is newly connected to the DCN broadcasts a DHCP discovery packet, it will encapsulate the DHCP discovery packet into a packet-in packet, which is established by itself and the domain controller. The openflow connection is sent to the domain controller, so that the corresponding DHCP discovery message is submitted to the assigned IP address to determine the gateway to which the device accesses, so that all DHCP packets are re-encapsulated into openflow connections during the openflow connection establishment process. The transmitted packet-in packet and the packet-out packet are connected in the established openflow, so that the openflow connection that has not been established is automatically established by using the established openflow connection.
附图说明DRAWINGS
图1为本公开实施例提供的第一种PTN中控制信令通道的建立方法的流程示意图;FIG. 1 is a schematic flowchart of a method for establishing a control signaling channel in a first type of PTN according to an embodiment of the present disclosure;
图2为本公开实施例提供的第二种PTN中控制信令通道的建立方法的流程示意图;2 is a schematic flowchart of a method for establishing a control signaling channel in a second PTN according to an embodiment of the present disclosure;
图3为本公开实施例提供的第三种PTN中控制信令通道的建立方法的流程示意图;3 is a schematic flowchart of a method for establishing a control signaling channel in a third PTN according to an embodiment of the present disclosure;
图4为本公开实施例提供的一种域控制器的结构示意图;FIG. 4 is a schematic structural diagram of a domain controller according to an embodiment of the present disclosure;
图5为本公开实施例提供的一种第二设备的结构示意图;FIG. 5 is a schematic structural diagram of a second device according to an embodiment of the present disclosure;
图6为本公开实施例提供的一种第一设备的结构示意图;FIG. 6 is a schematic structural diagram of a first device according to an embodiment of the present disclosure;
图7为本公开实施例提供的第四种PTN中控制信令通道的建立方法的流程示意图;FIG. 7 is a schematic flowchart of a method for establishing a control signaling channel in a fourth PTN according to an embodiment of the present disclosure;
图8为本公开实施例提供的一种DCN网络的架构示意图;FIG. 8 is a schematic structural diagram of a DCN network according to an embodiment of the present disclosure;
图9为本公开实施例提供的第五种PTN中控制信令通道的建立方法的流程示意图;FIG. 9 is a schematic flowchart of a method for establishing a control signaling channel in a fifth PTN according to an embodiment of the present disclosure;
图10为本公开实施例提供的一种一体化设备的结构示意图;FIG. 10 is a schematic structural diagram of an integrated device according to an embodiment of the present disclosure;
图11为本公开实施例提供的一种一体化设备的报文处理的流程示意图;FIG. 11 is a schematic flowchart of packet processing of an integrated device according to an embodiment of the present disclosure;
图12为本公开实施例提供的一种域控制器和DHCP服务器的连接示意图;FIG. 12 is a schematic diagram of connection between a domain controller and a DHCP server according to an embodiment of the present disclosure;
图13为本公开实施例为独立域控制器的报文处理的流程示意图;FIG. 13 is a schematic flowchart of packet processing performed by an independent domain controller according to an embodiment of the present disclosure;
图14为本公开实施例提供的一种CPE设备的结构示意图。FIG. 14 is a schematic structural diagram of a CPE device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合说明书附图及具体实施例对本公开的技术方案做进一步的详细阐述。The technical solutions of the present disclosure are further elaborated below in conjunction with the drawings and specific embodiments.
如图1所示,本实施例提供一种PTN中控制信令通道的建立方法,应用于DCN的域控制器中,包括:As shown in FIG. 1 , this embodiment provides a method for establishing a control signaling channel in a PTN, which is applied to a domain controller of a DCN, and includes:
步骤S110:当接收到封装有动态主机配置协议DHCP发现报文的分组进入packet-in报文时,将所述DHCP发现报文发送给DHCP服务器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立开放流openflow连 接的申请报文;Step S110: When receiving the packet encapsulated with the dynamic host configuration protocol DHCP discovery packet, the packet is sent to the DHCP server, where the DHCP discovery packet is: The device applies for an application message for establishing an open flow openflow connection with the domain controller;
步骤S120:当接收到所述DHCP服务器发送的DHCP提供报文时,将所述DHCP提供报文封装为分组输出packet-out报文并发送给第二设备,其中,所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;Step S120: When receiving the DHCP provisioning packet sent by the DHCP server, the DHCP provisioning packet is encapsulated into a packet output packet-out packet and sent to the second device, where the DHCP providing packet includes The configuration information required for the first device to establish an openflow connection with the domain controller, and is based on the DHCP discovery message reply;
步骤S130:当接收到封装有DHCP请求报文的packet-in报文时,向所述DHCP服务器发送所述DHCP请求报文,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;Step S130: When receiving a packet-in packet encapsulating a DHCP request message, sending the DHCP request message to the DHCP server, where the DHCP request message is used to trigger the domain controller Providing, according to the DHCP providing message, an openflow connection with the first device;
步骤S140:当接收到所述DHCP服务器发送的DHCP确认报文时,将所述DHCP确认报文封装为packet-out报文,并发送给所述第二设备;其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;Step S140: When receiving the DHCP acknowledgement packet sent by the DHCP server, the DHCP acknowledgement packet is encapsulated into a packet-out packet and sent to the second device. The DHCP acknowledgement packet is sent to the second device. Used to notify the first device to confirm establishment of an openflow connection;
步骤S150:基于所述DHCP提供报文,与所述第一设备建立openflow连接;其中,所述packet-in报文是由所述第二设备封装形成的。Step S150: Establish an openflow connection with the first device based on the DHCP-provided packet, where the packet-in packet is formed by the second device.
在本实施例中所述域控制器是直接与所述DHCP服务器相连的设备。通常所述域控制器是位于城域传输网的设备。In this embodiment, the domain controller is a device directly connected to the DHCP server. Typically the domain controller is a device located in a metro transport network.
在本实施例中所述DCN可包括:带内DCN和带外DCN;其中,带内DCN是相对于带外DCN而言的。所述带外DCN中设备进行业务数据传输的业务通道,和进行通信控制信令传输的控制通道是完全隔离的不同物理链路,彼此之间互不影响。而带内DCN则是业务通道和控制通道实质上共用一条物理链路,但是在逻辑层面上是分离的。例如,配置基于同一条物理链路的不同虚拟局域网,实现业务通道和控制通道的隔离。本实施例中所述DCN优选为带内DCN。The DCN in this embodiment may include: an in-band DCN and an out-of-band DCN; wherein the in-band DCN is relative to the out-of-band DCN. The service channel for performing service data transmission by the device in the out-of-band DCN and the control channel for performing communication control signaling transmission are completely isolated physical links, and do not affect each other. In-band DCN, the service channel and the control channel essentially share a physical link, but are separated at a logical level. For example, configuring different virtual local area networks based on the same physical link to isolate the service channel and the control channel. The DCN described in this embodiment is preferably an in-band DCN.
所述第二设备和第一设备均可为CPE设备,所述CPE设备可为常规的PTN设备,也可以为SPTN设备。一个CPE设备新接入到DCN中后,需要配置控制通道,控制通道的配置包括:IP地址的申请、接入网关的确定以及设备的MAC地址的告知。所述MAC地址主要告知DHCP服务器。The second device and the first device may both be CPE devices, and the CPE device may be a regular PTN device or an SPTN device. After a CPE device is newly connected to the DCN, you need to configure a control channel. The configuration of the control channel includes: the application of the IP address, the determination of the access gateway, and the notification of the MAC address of the device. The MAC address mainly informs the DHCP server.
新加入到DCN中的CPE设备会广播申请建立openflow连接的DHCP发现报文;所述DHCP发现报文又可以称为DHCP discover报文。这样就会有 多台与该CPE设备连接一个或多个所述第二设备。这里的第二设备可为集线器(HUB)设备,也可以是连接到所述HUB设备的其他CPE设备。The CPE device that is newly added to the DCN broadcasts a DHCP discovery packet that is used to establish an openflow connection. The DHCP discovery packet can also be called a DHCP discover message. Thus, there are a plurality of the second devices connected to the CPE device. The second device herein may be a hub (HUB) device or other CPE device connected to the HUB device.
所述HUB设备通常可为直接连接到城域传送网的设备。The HUB device can typically be a device that is directly connected to the metro transport network.
在本实施例中,所述第二设备可为所述第一设备连接到所述域控制器的中转设备之一。In this embodiment, the second device may be one of the relay devices connected to the domain controller by the first device.
域控制器接收到第一设备发送的携带有DHCP discover报文的packet-in报文后,会在步骤S110中会从所述packet-in报文提取出所述DHCP discover报文,具体如,将所述DHCP discover报文的封装体去掉,得到完整的所述DHCP discover报文。所述封装体为packet-in报文的基本封装格式,包括所述packet-in报文的报头等信息。例如,可以直接在所述DHCP discover报文添加上所述packet-in报文的报文,就实现了将所述DHCP discover报文封装成packet-in报文。After receiving the packet-in packet carrying the DHCP discover message sent by the first device, the domain controller extracts the DHCP discover message from the packet-in packet in step S110, for example, The encapsulation of the DHCP discover message is removed to obtain the complete DHCP discover message. The package is a basic encapsulation format of the packet-in packet, and includes information such as a header of the packet-in packet. For example, the packet of the packet-in packet can be directly added to the DHCP discover message, and the DHCP discover message can be encapsulated into a packet-in packet.
在一些实施例中,所述packet-in报文中除了封装有所述DHCP发现报文以外,还封装有所述第二设备接收到第一设备发送的所述DHCP发现报文的端口;该端口为所述第二设备与所述第一设备连接的下联端口,为所述第一设备连接到所述第二设备的上联端口。在步骤S150中则可以直接从所述packet-in报文提取出所述第一设备的上联端口,在建立所述openflow连接时,直接将所述上联端口添加到管理VLAN中,实现控制通道的建立。当然,在另一些实施例中,域控制器接收到In some embodiments, the packet-in packet encapsulates the port of the DHCP discovery packet sent by the first device, in addition to the DHCP discovery packet. The port is a downlink port connected to the first device by the second device, and the first device is connected to an uplink port of the second device. In step S150, the uplink port of the first device may be directly extracted from the packet-in packet, and when the openflow connection is established, the uplink port is directly added to the management VLAN to implement control. The establishment of the channel. Of course, in other embodiments, the domain controller receives
在提取出所述DHCP discover报文之后,转发给DHCP服务器。DHCP服务器就能够接收到该DHCP discover报文,而该报文通常携带有客户端信息;所述客户端信息为所述第一设备的相关信息,具体可包括:第一设备的MAC地址以及网络配置信息。所述网络配置信息可包括:所述第一设备的端口信息、位置信息及设备标识信息。所述端口信息可包括:所述第一设备的端口号,和/或,端口类型等信息。所述位置信息可包括:第一设备所在的地理位置的指示信息,例如,所述第一设备所在地理位置的经纬度等。所述设备标识信息可为所述第一设备的任意标识信息,例如,国际移动设备标识码(IMEI)等。After the DHCP discover message is extracted, it is forwarded to the DHCP server. The DHCP server can receive the DHCP discover message, and the message usually carries the client information. The client information is the related information of the first device, and specifically includes: the MAC address of the first device and the network. Configuration information. The network configuration information may include: port information, location information, and device identification information of the first device. The port information may include: a port number of the first device, and/or a port type and the like. The location information may include: indication information of a geographical location where the first device is located, for example, latitude and longitude of the geographic location where the first device is located, and the like. The device identification information may be any identification information of the first device, for example, an International Mobile Equipment Identity (IMEI) or the like.
DHCP服务器接收到所述DHCP discover报文之后,会基于第一设备的 申请,为所述第一设备分配IP地址,并确定所述第一设备接入到DCH中的网关,将所述IP地址和网关标识携带在所述DHCP提供报文中返回给所述域控制器。After receiving the DHCP discover message, the DHCP server allocates an IP address to the first device based on the application of the first device, and determines that the first device accesses the gateway in the DCH, and the IP address is And the gateway identifier is carried in the DHCP provided message and returned to the domain controller.
所述DHCP提供报文,又可以称为DHCP offer报文。The DHCP provides a packet, which may also be referred to as a DHCP offer message.
域控制器接收到之后,会将该DHCP提供报文采用packet-out方式,封装成packet-out报文发送给第二设备。若所述域控制器与所述第二设备之间还有多个中转设备,则所述packet-out报文会通过所述中转设备转发给所述第二设备。After receiving the packet, the DHCP-enabled packet is encapsulated into a packet-out packet and sent to the second device. If there is a plurality of transit devices between the domain controller and the second device, the packet-out packet is forwarded to the second device by the transit device.
所述第二设备在接收到所述packet-out报文之后,会解封所述packet-out消息,然后将所述DHCP offer报文提取出来,例如,去除掉所述packet-out报文的封装体,就会得到所述DHCP offer报文。这里的DHCP offer报文携带有供所述第一设备连接到DCN中,与所述域控制器之间建立openflow连接的配置信息。若所述openflow连接建立了,则相当于完成了所述控制信令的传输通道(即所述控制通道)的建立。After receiving the packet-out packet, the second device decapsulates the packet-out message, and then extracts the DHCP offer packet, for example, removing the packet-out packet. The package will get the DHCP offer message. The DHCP offer message carries configuration information for establishing an openflow connection with the domain controller for the first device to connect to the DCN. If the openflow connection is established, it is equivalent to the establishment of a transmission channel (ie, the control channel) in which the control signaling is completed.
若第二设备接收到了所述DHCP offer报文,会确定是否依据接收到DHCP offer报文建立openflow连接。在一些情况下,由于所述DHCP discover报文是广播的,则可能由多个与所述第二设备连接的第一设备向所述域控制器发送了携带有所述DHCP discover报文的packet-in报文,这样所述第一设备可能就会接收到多个DHCP offer报文,为了避免重复建立,所述仅会选择一个DHCP offer报文进行回复,以发送DHCP请求报文。这样所述域控制器就仅将接收到一个封装成packet-in消息的DHCP请求报文。这里的DHCP请求报文又可称为DHCP request报文。If the second device receives the DHCP offer message, it determines whether an openflow connection is established according to the received DHCP offer message. In some cases, since the DHCP discover message is broadcast, the first device connected to the second device may send the packet carrying the DHCP discover message to the domain controller. The -in packet, so that the first device may receive multiple DHCP offer messages. To avoid repeated establishment, the device only selects a DHCP offer message to reply to send a DHCP request message. In this way, the domain controller will only receive a DHCP request message encapsulated into a packet-in message. The DHCP request message here can also be referred to as a DHCP request message.
故在步骤S130中若域控制器接收到携带有所述DHCP request报文的packet-in报文,会将所述DHCP request报文提取出来,并转发给所述DHCP服务器。所述DHCP服务器会确定第一设备将基于之前分配的IP地址及网关标识,连接到DCN,并建立控制通道。则此时DHCP服务器会识别客户端信息回应DHCP确认报文。在本实施例中,所述DHCP确认报文,又可以称为DHCP ACK报文。这里的DHCP ACK报文会由所述域控制器封装为packet-out报文转发至第二设备。第二设备接收到packet-out报文,所述第二设备会从 packet-out报文提取出DHCP ACK报文,从而告知所述第一设备完成openflow连接,从而完成所述控制信道的建立。Therefore, if the domain controller receives the packet-in packet carrying the DHCP request packet, the DHCP request packet is extracted and forwarded to the DHCP server. The DHCP server determines that the first device will connect to the DCN based on the previously assigned IP address and gateway identity and establish a control channel. Then the DHCP server will recognize the client information and respond to the DHCP acknowledgement message. In this embodiment, the DHCP acknowledgement packet may also be referred to as a DHCP ACK packet. The DHCP ACK packet is forwarded by the domain controller to the packet-out packet to the second device. The second device receives the packet-out packet, and the second device extracts the DHCP ACK packet from the packet-out packet, so that the first device completes the openflow connection, thereby completing the establishment of the control channel.
在本实施例中,所述步骤S150中可包括:In this embodiment, the step S150 may include:
所述域控制器接收到所述DHCP ACK报文时,会与所述第一设备连接到所述第二设备的上联端口添加到管理VLAN中,这样后续所述域控制器就可以利用该管理VLAN与所述第一设备连接,并对所述第一设备进行管理了,相当于完成了openflow连接的控制通道的建立。When the domain controller receives the DHCP ACK packet, the uplink device connected to the second device of the first device is added to the management VLAN, so that the domain controller can use the domain controller. The management VLAN is connected to the first device, and the first device is managed, which is equivalent to completing the establishment of the control channel of the openflow connection.
所述建立所述openflow连接还包括:将所述域控制器的IP地址、传输控制协议(Transport Control Protocol,TCP)端口配置给所述第一设备,并使能与所述第一设备的openflow连接,这样所述第一设备就可以基于所述openflow连接进行数据传输了。The establishing the openflow connection further includes: configuring an IP address of the domain controller, a Transport Control Protocol (TCP) port to the first device, and enabling an openflow of the first device Connected so that the first device can perform data transfer based on the openflow connection.
总之所述步骤S150可包括以下操作的至少其中之一:In summary, the step S150 may include at least one of the following operations:
为第一设备配置管理VLAN、将第一设备的上联端口添加到配置的VLAN中、记录其IP地址,设置其连接的默认网关;使能openflow或ofconfig功能;配置第一设备与域控制器的连接的IP地址及TCP端口。Configure the management VLAN for the first device, add the uplink port of the first device to the configured VLAN, record its IP address, set the default gateway to which it is connected, enable the openflow or ofconfig function, and configure the first device and the domain controller. The IP address of the connection and the TCP port.
显然在本公开实施例中,利用openflow连接,采用packet-in报文和packet-out报文进行DHCP报文的收发,这样域控制器可以接收到所述DHCP发现报文,并触发所述DHCP服务器进行IP地址分配及接入网关的设置等操作,从而完成所述CPE设备接入到DCN,并建立所述openflow连接建立控制通道,这样一方面可以实现设备的即插即用,另一方面不用管理人员手动进行配置,具有配置效率高及用户体验度高的特点。Obviously, in the embodiment of the present disclosure, the DHCP packet is sent and received by using the packet-in packet and the packet-out packet, so that the domain controller can receive the DHCP discovery packet and trigger the DHCP. The server performs operations such as IP address allocation and setting of the access gateway, thereby completing the access of the CPE device to the DCN, and establishing the openflow connection establishment control channel, so that the device can be plug and play on the other hand. It is not required to be manually configured by the administrator, and has the characteristics of high configuration efficiency and high user experience.
所述DHCP提供报文包括:分配给所述第一设备的网络协议IP地址及所述第二设备接入网关的网关标识。The DHCP providing message includes: a network protocol IP address allocated to the first device and a gateway identifier of the second device access gateway.
这里的所述网关标识可包括:供所述第一设备接入到DCN的网关的网关地址,该网关地址可为网关的IP地址等。The gateway identifier here may include: a gateway address of a gateway for the first device to access the DCN, and the gateway address may be an IP address of the gateway or the like.
在本实施例中所述域控制器接收到所述第一报文之后,会识别该报文的类型。确定所述第一报文是否为packet-in报文;若第一报文为所述packet-in报文时,则需要进一步确定是普通的packet-in报文,还是携带有所述DHCP报文的packet-in报文。在本实施中所述packet-in报文携带的所述DHCP报文 可包括:所述DHCP发现报文和所述DCHP请求报文。In this embodiment, after receiving the first packet, the domain controller identifies the type of the packet. Determining whether the first packet is a packet-in packet; if the first packet is the packet-in packet, further determining whether it is an ordinary packet-in packet or carrying the DHCP packet Packet-in message. The DHCP packet carried in the packet-in packet may include: the DHCP discovery packet and the DCHP request packet.
在本实施例中,所述域控制器和所述DHCP服务器为一个一体设备的两个子设备;所述域控制器和所述DHCP服务器之间建立有内部通信接口;所述域控制器至少包括:openflow模块;所述DHCP服务器至少包括第一解析发送模块。所述openlow模块为基于openflow协议进行报文处理及收发的处理模块。所述第一解析发送模块,可为基于DHCP协议进行报文处理及收发的处理模块。通常情况下,域控制器中的这两个模块是相互独立的两个模块,在本实施例中所述域控制器内的两个模块之间建立有连接接口,openflow模块会将从packet-in报文中提取出的DHCP报文转发给第一解析发送模块进行后续处理,而所述第一解析发送模块会将需要封装为packet-out报文的DHCP报文转发给所述openflow模块。In this embodiment, the domain controller and the DHCP server are two sub-devices of an integrated device; an internal communication interface is established between the domain controller and the DHCP server; the domain controller includes at least : an openflow module; the DHCP server includes at least a first parsing transmitting module. The openlow module is a processing module that performs packet processing and transceiving based on the openflow protocol. The first parsing and sending module may be a processing module that performs packet processing and transceiving based on the DHCP protocol. Generally, the two modules in the domain controller are two modules that are independent of each other. In this embodiment, a connection interface is established between two modules in the domain controller, and the openflow module will be from the packet- The DHCP packet extracted in the in packet is forwarded to the first parsing and sending module for subsequent processing, and the first parsing and transmitting module forwards the DHCP packet to be encapsulated into a packet-out packet to the openflow module.
故从所述第二设备接收到所述第一报文之后,会首先识别该报文的类型,若是packet-in报文,会进一步解析是否有携带DHCP报文。若携带有DHCP报文,openflow模块会将提出的DHCP报文转交给第一解析发送模块,由第一解析发送模块进行IP地址等基于DHCP协议的处理。Therefore, after receiving the first packet, the second device first identifies the type of the packet. If the packet is a packet-in packet, it further analyzes whether the DHCP packet is carried. If the DHCP packet is carried, the openflow module forwards the proposed DHCP packet to the first parsing and sending module, and the first parsing and transmitting module performs the DHCP protocol based on the IP address.
进一步地,所述方法还包括:Further, the method further includes:
所述第一解析发送模块将所述DHCP提供报文或所述DHCP确认报文发送给所述openflow模块;The first parsing sending module sends the DHCP providing packet or the DHCP acknowledgement packet to the openflow module;
所述步骤S120具体可包括:由所述openflow模块将所述DHCP提供报文封装成所述packet-out报文;The step S120 may specifically include: encapsulating, by the openflow module, the DHCP-provided packet into the packet-out packet;
所述步骤S140可包括:由所述openflow模块将所述DHCP确认报文封装成所述packet-out报文。The step S140 may include: encapsulating, by the openflow module, the DHCP acknowledgement packet into the packet-out packet.
所述packet-in报文和packet-out报文均为可以利用openflow连接传输的报文。故在本实施例中若需要将DHCP报文利用openflow连接进行传输,需要封装成openflow连接可传输的报文。而第二设备一般为所述域控制器的下游设备,故需要封装成所述packet-in报文,而域控制器需要将DHCP报文封装为packet-out报文。为了实现报文的重新封装,所述域控制器在openflow模块和第一解析发送模块之间建立了接口进行所述DHCP报文的重新封装。在另一些实施例中,当然也可以重新建立一个专用的用于将所述DHCP报文 重新封装为可在openflow连接上传输的报文的封装模块,但是这会增加域控制器内的模块个数,导致域控制器的结构的更加复杂,而本申请利用原有的openflow模块和第一解析发送模块之间建立接口,直接通信,更好的复用了原始的模块及结构进行对应的处理。The packet-in packet and the packet-out packet are packets that can be transmitted by using an openflow connection. Therefore, in this embodiment, if the DHCP message needs to be transmitted by using the openflow connection, the packet that needs to be transmitted by the openflow connection needs to be encapsulated. The second device is generally a downstream device of the domain controller, and is required to be encapsulated into the packet-in packet, and the domain controller needs to encapsulate the DHCP packet into a packet-out packet. In order to implement the re-encapsulation of the packet, the domain controller establishes an interface between the openflow module and the first parsing and sending module to re-encapsulate the DHCP packet. In other embodiments, it is of course possible to re-establish a dedicated encapsulation module for re-encapsulating the DHCP message into a message that can be transmitted on the openflow connection, but this will increase the number of modules in the domain controller. The number of the domain controller is more complicated, and the application establishes an interface between the original openflow module and the first parsing and transmitting module, directly communicates, and better reuses the original module and structure for corresponding processing. .
在一些实施例中,所述配置信息包括:分配给所述第一设备的网络协议IP地址;所述DHCP发现报文,至少携带有所述第一设备的MAC地址及所述第一设备的地理位置信息。In some embodiments, the configuration information includes: a network protocol IP address assigned to the first device; the DHCP discovery message carries at least a MAC address of the first device and the first device Location information.
这样的话,域控制器在接收到DHCP offer报文及所述DHCP发现报文之后,若确定建立与第一设备的openflow连接,则所述域控制器还会对应存储所述IP地址、所述MAC地址及所述地理位置信息;其中,位于同一个地理位置的不同设备,分配同一个IP地址。In this case, after receiving the DHCP offer message and the DHCP discovery message, the domain controller determines to establish an openflow connection with the first device, and the domain controller further stores the IP address, The MAC address and the geographical location information; wherein different devices located in the same geographical location are assigned the same IP address.
若下次有其他CPE设备再次请求建立openflow连接时,所述域控制器可以基于所述地理位置信息,查询对应关系,并进行对应关系中的地理位置信息的匹配,若匹配成功,则直接将匹配的地理位置信息对应的IP地址封装作为DHCP提供报文的内容封装为packet-out报文下发给请求设备。在一些实施例中,所述DHCP提供报文,可以由所述域控制器自身的第一解析发送模块模拟仿造的。If another CPE device requests to establish an openFlow connection again, the domain controller may query the corresponding relationship based on the geographical location information, and perform matching of the geographical location information in the corresponding relationship. If the matching is successful, the domain controller directly The IP address encapsulation corresponding to the geographical location information is encapsulated as a packet of the DHCP-provided packet and is sent to the requesting device. In some embodiments, the DHCP providing message may be simulated by the first parsing sending module of the domain controller itself.
在另一些实施例中,所述对应关系存储在DHCP服务器中,所述域控制器依旧执行步骤S110至步骤S150,而对应关系的查询及地理位置信息的匹配,则由所述DHCP服务器进行执行,而域控制器照常从所述DHCP服务器接收所述DHCP offer报文。In other embodiments, the corresponding relationship is stored in the DHCP server, and the domain controller still performs step S110 to step S150, and the query of the corresponding relationship and the matching of the geographical location information are performed by the DHCP server. And the domain controller receives the DHCP offer message from the DHCP server as usual.
在上述实施例中,同一个地理位置的不同设备,利用各自的MAC地址进行区分,基于MAC地址建立不同的openflow连接及控制通道的建立,这样可以缓解IP地址数量的紧张程度。而位于同一个地理位置的不同设备,可能是新设备替换了旧设备,这样的话,若旧设备不使用了,不因为旧设备的停用,导致分配给旧设备的IP地址也被废用,从而提升了IP地址的有效使用率。In the above embodiment, different devices in the same geographical location are distinguished by their respective MAC addresses, and different openflow connections and control channels are established based on the MAC addresses, which can alleviate the tension of the number of IP addresses. Different devices in the same geographical location may replace the old device with the new device. In this case, if the old device is not used, the IP address assigned to the old device is not used because the old device is disabled. Thereby improving the effective use rate of the IP address.
如图2所示,本实施例提供一种分组传输网络PTN中控制信令通道的建立方法,应用于数据通信网络DCN的第二设备中,包括:As shown in FIG. 2, this embodiment provides a method for establishing a control signaling channel in a packet transmission network PTN, which is applied to a second device of a data communication network DCN, and includes:
步骤S210:当接收到第一设备广播的DHCP发现报文,且当所述第二设备已与所述域控制器建立有openflow连接时,将所述DHCP发现报文封装为packet-in报文,并发送给域控制器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;Step S210: When receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, the DHCP discovery packet is encapsulated into a packet-in packet. And sending to the domain controller, where the DHCP discovery message is: the first device requests an application message for establishing an openflow connection with the domain controller;
步骤S220:当接收到所述域控制器基于所述packet-in报文回复的packet-out报文时,将所述DHCP提供报文发送给所述第一设备,其中,所述packet-out报文,携带有DHCP服务器基于所述DHCP发现报文返回的DHCP提供报文。其中,所述DHCP提供报文携带有所述第一设备与所述域控制器建立openflow连接所需的配置信息;Step S220: When receiving the packet-out packet replied by the domain controller based on the packet-in packet, sending the DHCP provisioning packet to the first device, where the packet-out The packet carries a DHCP-provided message returned by the DHCP server based on the DHCP Discovery message. The DHCP providing packet carries configuration information required for the first device to establish an openflow connection with the domain controller.
步骤S230:当接收到第一设备基于所述DHCP提供报文回复的DHCP请求报文时,将所述DHCP请求报文封装为packet-in报文,并发送给域控制器,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;Step S230: When receiving the DHCP request message sent by the first device based on the DHCP-provided message, the DHCP request message is encapsulated into a packet-in message and sent to the domain controller, where the a DHCP request packet, configured to trigger the domain controller to connect to the openFlow of the first device based on the DHCP request packet;
步骤S240:当接收到所述域控制器返回的携带有DHCP确认报文包括的packet-out报文时,将所述DHCP确认报文转发给所述第一设备,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接。Step S240: When receiving the packet-out packet included in the DHCP acknowledgment message returned by the domain controller, forwarding the DHCP acknowledgment message to the first device, where the DHCP acknowledgement message is sent. And means for informing the first device to confirm establishing an openflow connection.
在本实施例中所述第二设备为与所述第一设备直接建立有物理连接的设备。所述第二设备接收到所述第一设备广播的所述DHCP发现报文之后,会将所述DHCP发现报文封装为packet-in报文,通过一个或多个中转设备发送给所述域控制器,而域控制器执行前述的步骤S110至步骤S150之后,则会第一设备会与域控制器基于openflow连接交换packet-in报文和packet-out报文,并通过packet-in报文的封装,及packet-out报文的解析,会将接收到的DHCP报文发送给第一设备,从而协助第一设备利用第二设备与域控制器之间建立的openflow连接,建立openflow连接,从而完成第一设备与域控制器之间的控制信道的建立。In this embodiment, the second device is a device that is directly connected to the first device. After receiving the DHCP discovery packet broadcast by the first device, the second device encapsulates the DHCP discovery packet into a packet-in packet, and sends the packet to the domain through one or more relay devices. After the domain controller performs the foregoing steps S110 to S150, the first device exchanges the packet-in packet and the packet-out packet with the domain controller based on the openflow connection, and passes the packet-in packet. The encapsulation and the parsing of the packet-out packet will send the received DHCP packet to the first device, thereby assisting the first device to establish an openflow connection by using an openflow connection established between the second device and the domain controller. Thereby completing the establishment of a control channel between the first device and the domain controller.
可选地,所述方法还包括:Optionally, the method further includes:
当所述第二设备未与所述域控制器建立有openflow连接时,丢弃所述DHCP发现报文。And when the second device does not establish an openflow connection with the domain controller, discarding the DHCP discovery packet.
在本实施例中,所述第二设备接收到所述DHCP报文之后,会首先判断 自身是否有与域控制器建立openflow连接,若有则将DHCP报文封装为packet-in报文转发给域控制器,否则丢弃该DHCP报文,不再继续广播,以免引起广播风暴。In this embodiment, after receiving the DHCP message, the second device first determines whether it has an openflow connection with the domain controller, and if so, encapsulates the DHCP packet into a packet-in packet and forwards the packet to the packet-in packet. The domain controller, otherwise discarding the DHCP packet, does not continue to broadcast, so as not to cause a broadcast storm.
具体的如何判断所述第二设备是否已经与所述域控制器建立所述openflow连接,所述第二设备可以判断自己是否至少有一个端口已经添加到管理VLAN中,若已经添加则确定第二设备已经与域控制器建立openflow连接,否则就没有,就直接丢弃所述DHCP发现报文。Specifically, it is determined whether the second device has established the openflow connection with the domain controller, and the second device may determine whether at least one port has been added to the management VLAN, and if it has been added, determine the second The device has established an openflow connection with the domain controller. Otherwise, the DHCP discovery packet is discarded.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
判断接收所述DHCP发现报文的下联端口是否已添加到管理虚拟局域网VLAN中;其中,所述下联端口为所述第二设备直接连接到所述第一设备,或通过第三设备连接到所述第一设备的连接端口;Determining whether the downlink port that receives the DHCP discovery packet has been added to the management virtual local area network (VLAN); wherein the downlink port is directly connected to the first device by the second device, or is connected to the first device by using the third device. The connection port of the first device;
当所述下联端口已添加到管理虚拟局域网VLAN中时,丢弃所述DHCP发现报文。When the downlink port has been added to the management virtual local area network VLAN, the DHCP discovery message is discarded.
如图3所示,本实施例提供一种分组传输网络PTN中控制通道的建立方法,应用于DCN的第一设备中,包括:As shown in FIG. 3, this embodiment provides a method for establishing a control channel in a packet transmission network PTN, which is applied to a first device of a DCN, and includes:
步骤S310:广播DHCP发现报文,其中,所述DHCP发现报文,用于在于所述第一设备建立有连接的第二设备接收到后,封装为packet-in报文发送给域控制器;所述第二设备为与所述域控制器已建立有openflow连接的设备,所述DHCP发现报文为:所述第一设备申请与所述域控制器建立openflow连接的申请报文;Step S310: Broadcasting a DHCP discovery packet, where the DHCP discovery packet is sent to the domain controller after being encapsulated by the second device that is connected by the first device, and is encapsulated as a packet-in packet; The second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery packet is: the first device requests an application for establishing an openflow connection with the domain controller;
步骤S320:接收所述第二设备从packet-out报文中提取的DHCP提供报文;所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;Step S320: Receive a DHCP-provided packet that is extracted by the second device from the packet-out packet. The DHCP-provided packet includes: required for the first device to establish an openflow connection with the domain controller. Configuration information, and is based on the DHCP discovery message reply;
步骤S330:基于所述DHCP提供报文,向所述第二设备发送DHCP请求报文,其中,所述DHCP请求报文,用于由所述第二设备封装成packet-in消息发送给所述域控制器,并用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;Step S330: Send a DHCP request message to the second device, where the DHCP request message is used by the second device to be encapsulated into a packet-in message and sent to the a domain controller, configured to trigger the domain controller to provide an openflow connection of the packet to the first device based on the DHCP;
步骤S340:接收所述第二设备从packet-out消息中提取的DHCP确认报文,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow 连接;Step S340: Receive a DHCP acknowledgement message that is sent by the second device from the packet-out message, where the DHCP acknowledgement message is used to notify the first device to confirm that an openflow connection is established.
所述packet-out报文均为所述域控制器发送的。The packet-out packet is sent by the domain controller.
在本实施例中所述第一设备可为各种待接入到DCN中的设备,在建立物理连接之后,所述第一设备会自动广播所述DHCP发现报文,这样的话,与所述第一设备建立有物理连接的其他设备就会接收到该报文。在本实施例中接收到该DHCP发现报文的设备可为第二设备。In this embodiment, the first device may be a device to be accessed in the DCN, and after the physical connection is established, the first device automatically broadcasts the DHCP discovery packet, and thus, The other device that has established a physical connection with the first device will receive the message. The device that receives the DHCP discovery message in this embodiment may be the second device.
所述第二设备会利用自身与域控制器建立的openflow连接,转发第一设备建立openflow获取配置信息及确认建立所涉及的所有DHCP报文,从而第一设备可以在第二设备的协助下,自动建立与域控制器的openflow连接,完成所述控制信道的建立。The second device may use the openFlow connection established by the second device to forward the first device to obtain configuration information and confirm all the DHCP packets involved, so that the first device can be assisted by the second device. The openflow connection with the domain controller is automatically established to complete the establishment of the control channel.
可选地,所述步骤S330可包括:Optionally, the step S330 may include:
当接收到多个所述第二设备转发的DHCP提供报文时,基于预设策略仅选择的一个所述DHCP提供报文回复所述DHCP请求报文。When receiving a plurality of DHCP-provided messages forwarded by the second device, only one of the DHCP-provided messages selected based on the preset policy replies to the DHCP request message.
在一些实施例中,与所述第一设备有建立物理连接的第二设备不止一个,则所述第一设备可能会接收到多个所述DHCP提供报文。在本实施例中为了防止重复建立,建立冗余连接,所述第一设备会基于预设策略选择一个DHCP提供报文进行DHCP请求报文的回复,这样利用第二设备的openflow连接完成第一设备的openflow连接过程中的所有信息交互。In some embodiments, if there is more than one second device having a physical connection with the first device, the first device may receive a plurality of the DHCP offer messages. In this embodiment, in order to prevent redundant establishment, a redundant connection is established, and the first device selects a DHCP-provided message to perform a DHCP request message reply based on the preset policy, so that the first device is used to complete the first connection by using the openflow connection of the second device. All information in the device's openflow connection process interacts.
在一些实施例中,所述DHCP服务器,在为所述第一设备分配了IP地址之后的预定时间范围内未接收到对应的DHCP请求报文,会确认本次分配失效。例如,若该IP地址仅分配了该第一设备,则重新将该IP地址设置为闲置IP地址,若该IP地址是该第一设备与其他设备的共用IP地址,则不建立该IP地址与该第一设备的设备标识的对应关系,该设备对应关系可为所述MAC地址。In some embodiments, the DHCP server does not receive a corresponding DHCP request message within a predetermined time range after the IP address is assigned to the first device, and the current allocation failure is confirmed. For example, if the IP address is only assigned to the first device, the IP address is re-set as an idle IP address. If the IP address is a shared IP address of the first device and other devices, the IP address is not established. Corresponding relationship of the device identifier of the first device, where the device correspondence relationship may be the MAC address.
可选地,所述步骤S330可包括:Optionally, the step S330 may include:
根据多个所述DHCP提供报文的接收顺序,基于最早接收的所述DHCP提供报文回复所述DHCP请求报文。And according to the receiving sequence of the plurality of DHCP-provided messages, replying to the DHCP request message based on the first received DHCP-provided message.
由于所述DHCP发现报文是广播的,多个第二设备接收的先后有可能不同,第二设备到域控制器链路条数也可能不同,第二设备到域控制器的传输 带宽有可能不同,越早向所述第一设备返回所述DHCP提供报文,表明第一设备利用该第二设备与域控制器建立openflow连接,同样可能会具有链路跳数少,传输时延小及传输带宽大的优点,故在本实施例中基于DHCP提供报文的接收先后顺序,仅选择最找的DHCP提供报文进行回复,已建立第一设备与域控制器的openflow连接。Since the DHCP discovery packet is broadcast, the sequence of receiving the second device may be different, the number of links from the second device to the domain controller may be different, and the transmission bandwidth of the second device to the domain controller may be Differently, the DHCP device provides a message to the first device, indicating that the first device establishes an openflow connection with the domain controller by using the second device, and may have a small number of link hops and a small transmission delay. The advantage of the transmission bandwidth is large. Therefore, in this embodiment, based on the sequence of receiving the packets provided by the DHCP, only the most-fetched DHCP-provided packet is selected for reply, and the openflow connection between the first device and the domain controller is established.
在一些实施例中,所述第二设备还可以将自身的状况信息转发给所述第一设备,或,基于自身的状况信息决策出的建立优先级告知所述第一设备。这样第一设备在接收到所述状况信息或所述建立优先级之后,在步骤S330中,会选择对应的建立优先级高的DHCP提供报文进行回复,或者,选择状况信息满足预设条件的DHCP提供报文进行回复。In some embodiments, the second device may also forward its own status information to the first device, or inform the first device based on the establishment priority determined by its own status information. After the first device receives the status information or the establishing priority, in step S330, the corresponding DHCP-provided DHCP-provided message is selected to be replied, or the status information is selected to meet the preset condition. DHCP provides a message to reply.
例如,这里的状况信息,可包括:所述第二设备下联的其他设备的个数,平均负载率和/或带宽等参数。所述建立优先级与个数负相关、与所述平均负载率负相关,与所述带宽正相关。当然所述状况信息包括不局限于上述信息。For example, the status information herein may include: the number of other devices connected to the second device, the average load rate, and/or the bandwidth. The establishment priority is negatively correlated with the number, negatively correlated with the average load rate, and positively correlated with the bandwidth. Of course, the status information includes not limited to the above information.
在本实施例中所述第一设备在接收到所述DHCP提供报文之后,确定回复所述DHCP请求报文时,可以开始将对应的DHCP提供报文中携带的IP地址及网关标识等进行openflow连接的配置。在一些实施例中,所述第一设备也可以是在接收到DHCP确认报文之后,才进行所述openflow配置。In this embodiment, after receiving the DHCP-provided message, the first device may determine to perform the DHCP request message, and may start to perform the IP address and the gateway identifier carried in the corresponding DHCP-provided message. The configuration of the openflow connection. In some embodiments, the first device may also perform the openflow configuration after receiving the DHCP acknowledgement message.
如图4所示,本实施例提供一种PTN网元,所述网元为应用于DCN的域控制器,包括:第一解析发送模块110、第一封装发送模块120及连接模块130;As shown in FIG. 4, the embodiment provides a PTN network element, where the network element is a domain controller applied to the DCN, and includes: a first parsing and sending module 110, a first encapsulating and sending module 120, and a connecting module 130;
所述第一解析发送模块110,用于当接收到封装有动态主机配置协议DHCP发现报文的packet-in报文时,将所述DHCP发现报文发送给DHCP服务器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;The first parsing and sending module 110 is configured to: when receiving the packet-in packet encapsulating the dynamic host configuration protocol DHCP discovery packet, send the DHCP discovery packet to the DHCP server; wherein the DHCP discovery The packet is: the first device applies for an application for establishing an openflow connection with the domain controller;
所述第一封装发送模块120,用于当接收到所述DHCP服务器发送的DHCP提供报文时,将所述DHCP提供报文封装为packet-out报文并发送给第二设备,其中,所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;The first encapsulation sending module 120 is configured to: when receiving the DHCP provisioning packet sent by the DHCP server, encapsulating the DHCP provisioning packet into a packet-out packet and sending the packet to the second device, where The DHCP providing message includes: configuration information required for the first device to establish an openFlow connection with the domain controller, and is based on the DHCP discovery message reply;
所述第一解析发送模块110,还用于当接收到封装有DHCP请求报文的packet-in报文时,向所述DHCP服务器发送所述DHCP请求报文,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;The first parsing and sending module 110 is further configured to: when receiving a packet-in packet encapsulating a DHCP request packet, send the DHCP request packet to the DHCP server, where the DHCP request packet is sent Used to trigger the domain controller to provide an openflow connection with the first device based on the DHCP provisioning message;
所述第一封装发送模块120,还用于当接收到所述DHCP服务器发送的DHCP确认报文时,将所述DHCP确认报文封装为packet-out报文,并发送给所述第二设备;其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;The first encapsulating and sending module 120 is further configured to: when receiving the DHCP acknowledgment message sent by the DHCP server, encapsulating the DHCP acknowledgment message into a packet-out packet, and sending the packet to the second device The DHCP confirmation message is used to notify the first device to confirm that an openflow connection is established;
所述连接模块130,还用于基于所述DHCP提供报文,与所述第一设备建立openflow连接;其中,所述packet-in报文是由所述第二设备封装形成的。The connection module 130 is further configured to establish an openflow connection with the first device based on the DHCP-provided packet, where the packet-in packet is encapsulated by the second device.
所述第一封装发送模块120可为基于openflow协议进行报文处理及转发的处理模组;所述第一解析发送模块110可为基于DHCP协议进行报文及转发的处理模块。The first packet sending module 120 can be a processing module for processing and forwarding packets according to the openflow protocol. The first parsing and sending module 110 can be a processing module for performing packet forwarding and forwarding based on the DHCP protocol.
所述连接模块可为对应于通信接口及处理器。The connection module can correspond to a communication interface and a processor.
所述处理器,可包括:中央处理器、微处理器、数字信号处理器、应用处理器、可编程阵列或专用集成电路等。The processor may include a central processing unit, a microprocessor, a digital signal processor, an application processor, a programmable array, or an application specific integrated circuit.
上述的第一解析发送模块110、第一封装发送模块120及连接模块130都可以对应于所述处理器;所述处理器通过计算机程序等执行,实现上述各个模块的操作。The first parsing and transmitting module 110, the first encapsulating and transmitting module 120, and the connecting module 130 may correspond to the processor; and the processor is executed by a computer program or the like to implement the operations of the foregoing modules.
可选地,所述DHCP提供报文包括:分配给所述第一设备的网络协议IP地址及所述第二设备接入网关的网关标识。Optionally, the DHCP providing message includes: a network protocol IP address allocated to the first device and a gateway identifier of the second device access gateway.
在一些实施例中,所述域控制器还包括:In some embodiments, the domain controller further includes:
第一端口模块,用于接收所述第二设备发送的第一报文;这里的第一端口模块可包括域控制器与下游设备连接的下联端口;a first port module, configured to receive a first packet sent by the second device; where the first port module may include a downlink port that is connected to the downstream device by the domain controller;
识别模块,用于识别所述第一报文的类型;这里的识别模块,同样可对应于处理器,可以通过报文的格式等处理操作,识别出该报文的类型。The identification module is configured to identify the type of the first message; the identification module herein can also correspond to the processor, and can identify the type of the message by processing operations such as the format of the message.
所述第一封装发送模块120,还用于当所述第一报文的类型为所述packet-in报文时,由openlow模块解析所述第一报文;并基于解析的结果确定所述第一报文是否为有携带DHCP报文,其中,所述DHCP报文为:所述 DHCP发现报文或DHCP请求报文;当所述第一报文携带有所述DHCP报文时,所述DHCP发现报文或DHCP请求报文,用于供第一解析发送模块发送给DHCP服务器。The first packet sending module 120 is further configured to: when the type of the first packet is the packet-in packet, parse the first packet by an openlow module; and determine, according to the result of the parsing, Whether the first packet carries a DHCP packet, where the DHCP packet is: the DHCP discovery packet or the DHCP request packet; when the first packet carries the DHCP packet, the The DHCP discovery packet or the DHCP request packet is sent to the DHCP server by the first parsing sending module.
在另一些实施例中,所述第一解析发送模块110,还用于接收所述DHCP提供报文或所述DHCP确认报文时,将所述DHCP提供报文或所述DHCP确认报文发送给所述openflow模块。In another embodiment, the first parsing sending module 110 is further configured to send the DHCP providing packet or the DHCP acknowledgement packet when receiving the DHCP providing packet or the DHCP acknowledgement packet. Give the openflow module.
在一些实施例中,所述配置信息包括:分配给所述第一设备的网络协议IP地址;所述DHCP发现报文,至少携带有所述第一设备的媒体访问控制MAC地址及所述第一设备的地理位置信息;In some embodiments, the configuration information includes: a network protocol IP address assigned to the first device; the DHCP discovery message carries at least a media access control MAC address of the first device, and the Geographic location information of a device;
所述PTN网元还包括:The PTN network element further includes:
存储模块,用于对应存储所述IP地址、所述MAC地址及所述地理位置信息;其中,位于同一个地理位置的不同设备,分配同一个IP地址。And a storage module, configured to correspondingly store the IP address, the MAC address, and the geographical location information; wherein different devices located in the same geographical location are assigned the same IP address.
所述存储模块还包括存储介质,可用于存储所述对应关系。The storage module further includes a storage medium, and is configured to store the correspondence.
如图5所示,本实施例还提供一种PTN网元,所述PTN网元为DCN的第二设备,包括:As shown in FIG. 5, the embodiment further provides a PTN network element, where the PTN network element is a second device of the DCN, and includes:
第二封装发送模块210,用于当接收到第一设备广播的DHCP发现报文,且当所述第二设备已与域控制器建立有openflow连接时,将所述DHCP发现报文封装为packet-in报文,并发送给所述域控制器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;The second encapsulation sending module 210 is configured to: when receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, encapsulating the DHCP discovery packet into a packet -in the message, and sent to the domain controller; wherein the DHCP discovery message is: the first device requests an application message for establishing an openflow connection with the domain controller;
第二解析发送模块220,用于当接收到所述域控制器基于所述packet-in报文回复的packet-out报文时,将所述DHCP提供报文发送给所述第一设备,其中,所述packet-out报文,携带有DHCP服务器基于所述DHCP发现报文返回的DHCP提供报文,其中,所述DHCP提供报文携带有所述第一设备与所述域控制器建立openflow连接所需的配置信息;The second parsing and sending module 220 is configured to send the DHCP providing packet to the first device when receiving the packet-out packet replied by the domain controller based on the packet-in packet, where The packet-out packet carries a DHCP-provided packet returned by the DHCP server based on the DHCP discovery packet, where the DHCP-provided packet carries the first device and establishes an openflow with the domain controller. Connect the required configuration information;
所述第二封装发送模块210,还用于当接收到第一设备基于所述DHCP提供报文回复的DHCP请求报文时,将所述DHCP请求报文封装为packet-in报文,并发送给域控制器,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;The second package sending module 210 is further configured to: when receiving the DHCP request message sent by the first device based on the DHCP-provided message, encapsulate the DHCP request message into a packet-in message, and send the packet a domain controller, wherein the DHCP request message is used to trigger the domain controller to connect to the openFlow of the first device based on the DHCP provisioning message;
所述第二解析发送模块220,还用于当接收到所述域控制器返回的携带 有DHCP确认报文包括的packet-out报文时,将所述DHCP确认报文转发给所述第一设备,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接。The second parsing and sending module 220 is further configured to: when receiving the packet-out packet included in the DHCP acknowledgment message returned by the domain controller, forwarding the DHCP acknowledgment message to the first The device, wherein the DHCP acknowledgement message is used to notify the first device to confirm establishment of an openflow connection.
在本实施例中所述第二封装发送模块210及所述第二解析发送模块220都对应于处理器和收发器;不同的是,一个用于封装报文后发送,一个用于解析后报文发送。这里的处理器可为前述的任意一种。In the embodiment, the second package sending module 210 and the second parsing sending module 220 correspond to the processor and the transceiver; the difference is that one is used for encapsulating the message and then one is used for parsing and reporting. Send the text. The processor here can be any of the foregoing.
可选地,所述PTN网元还包括:Optionally, the PTN network element further includes:
丢弃单元,用于当所述第二设备未与所述域控制器建立有openflow连接时,丢弃所述DHCP发现报文。And the discarding unit is configured to discard the DHCP discovery packet when the second device does not establish an openflow connection with the domain controller.
丢弃单元可对应于处理器,所述处理器丢弃DHCP发现报文,具体为屏蔽端口发送所述DHCP发现报文的操作,删除DHCP发现报文的存储等。The discarding unit may correspond to a processor, and the processor discards the DHCP discovery packet, specifically, the operation of the masking port to send the DHCP discovery packet, and the deletion of the DHCP discovery packet.
如图6所示,本实施例提供一种分组传输网络PTN网元,所述PTN网元为数据通信网络DCN的第一设备,包括:As shown in FIG. 6, the embodiment provides a PTN network element of a packet transmission network, where the PTN network element is a first device of a data communication network DCN, and includes:
广播模块310,用于广播动态主机配置协议DHCP发现报文,其中,所述DHCP发现报文,用于在于所述第一设备建立有连接的第二设备接收到后,封装为packet-in报文发送给域控制器;所述第二设备为与所述域控制器已建立有openflow连接的设备,所述DHCP发现报文为:所述第一设备申请与所述域控制器建立openflow连接的申请报文;The broadcast module 310 is configured to broadcast a dynamic host configuration protocol DHCP discovery packet, where the DHCP discovery packet is used to encapsulate the packet-in report after the second device that is connected to the first device is received. The device is sent to the domain controller; the second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery message is: the first device requests to establish an openflow connection with the domain controller. Application message;
接收模块320,用于接收所述第二设备从packet-out报文中提取的DHCP提供报文;所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;The receiving module 320 is configured to receive a DHCP provisioning packet that is extracted by the second device from the packet-out packet, where the DHCP providing packet includes: establishing, by the first device, an openflow connection with the domain controller. Required configuration information, and is based on the DHCP discovery message reply;
发送模块330,用于基于所述DHCP提供报文,向所述第二设备发送DHCP请求报文,其中,所述DHCP请求报文,用于由所述第二设备封装成packet-in消息发送给所述域控制器,并用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;The sending module 330 is configured to send, according to the DHCP-provided packet, a DHCP request message to the second device, where the DHCP request message is used to be encapsulated into a packet-in message by the second device. Giving the domain controller, and used to trigger the domain controller, to provide an openflow connection of the packet with the first device based on the DHCP;
所述接收模块320,还用于接收所述第二设备从packet-out消息中提取的DHCP确认报文,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;所述packet-out报文均为所述域控制器发送的。The receiving module 320 is further configured to receive a DHCP acknowledgment message that is sent by the second device from the packet-out message, where the DHCP acknowledgment message is used to notify the first device to confirm that an openflow connection is established. The packet-out packet is sent by the domain controller.
所述广播单元对应于处理器和收发器,可以形成所述DHCP发现报文, 并利用收发器向其他设备发送所述DHCP发现报文。The broadcast unit corresponds to the processor and the transceiver, and may form the DHCP discovery message, and send the DHCP discovery message to the other device by using the transceiver.
所述接收模块320及所述发送模块330都可对应于收发器,用于收发报文。Both the receiving module 320 and the sending module 330 can correspond to a transceiver for transmitting and receiving messages.
在一些实施例中,所述第一设备还包括:配置模块,该配置模块对应于处理器,该处理器可用于基于所述HDPC提供报文进行openflow连接的自动配置。In some embodiments, the first device further includes: a configuration module corresponding to the processor, the processor being operative to perform automatic configuration of the openflow connection based on the HDPC providing the message.
可选地,所述发送模块330,可用于当接收到多个所述第二设备转发的DHCP提供报文时,基于预设策略仅选择的一个所述DHCP提供报文回复所述DHCP请求报文。Optionally, the sending module 330 is configured to: when receiving a plurality of DHCP-provided messages forwarded by the second device, only one of the DHCP-provided messages selected according to a preset policy replies to the DHCP request message. Text.
在一些实施例中,所述发送模块330,具体用于根据多个所述DHCP提供报文的接收顺序,基于最早接收的所述DHCP提供报文回复所述DHCP请求报文。In some embodiments, the sending module 330 is specifically configured to: according to the receiving sequence of the plurality of DHCP-provided messages, reply to the DHCP request message based on the first received DHCP-provided message.
如图7所示,本实施例提供一种PTN网元,包括:收发器、处理器及计算机程序;As shown in FIG. 7, the embodiment provides a PTN network element, including: a transceiver, a processor, and a computer program;
所述处理器,与收发器连接、用于通过执行所述计算机程序,能够实现前述一个或多个技术方案提供的PTN中控制信令通道的建立方法的执行。The processor is connected to the transceiver for performing the execution of the method for establishing a control signaling channel in the PTN provided by the foregoing one or more technical solutions by executing the computer program.
所述处理器通过执行所述计算机程序,能够实现一个或多个应用于域名解析***的域名解析方法。The processor can implement one or more domain name resolution methods applied to the domain name resolution system by executing the computer program.
所述收发器可为网元的网络端口,这里的PTN网元可为前述的域控制器、第一设备、第二设备或DHCP服务器等。这里的处理器可为前述的中央处理器、微处理器、数字信号处理器、应用处理器、可编程阵列或专用集成电路等中的一个或多个。所述处理器的数目也可以为一个或多个。The transceiver may be a network port of a network element, where the PTN network element may be the foregoing domain controller, the first device, the second device, or a DHCP server. The processor herein may be one or more of the aforementioned central processing unit, microprocessor, digital signal processor, application processor, programmable array or application specific integrated circuit. The number of processors may also be one or more.
所述收发器可以通过集成电路总线等设备内总线接口,连接到所述处理器。The transceiver can be coupled to the processor via an in-device bus interface, such as an integrated circuit bus.
本公开实施例还提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行后,实现前述一个或多个技术方案提供的PTN中控制信令通道的建立方法的执行。The embodiment of the present disclosure further provides a computer storage medium, where the computer storage medium stores a computer program, and after the computer program is executed by the processor, implements establishment of a control signaling channel in the PTN provided by the foregoing one or more technical solutions. Execution of the method.
所述计算机存储介质可为:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、 磁碟或者光盘等各种可以存储程序代码的介质。所述计算机存储介质优选为非瞬间存储介质。The computer storage medium may be: a removable storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. The computer storage medium is preferably a non-transitory storage medium.
以下结合上述任意一个实施例提供两个具体示例:Two specific examples are provided below in connection with any of the above embodiments:
示例1:Example 1:
如图7所示,本示例基于前述任意一个实施例提供一种PTN中控制信令通道的建立方法,包括:As shown in FIG. 7, the present example provides a method for establishing a control signaling channel in a PTN according to any one of the foregoing embodiments, including:
步骤S1:CPE上电后通过端口X广播携带4094的DHCP discover报文。上一跳设备及CPE收到对方发送的DHCP discover报文后,上送至本设备的处理器,发现本设备未与控制器建立连接,丢弃该报文。Step S1: After the CPE is powered on, the DHCP discover message carrying the 4094 is broadcasted through the port X. After receiving the DHCP Discover message sent by the peer, the device and the CPE send the packet to the processor of the device. The device finds that the device is not connected to the controller and discards the packet.
步骤S2:上一跳设备若已与控制器建立openflow连接,会从端口Y收到的DHCP discover报文通过packet-in方式进行封装,形成packet-in报文,并发送至控制器;Step S2: If the last hop device has established an openflow connection with the controller, the DHCP discover message received from the port Y is encapsulated in a packet-in manner to form a packet-in packet and sent to the controller.
步骤S3:域控制器收到packet-in报文并解封装为DHCP discover报文后,将通知DHCP服务器,例如,向DHCP服务器转发DHCP discover报文。Step S3: After receiving the packet-in packet and decapsulating the packet into a DHCP discover message, the domain controller notifies the DHCP server, for example, forwards the DHCP discover message to the DHCP server.
步骤S4:DHCP服务器收到DHCP Discover报文,识别客户端信息,回应DHCP Offer报文,分配永久IP及网关;Step S4: The DHCP server receives the DHCP Discover message, identifies the client information, responds to the DHCP Offer message, and allocates a permanent IP and a gateway.
步骤S5:域控制器收到DHCP Offer报文,以packet-out方式形成packet-out报文,并发送给上一跳设备;Step S5: The domain controller receives the DHCP Offer packet, and forms a packet-out packet in the packet-out mode, and sends the packet-out packet to the previous hop device.
步骤S6:上一跳设备将packet-out报文解封装,将DHCP Offer报文发送给CPE设备;Step S6: The device of the last hop decapsulates the packet-out packet, and sends the DHCP Offer packet to the CPE device.
步骤S7:CPE设备收到DHCP Offer报文,回应DHCP Request报文;Step S7: The CPE device receives the DHCP Offer message and responds to the DHCP Request message.
步骤S8:上一跳设备从端口Y收到CPE设备的DHCP Request报文,通过packet-in方式封装成packet-in报文,并发送给域控制器;Step S8: The last hop device receives the DHCP Request message of the CPE device from the port Y, and encapsulates the packet into the packet-in packet and sends the packet to the domain controller.
步骤S9:域控制器收到packet-in报文,解封装后以通知形式发送给DHCP服务器;Step S9: The domain controller receives the packet-in packet, and after decapsulating, sends the packet to the DHCP server.
步骤S10:DHCP服务器收到DHCP Request报文,识别客户端信息,回应DHCP ACK报文;Step S10: The DHCP server receives the DHCP Request message, identifies the client information, and responds to the DHCP ACK message.
步骤S11:域控制器收到DHCP ACK报文,以packet-out方式形成packet-out报文,并发送上一跳设备;Step S11: The domain controller receives the DHCP ACK packet, forms a packet-out packet in the packet-out mode, and sends the previous hop device.
步骤S12:上一跳设备将packet-out报文解封装,将DHCP ACK报文发送给CPE设备,CPE设备收到DHCP ACK报文后,配置带内IP及网关,并把申请到IP的接口端口X加入管理VLAN中;这里的IP地址为带内管理IP。Step S12: The device in the previous hop decapsulates the packet-out packet, and sends the DHCP ACK packet to the CPE device. After receiving the DHCP ACK packet, the CPE device configures the inband IP and gateway, and applies the interface to the IP address. Port X is added to the management VLAN; the IP address here is the inband management IP.
步骤S13:域控制器通过配置管理协议(ofconfig)的扩展接口,将上一跳设备的下联口端口Y加入管理VLAN;Step S13: The domain controller adds the downlink port Y of the previous hop device to the management VLAN through the extended interface of the configuration management protocol (ofconfig).
步骤S14:域控制器和CPE设备建立网络配置协议(NetConf)连接;Step S14: the domain controller and the CPE device establish a network configuration protocol (NetConf) connection;
步骤S15:域控制器通过OF-CONFIG1.2定义的接口把域控制器的IP地址和TCP端口号配置到CPE设备,使能openflow连接;Step S15: The domain controller configures the IP address and TCP port number of the domain controller to the CPE device through the interface defined by OF-CONFIG1.2, and enables the openflow connection.
步骤S16:CPE设备建立与域控制器的Openflow连接。Step S16: The CPE device establishes an OpenFlow connection with the domain controller.
至此,上一跳设备及CPE设备与域控制器的连接完成。At this point, the connection between the previous hop device and the CPE device and the domain controller is completed.
示例2:Example 2:
本示例基于前述任意一个实施例提供一种PTN中控制信令通道的建立方法。The present example provides a method of establishing a control signaling channel in a PTN based on any of the foregoing embodiments.
图8所示,为本示例提供的一种DCN的网络。HUB设备及CPE1、CPE3均已和网络侧边缘设备0(PE0)建立连接。而CPE2尚未与PE0建立连接。在城域传送网内还设置有网络侧边缘设备1(PE1)和网络侧边缘设备2(PE2)等。域控制器(D-controller)通过网络侧边缘设备连接到城域传送网。在一些情况下,所述域控制器和DHCP服务器可设置在不同的物理设备上,在另一些情况中,所述域控制器和DHCP服务器也集成设置在同一个物理设备上。为了减少数据设备外的传输,减少响应时延,优选为将域控制器和DHCP服务器集成在一个物理设备上。FIG. 8 shows a DCN network provided for this example. The HUB device and CPE1 and CPE3 are connected to the network side edge device 0 (PE0). CPE2 has not yet established a connection with PE0. A network side edge device 1 (PE1) and a network side edge device 2 (PE2) are also disposed in the metropolitan area transport network. The domain controller (D-controller) is connected to the metro transport network through the network side edge device. In some cases, the domain controller and the DHCP server may be disposed on different physical devices, and in other cases, the domain controller and the DHCP server are also integrated on the same physical device. In order to reduce transmission outside the data device and reduce response delay, it is preferable to integrate the domain controller and the DHCP server on one physical device.
在图8中显示有域控制器接入到DCN分为至少两种情况,例如,在图8中展示的部署情况1为域控制器通过城域传送网接入到DCN,部署情况2直接连接到HUB设备。In Figure 8, there is shown that there are at least two cases in which the domain controller accesses the DCN. For example, the deployment scenario 1 shown in Figure 8 is that the domain controller accesses the DCN through the metropolitan transport network, and the deployment situation 2 is directly connected. Go to the HUB device.
以下以CPE2设备与域控制器建立openflow连接为例进行说明,如图9所示,包括:The following is an example of establishing an openflow connection between a CPE2 device and a domain controller. As shown in Figure 9, the following:
步骤S21:CPE2设备上电,向端口1发送携带vlan 4094的DHCP discover报文;Step S21: The CPE2 device is powered on, and sends a DHCP discover message carrying vlan 4094 to the port 1.
步骤S22:CPE1将收到的DHCP discover报文通过packet-in方式封装 DHCP discover报文形成packet-in报文,并将packet-in报文发送至控制器;Step S22: The CPE1 encapsulates the received DHCP discover message into a packet-in packet by using the packet-in packet, and sends the packet-in packet to the controller.
步骤S23:域控制器收到packet-in报文并解封装为DHCP discover报文后,通知DHCP服务器;Step S23: After receiving the packet-in packet and decapsulating the packet into a DHCP discover message, the domain controller notifies the DHCP server;
步骤S24:CPE2同时向端口2发送携带VLAN 4094的DHCP discover报文;Step S24: CPE2 simultaneously sends a DHCP discover message carrying VLAN 4094 to port 2.
步骤S25:CPE3将收到的DHCP discover报文通过packet-in方式封装DHCP discover报文形成packet-in报文,并将packet-in报文发送至控制器;Step S25: The CPE3 encapsulates the received DHCP discover message into a packet-in packet by using a packet-in packet, and sends the packet-in packet to the controller.
步骤S26:域控制器收到packet-in并解封装为DHCP discover后,通知DHCP服务器;Step S26: The domain controller notifies the DHCP server after receiving the packet-in and decapsulating it into a DHCP discover;
步骤S27:DHCP服务器收到DHCP Discover报文,识别客户端信息,回应DHCP Offer报文,分配永久IP及网关;Step S27: The DHCP server receives the DHCP Discover message, identifies the client information, responds to the DHCP Offer message, and allocates a permanent IP and a gateway.
步骤S28:域控制器收到DHCP offer报文,以packet-out方式封装DHCP Offer报文形成packet-out报文,并发送给CPE1设备;Step S28: The domain controller receives the DHCP offer message, and encapsulates the DHCP Offer message in a packet-out manner to form a packet-out message, and sends the packet to the CPE1 device.
步骤S29:CPE1设备将packet-out报文解封装,将DHCP offer报文发送给CPE2设备;Step S29: The CPE1 device decapsulates the packet-out packet and sends the DHCP offer packet to the CPE2 device.
步骤S30:DHCP服务器收到DHCP Discover报文,识别客户端信息,回应DHCP Offer报文,分配永久IP及网关;Step S30: The DHCP server receives the DHCP Discover message, identifies the client information, responds to the DHCP Offer message, and allocates a permanent IP and a gateway.
步骤S31:域控制器收到DHCP Offer报文,以packet-out方式封装DHCP Offer报文形成packet-out报文,并发送给CPE3设备;Step S31: The domain controller receives the DHCP Offer message, and encapsulates the DHCP Offer message in a packet-out manner to form a packet-out message, and sends the packet to the CPE3 device.
步骤S32:CPE3设备将packet-out报文解封装,将DHCP offer报文发送给CPE2设备;Step S32: The CPE3 device decapsulates the packet-out packet and sends the DHCP offer packet to the CPE2 device.
步骤S33:CPE2设备收到第一个DHCP offer报文,回应DHCP request报文,将报文从端口1发出;Step S33: The CPE2 device receives the first DHCP offer message, responds to the DHCP request message, and sends the message from port 1.
步骤S34:CPE1设备从端口2收到CPE2设备的DHCP request报文,通过packet-in方式封装形成packet-in报文,并发送给域控制器;Step S34: The CPE1 device receives the DHCP Request message of the CPE2 device from the port 2, and encapsulates the packet-in packet by the packet-in mode, and sends the packet to the domain controller.
步骤S35:域控制器收到packet-in报文,解封装后以通知形式发送给DHCP request报文发送给服务器;Step S35: The domain controller receives the packet-in packet, and after decapsulating, sends the DHCP request packet to the server in the form of notification.
步骤S36:DHCP服务器收到DHCP request报文,识别客户端信息,回应DHCP ACK报文;Step S36: The DHCP server receives the DHCP request message, identifies the client information, and responds to the DHCP ACK message.
步骤37:域控制器收到DHCP ACK报文,以packet-out方式封装DHCP Offer报文形成packet-out报文,并发送给HUB设备;Step 37: The domain controller receives the DHCP ACK packet, and encapsulates the DHCP Offer packet in a packet-out manner to form a packet-out packet, and sends the packet-out packet to the HUB device.
步骤S38:CPE1设备将packet-out解封装,将DHCP ACK报文发送给CPE2设备,CPE2设备收到DHCP ACK报文后,配置带内管理IP及网关,并把申请到IP的接口PortX加入管理VLAN中;Step S38: The CPE1 device decapsulates the packet-out and sends the DHCP ACK packet to the CPE2 device. After receiving the DHCP ACK packet, the CPE2 device configures the inband management IP address and the gateway, and adds the portX application to the IP interface. In the VLAN;
步骤S39:域控制器通过ofconfig的扩展接口,将CPE1设备的下联口端口2加入管理VLAN;Step S39: The domain controller adds the lower port 2 of the CPE1 device to the management VLAN through the extended interface of the ofconfig;
步骤S40:域控制器和CPE2设备建立NetConf连接;Step S40: The domain controller and the CPE2 device establish a NetConf connection;
步骤S41:域控制器通过OF-CONFIG1.2定义的接口把域控制器的IP地址和TCP端口号配置到CPE2设备,使能openflow连接;Step S41: The domain controller configures the IP address and TCP port number of the domain controller to the CPE2 device through the interface defined by OF-CONFIG1.2, and enables the openflow connection.
步骤S42:CPE2设备建立与域控制器的Openflow连接。Step S42: The CPE2 device establishes an Openflow connection with the domain controller.
至此,CPE2与域控制器的连接完成。At this point, the connection between CPE2 and the domain controller is completed.
在本示例中CPE2同时会接收到CPE1和CPE3转发的DHCP offer报文,但是CPE2仅会选择先接收的CPE1转发的DHCP offer报文进行回复,通过CPE1与CPE2的端口与域控制器建立openflow连接,并由域控制器将CPE1和CPE2的端口添加到管理VLAN中,完成控制通道的建立。In this example, CPE2 will receive the DHCP offer message forwarded by CPE1 and CPE3, but CPE2 will only reply to the DHCP offer message forwarded by CPE1, and establish an openflow connection with the domain controller through the ports of CPE1 and CPE2. And the domain controller adds the ports of CPE1 and CPE2 to the management VLAN to complete the establishment of the control channel.
示例3:Example 3:
如图10所示,本实施例提供以供一种同时包括域控制器及DHCP服务器的一体化设备,包括:入端口、出端口、识别模块、与所述域控制器对应的openflow模块,及与所述DHCP服务器对应的DHCP模块。As shown in FIG. 10, the embodiment provides an integrated device including a domain controller and a DHCP server, including: an ingress port, an egress port, an identification module, and an openflow module corresponding to the domain controller, and A DHCP module corresponding to the DHCP server.
识别模块分别通过内部接口1及内部接口2所述openflow模块及所述DHCP模块连接。所述openflow模块通过内部接口3连接所述openflow模块和所述DHCP模块。The identification module is connected to the openflow module and the DHCP module through the internal interface 1 and the internal interface 2, respectively. The openflow module connects the openflow module and the DHCP module through an internal interface 3.
与此同时,所述openflow模块及DHCP模块均与出端口相连。所述入端口用于接收报文,出端口用于向外发送报文。At the same time, the openflow module and the DHCP module are both connected to the outgoing port. The ingress port is used to receive packets, and the egress port is used to send packets.
在本示例中,所述识别模块,用于识别接收到报文的类型,是packet-in报文,还是DHCP报文。In this example, the identification module is configured to identify the type of the received packet, whether it is a packet-in packet or a DHCP packet.
如图11所示为本示例提供的一种报文处理方法,包括:Figure 11 shows a packet processing method provided in this example, including:
步骤S51:识别模块识别入端口接收的报文的类型;Step S51: The identification module identifies the type of the packet received by the ingress port.
步骤S52:判断是否为packet-in报文,及判断是否为DHCP报文;Step S52: determining whether it is a packet-in packet, and determining whether it is a DHCP packet;
步骤S53:若是packet-in报文;通过内部接口1发送给openflow模块;Step S53: If it is a packet-in packet, it is sent to the openflow module through the internal interface 1.
步骤S54:packet-in报文解封装;Step S54: Decapsulating the packet-in packet;
步骤S55:判断是否有携带DHCP报文,若是进入步骤S56,否则利用openflow协议正常处理。Step S55: It is determined whether the DHCP message is carried. If the process proceeds to step S56, the process is normally processed by using the openflow protocol.
步骤S56:通过内部接口3将DHCP报文转发给DHCP模块;Step S56: Forwarding the DHCP message to the DHCP module through the internal interface 3;
步骤S57:DHCP模块按照DHCP协议进行报文处理,回应对应的DHCP报文;Step S57: The DHCP module performs packet processing according to the DHCP protocol, and responds to the corresponding DHCP message.
步骤S58:DHCP模块将回应的DHCP报文通过内部接口3转交给openflow模块;Step S58: The DHCP module forwards the responding DHCP message to the openflow module through the internal interface 3;
步骤S59:openflow模块将DHCP报文封装packet-out报文;Step S59: The openflow module encapsulates the DHCP packet into a packet-out packet.
步骤S60:openflow模块将packet-out报文通过出端口发出;Step S60: The openflow module sends the packet-out packet through the egress port.
步骤S61:当入端口接收的报文为DHCP报文时,通过内部接口2发送给DHCP模块;Step S61: When the packet received by the ingress port is a DHCP packet, the packet is sent to the DHCP module through the internal interface 2;
步骤S62:DHCP模块按照DHCP协议进行DHCP报文处理,并回应报文;Step S62: The DHCP module performs DHCP packet processing according to the DHCP protocol, and responds to the packet;
步骤S63:DHCP模块将回应报文通过出端口发出。Step S63: The DHCP module sends the response packet through the egress port.
示例4:Example 4:
本示例提供一种域控制器,该域控制器和DHCP服务器分离设置。如图13所示,所述域控制器的外部接口1连接到DHCP服务器的外部接口2。域控制器和DHCP服务器均各自设置有接收报文的入端口和发送报文的出端口。This example provides a domain controller that is separate from the DHCP server. As shown in FIG. 13, the external interface 1 of the domain controller is connected to the external interface 2 of the DHCP server. Both the domain controller and the DHCP server are configured with an ingress port for receiving packets and an egress port for sending packets.
基于图12所示的域控制器及DHCP服务器,提供的一种报文处理方法,如图13所示,包括:Based on the domain controller and the DHCP server shown in Figure 12, a packet processing method, as shown in Figure 13, includes:
步骤S71:域控制器的入端口接收packet-in报文;Step S71: The ingress port of the domain controller receives the packet-in packet.
步骤S72:packet-in报文解封装;Step S72: Decapsulating the packet-in packet;
步骤S73.:判断是否有携带DHCP报文,若有进入下一步,若无则openflow协议解析该报文;Step S73.: Determine whether a DHCP message is carried. If there is a next step, if not, the openflow protocol parses the message.
步骤S74:将DHCP报文通过外部接口1发送给DHCP服务器;Step S74: Send the DHCP message to the DHCP server through the external interface 1.
步骤S75:DHCP服务器按照DHCP协议处理报文,并生成回应的DHCP 报文;Step S75: The DHCP server processes the packet according to the DHCP protocol, and generates a response DHCP packet.
步骤S76:DHCP服务器通过外部接口2将回应的DHCP报文发送给域控制器;Step S76: The DHCP server sends the responding DHCP message to the domain controller through the external interface 2;
步骤S77:域控制器将回应的DHCP报文封装为packet-out报文;Step S77: The domain controller encapsulates the responding DHCP packet into a packet-out packet.
步骤S78:域控制器将packet-out报文通过自身的出端口发出。Step S78: The domain controller sends the packet-out packet through its own egress port.
示例5:Example 5:
如图14所示,本示例还提供一种CPE,该CPE设备可为第二设备,包括:As shown in FIG. 14, the example further provides a CPE, where the CPE device can be a second device, including:
入端口,可用于接收DHCP报文;Incoming port, which can be used to receive DHCP packets.
DHCP识别模块,用于识别DHCP报文;a DHCP identification module, configured to identify a DHCP message;
DHCP判断模块,用于判断是否继续转发DHCP报文;这里的DHCP报文,至少包括DHCP发现报文,在一些情况下,还可包括:DHCP请求报文等;The DHCP judging module is configured to determine whether to continue to forward the DHCP packet, where the DHCP packet includes at least a DHCP discovery packet, and in some cases, a DHCP request packet.
出端口,用于转发DHCP报文或发出封装有DHCP报文的packet-in报文。The egress port is used to forward DHCP packets or send packet-in packets encapsulating DHCP packets.
具体如,在CPE设备没有上联口加入到管理VLAN中时,当CPE收到其他设备发送的DHCP discover报文,如果CPE没有端口在管理VLAN中,即CPE没有上线,此时设备判断不转发DHCP discover广播报文。这样设备会转发所有的DHCP discover报文,将造成以太环路。For example, when a CPE device is not added to the management VLAN, the CPE receives DHCP discover packets from other devices. If the CPE does not have a port in the management VLAN, the CPE does not go online. DHCP discover broadcast message. In this way, the device will forward all DHCP discover messages, which will cause an Ethernet loop.
DHCP识别模块用于识别DHCP discover报文,可对应于前述的实施例中的第二解析发送单元;The DHCP identification module is configured to identify the DHCP discover message, and may correspond to the second parsing sending unit in the foregoing embodiment;
DHCP判断模块用于判断是否继续转发广播DHCP discover报文,如果已有端口加入到管理VLAN,则通过DHCP转发模块,从加入到管理VLAN的端口转发DHCP discover报文;如果没有端口加入到管理VLAN中,则丢弃DHCP discover报文。The DHCP judging module is configured to determine whether to continue to forward the DHCP discover message. If the existing port is added to the management VLAN, the DHCP forwarding module forwards the DHCP discover message from the port that is added to the management VLAN. If no port is added to the management VLAN. In the middle, the DHCP discover message is discarded.
总之在本公开实施例中,在未建立openflow连接时,采用openflow协议中的Packet-in方式和packet-out方式封装DHCP报文。上发IP申请消息采用packet-in方式,下发IP申请回复消息采用packet-out方式,SPTN设备在上联端口加入VLAN、与域控制器建立NetConf连接后,最终建立 与域控制器的openflow连接。In the embodiment of the present disclosure, when the openFlow connection is not established, the DHCP packet is encapsulated in the packet-in mode and the packet-out mode in the openflow protocol. The IP-based application message is sent in the packet-in mode, and the IP-based application reply message is sent in the packet-out mode. After the SPTN device joins the VLAN on the uplink port and establishes a NetConf connection with the domain controller, the openFlow connection with the domain controller is finally established. .
避免广播风暴:本方案在设备没有上线之前,不对DHCP discover报文进行转发,设备接到DHCP discover报文,需要判断是否有端口在管理VLAN中,可以避免设备广播风暴。另外,当设备有多端口可以添加到管理VLAN时,采用先到先加入的方式,避免形成以太网环路。To avoid broadcast storms, the device does not forward DHCP discover packets before the device goes online. The device receives DHCP discover packets. You need to determine whether a port is in the management VLAN to prevent broadcast storms. In addition, when multiple ports can be added to the management VLAN, the device can be added on a first-come, first-served basis to avoid forming an Ethernet loop.
按设备层次依次从域控制器申请IP地址,逐段打通管理小型化接入SPTN的以太二层VLAN管理通道。Apply for an IP address from the domain controller in the order of the device, and manage the Ethernet Layer 2 VLAN management channel of the SPTN.
CPE设备上线流程。The CPE device goes online.
控制器下发给小型化SPTN设备的IP地址,与设备的MAC地址和上联端口相关联,在同一位置分配同一个IP地址。在更换设备时,便于网络地址管理,设备维护。The IP address sent by the controller to the miniaturized SPTN device is associated with the MAC address of the device and the uplink port, and the same IP address is assigned at the same location. When the device is replaced, it is convenient for network address management and device maintenance.
域控制器集成或者分立openflow模块和DHCP模块,两模块独立运行,通过接口或者通道相互协作,在建立连接过程,DHCP完成IP地址分配,Openflow模块完成DHCP报文的Packet in和Packet out封装。The domain controller integrates or separates the openflow module and the DHCP module. The two modules operate independently and cooperate with each other through interfaces or channels. After the connection is established, DHCP completes the IP address allocation. The Openflow module completes the Packet in and Packet out encapsulation of DHCP messages.
自动建立SPTN设备与域控制器间的openflow连接,实现设备即插即用即管控。Automatically establish an openflow connection between the SPTN device and the domain controller to implement device plug-and-play management.
在未建立连接时,采用Packet in和Packe out方式封装DHCP报文。When the connection is not established, the DHCP packet is encapsulated in the Packet in and Packet Out mode.
本公开实施例提供的方案可避免形成以太网环路,避免设备广播风暴;The solution provided by the embodiment of the present disclosure can avoid forming an Ethernet loop and avoid equipment broadcast storms;
控制器下发给小型化SPTN设备的IP地址,与设备的MAC地址和上联端口相关联,在更换设备时,在同一位置分配同一个IP地址,便于网络地址管理,设备维护。The IP address of the device that is sent to the miniaturized SPTN is associated with the MAC address of the device and the uplink port. When the device is replaced, the same IP address is assigned to the same location to facilitate network address management and device maintenance.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个***,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的, 作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, that is, may be located in one place or distributed on 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.
另外,在本公开各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code.
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。The above is only the specific embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the disclosure. It should be covered within the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be determined by the scope of the claims.

Claims (15)

  1. 一种分组传输网络PTN中控制通道的建立方法,应用于数据通信网络DCN的域控制器中,包括:A method for establishing a control channel in a packet transmission network PTN is applied to a domain controller of a data communication network DCN, and includes:
    当接收到封装有动态主机配置协议DHCP发现报文的packet-in报文时,将所述DHCP发现报文发送给DHCP服务器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;The DHCP discovery packet is sent to the DHCP server when the packet-in packet is encapsulated with the dynamic host configuration protocol DHCP discovery packet, where the DHCP discovery packet is: the first device application and the The domain controller establishes an application packet for the openflow connection;
    当接收到所述DHCP服务器发送的DHCP提供报文时,将所述DHCP提供报文封装为packet-out报文并发送给第二设备,其中,所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;When receiving the DHCP-provided packet sent by the DHCP server, the DHCP-provided packet is encapsulated into a packet-out packet and sent to the second device, where the DHCP-provided packet includes: The first device establishes configuration information required for the openflow connection with the domain controller, and is based on the DHCP discovery packet reply;
    当接收到封装有DHCP请求报文的packet-in报文时,向所述DHCP服务器发送所述DHCP请求报文,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;Sending the DHCP request message to the DHCP server when receiving the packet-in packet encapsulating the DHCP request message, where the DHCP request message is used to trigger the domain controller, based on the Describe a DHCP-enabled packet and an openflow connection of the first device;
    当接收到所述DHCP服务器发送的DHCP确认报文时,将所述DHCP确认报文封装为packet-out报文,并发送给所述第二设备;其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;When receiving the DHCP acknowledgment message sent by the DHCP server, the DHCP acknowledgment message is encapsulated into a packet-out message and sent to the second device; wherein the DHCP acknowledgment message is used for Notifying the first device to confirm establishing an openflow connection;
    基于所述DHCP提供报文,与所述第一设备建立openflow连接;其中,所述packet-in报文是由所述第二设备封装形成的。Establishing an openflow connection with the first device based on the DHCP-provided packet; wherein the packet-in packet is formed by the second device.
  2. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    所述DHCP提供报文包括:分配给所述第一设备的网络协议IP地址及所述第二设备接入网关的网关标识。The DHCP providing message includes: a network protocol IP address allocated to the first device and a gateway identifier of the second device access gateway.
  3. 根据权利要求1或2所述的方法,其中,The method according to claim 1 or 2, wherein
    所述域控制器和所述DHCP服务器为一个一体设备的两个子设备;所述域控制器和所述DHCP服务器之间建立有内部通信接口;所述域控制器至少包括:openflow模块;所述DHCP服务器至少包括DHCP模块;The domain controller and the DHCP server are two sub-devices of an integrated device; an internal communication interface is established between the domain controller and the DHCP server; the domain controller at least includes: an openflow module; The DHCP server includes at least a DHCP module;
    所述方法还包括:The method further includes:
    接收所述第二设备发送的第一报文;Receiving a first packet sent by the second device;
    识别所述第一报文的类型;Identifying a type of the first message;
    当所述第一报文的类型为所述packet-in报文时,由openlow模块解析所述第一报文;When the type of the first packet is the packet-in packet, the first packet is parsed by the openlow module;
    基于解析的结果确定所述第一报文是否为有携带DHCP报文,其中,所述DHCP报文为:所述DHCP发现报文或DHCP请求报文;当所述第一报文携带有所述DHCP报文时,所述DHCP发现报文或DHCP请求报文,用于供DHCP模块发送给DHCP服务器。Determining, according to the result of the parsing, whether the first packet carries a DHCP packet, where the DHCP packet is: the DHCP discovery packet or the DHCP request packet; when the first packet carries The DHCP discovery packet or the DHCP request packet is used by the DHCP module to send to the DHCP server.
  4. 根据权利要求3所述的方法,其中,The method of claim 3, wherein
    所述方法还包括:The method further includes:
    所述DHCP模块将所述DHCP提供报文或所述DHCP确认报文发送给所述openflow模块;Sending, by the DHCP module, the DHCP providing message or the DHCP acknowledgement message to the openflow module;
    所述当接收到所述DHCP服务器发送的DHCP提供报文时,将所述DHCP提供报文封装为packet-out报文并发送给第二设备,包括:When the DHCP-supplied message sent by the DHCP server is received, the DHCP-provided packet is encapsulated into a packet-out packet and sent to the second device, including:
    由所述openflow模块将所述DHCP提供报文封装成所述packet-out报文;Encapsulating the DHCP-provided packet into the packet-out packet by the openflow module;
    所述当接收到所述DHCP服务器发送的DHCP确认报文时,将所述DHCP确认报文封装为packet-out报文,包括:When the DHCP acknowledgement packet sent by the DHCP server is received, the DHCP acknowledgement packet is encapsulated into a packet-out packet, including:
    由所述openflow模块将所述DHCP确认报文封装成所述packet-out报文。The DHCP acknowledgement packet is encapsulated into the packet-out packet by the openflow module.
  5. 根据权利要求1或2所述的方法,其中,The method according to claim 1 or 2, wherein
    所述配置信息包括:分配给所述第一设备的网络协议IP地址;The configuration information includes: a network protocol IP address assigned to the first device;
    所述DHCP发现报文,至少携带有所述第一设备的媒体访问控制MAC地址及所述第一设备的地理位置信息;The DHCP discovery packet carries at least a media access control MAC address of the first device and geographic location information of the first device;
    所述方法还包括:The method further includes:
    对应存储所述IP地址、所述MAC地址及所述地理位置信息;其中,位于同一个地理位置的不同设备,分配同一个IP地址。The IP address, the MAC address, and the geographical location information are stored correspondingly; wherein different devices located in the same geographical location are assigned the same IP address.
  6. 一种分组传输网络PTN中控制信令通道的建立方法,应用于数据通信网络DCN的第二设备中,包括:A method for establishing a control signaling channel in a packet transmission network PTN, which is applied to a second device of a data communication network DCN, and includes:
    当接收到第一设备广播的DHCP发现报文,且当所述第二设备已与域控制器建立有openflow连接时,将所述DHCP发现报文封装为packet-in报文,并发送给所述域控制器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;Receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, the DHCP discovery packet is encapsulated into a packet-in packet and sent to the The domain controller is configured to: the first device requests an application message for establishing an openflow connection with the domain controller;
    当接收到所述域控制器基于所述packet-in报文回复的packet-out报文时,将所述DHCP提供报文发送给所述第一设备,其中,所述packet-out报文,携带有DHCP服务器基于所述DHCP发现报文返回的DHCP提供报文,其中,所述DHCP提供报文携带有所述第一设备与所述域控制器建立openflow连接所需的配置信息;Sending, by the domain controller, the packet that is sent by the domain controller based on the packet-in packet to the first device, where the packet-out packet is And carrying the DHCP-provided message returned by the DHCP server based on the DHCP discovery packet, where the DHCP-provided packet carries configuration information required for the first device to establish an openflow connection with the domain controller;
    当接收到第一设备基于所述DHCP提供报文回复的DHCP请求报文时,将所述DHCP请求报文封装为packet-in报文,并发送给域控制器,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;When receiving the DHCP request message sent by the first device based on the DHCP-provided message, the DHCP request message is encapsulated into a packet-in message and sent to the domain controller, where the DHCP request message is sent. And the method is configured to trigger the domain controller to provide an openflow connection of the packet to the first device based on the DHCP;
    当接收到所述域控制器返回的携带有DHCP确认报文包括的packet-out报文时,将所述DHCP确认报文转发给所述第一设备,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接。When receiving the packet-out packet that is included in the DHCP acknowledgment message, the DHCP acknowledgment message is forwarded to the first device, where the DHCP acknowledgment message is used. The first device is informed to confirm the establishment of an openflow connection.
  7. 根据权利要求6所述的方法,其中,The method of claim 6 wherein
    所述方法还包括:The method further includes:
    当所述第二设备未与所述域控制器建立有openflow连接时,丢弃所述DHCP发现报文。And when the second device does not establish an openflow connection with the domain controller, discarding the DHCP discovery packet.
  8. 一种分组传输网络PTN中控制通道的建立方法,应用于数据通信网络DCN的第一设备中,包括:A method for establishing a control channel in a packet transmission network PTN is applied to a first device of a data communication network DCN, and includes:
    广播动态主机配置协议DHCP发现报文,其中,所述DHCP发现报文,用于在于所述第一设备建立有连接的第二设备接收到后,封装为packet-in报文发送给域控制器;所述第二设备为与所述域控制器已建立有openflow连接的设备,所述DHCP发现报文为:所述第一设备申请与所述域控制器建立openflow连接的申请报文;The broadcast dynamic host configuration protocol (DHCP) packet is sent to the domain controller after the second device that is connected to the first device is configured to be encapsulated as a packet-in packet. The second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery packet is: the first device requests an application message for establishing an openflow connection with the domain controller;
    接收所述第二设备从packet-out报文中提取的DHCP提供报文;所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;Receiving, by the second device, a DHCP-provided packet extracted from the packet-out packet; the DHCP-providing packet includes: configuration information required for the first device to establish an openflow connection with the domain controller, And based on the DHCP discovery message reply;
    基于所述DHCP提供报文,向所述第二设备发送DHCP请求报文,其中,所述DHCP请求报文,用于由所述第二设备封装成packet-in消息发送给所述域控制器,并用于触发所述域控制器,基于所述DHCP提供报文与所述第一 设备的openflow连接;Sending a DHCP request message to the second device, where the DHCP request message is used by the second device to be encapsulated into a packet-in message and sent to the domain controller. And for triggering the domain controller to provide an openflow connection of the packet to the first device based on the DHCP;
    接收所述第二设备从packet-out消息中提取的DHCP确认报文,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;Receiving, by the second device, a DHCP acknowledgment message extracted from the packet-out message, where the DHCP acknowledgment message is used to notify the first device to confirm establishing an openflow connection;
    所述packet-out报文均为所述域控制器发送的。The packet-out packet is sent by the domain controller.
  9. 根据权利要求8所述的方法,其中,The method of claim 8 wherein
    所述基于所述DHCP提供报文,向所述第二设备发送DHCP请求报文,包括:And sending, by the DHCP-providing packet, the DHCP request packet to the second device, including:
    当接收到多个所述第二设备转发的DHCP提供报文时,基于预设策略仅选择的一个所述DHCP提供报文回复所述DHCP请求报文。When receiving a plurality of DHCP-provided messages forwarded by the second device, only one of the DHCP-provided messages selected based on the preset policy replies to the DHCP request message.
  10. 根据权利要求9所述的方法,其中,The method of claim 9 wherein
    所述当接收到多个所述第二设备转发的DHCP提供报文时,基于预设策略仅选择的一个所述DHCP提供报文回复所述DHCP请求报文,包括:And receiving, by the plurality of the DHCP-provided packets, the DHCP-supplied message, the DHCP-supplied message, the
    根据多个所述DHCP提供报文的接收顺序,基于最早接收的所述DHCP提供报文回复所述DHCP请求报文。And according to the receiving sequence of the plurality of DHCP-provided messages, replying to the DHCP request message based on the first received DHCP-provided message.
  11. 一种分组传输网络PTN网元,所述网元为应用于数据通信网络DCN的域控制器,包括:第一解析发送模块、第一封装发送模块及连接模块;A packet transmission network PTN network element, the network element being a domain controller applied to the data communication network DCN, comprising: a first parsing and transmitting module, a first encapsulating and transmitting module, and a connecting module;
    所述第一解析发送模块,用于当接收到封装有动态主机配置协议DHCP发现报文的packet-in报文时,将所述DHCP发现报文发送给DHCP服务器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;The first parsing and sending module is configured to: when receiving the packet-in packet encapsulating the dynamic host configuration protocol DHCP discovery packet, send the DHCP discovery packet to the DHCP server; wherein the DHCP discovery packet The first device applies for an application for establishing an openflow connection with the domain controller;
    所述第一封装发送模块,用于当接收到所述DHCP服务器发送的DHCP提供报文时,将所述DHCP提供报文封装为packet-out报文并发送给第二设备,其中,所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;The first encapsulating and sending module is configured to: when receiving the DHCP providing packet sent by the DHCP server, the DHCP providing packet is encapsulated into a packet-out packet and sent to the second device, where The DHCP providing message includes: configuration information required for the first device to establish an openflow connection with the domain controller, and is based on the DHCP discovery message reply;
    所述第一解析发送模块,还用于当接收到封装有DHCP请求报文的packet-in报文时,向所述DHCP服务器发送所述DHCP请求报文,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;The first parsing and sending module is further configured to: when receiving a packet-in packet encapsulating a DHCP request packet, send the DHCP request packet to the DHCP server, where the DHCP request packet is Used to trigger the domain controller to provide an openflow connection of the packet with the first device based on the DHCP;
    所述第一封装发送模块,还用于当接收到所述DHCP服务器发送的 DHCP确认报文时,将所述DHCP确认报文封装为packet-out报文,并发送给所述第二设备;其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;The first packet sending module is further configured to: when receiving the DHCP acknowledgment message sent by the DHCP server, the DHCP acknowledgment message is encapsulated into a packet-out message, and sent to the second device; The DHCP acknowledgement message is used to notify the first device to confirm that an openflow connection is established.
    所述连接模块,还用于基于所述DHCP提供报文,与所述第一设备建立openflow连接;其中,所述packet-in报文是由所述第二设备封装形成的。The connection module is further configured to establish an openflow connection with the first device based on the DHCP-provided packet, where the packet-in packet is encapsulated by the second device.
  12. 一种分组传输网络PTN网元,所述PTN网元为应用于数据通信网络DCN的第二设备,包括:A packet transmission network PTN network element, where the PTN network element is a second device applied to the data communication network DCN, including:
    第二封装发送模块,用于当接收到第一设备广播的DHCP发现报文,且当所述第二设备已与域控制器建立有openflow连接时,将所述DHCP发现报文封装为packet-in报文,并发送给所述域控制器;其中,所述DHCP发现报文为:第一设备申请与所述域控制器建立openflow连接的申请报文;The second encapsulation sending module is configured to: when receiving the DHCP discovery packet broadcasted by the first device, and when the second device has established an openflow connection with the domain controller, encapsulating the DHCP discovery packet into a packet- In the message, and sent to the domain controller; wherein the DHCP discovery message is: the first device requests an application message for establishing an openflow connection with the domain controller;
    第二解析发送模块,用于当接收到所述域控制器基于所述packet-in报文回复的packet-out报文时,将所述DHCP提供报文发送给所述第一设备,其中,所述packet-out报文,携带有DHCP服务器基于所述DHCP发现报文返回的DHCP提供报文,其中,所述DHCP提供报文携带有所述第一设备与所述域控制器建立openflow连接所需的配置信息;a second parsing sending module, configured to send the DHCP providing packet to the first device, when receiving the packet-out packet that is sent by the domain controller based on the packet-in packet, where The packet-out packet carries a DHCP-provided packet returned by the DHCP server based on the DHCP discovery packet, where the DHCP-provided packet carries the first device and establishes an openflow connection with the domain controller. Required configuration information;
    所述第二封装发送模块,还用于当接收到第一设备基于所述DHCP提供报文回复的DHCP请求报文时,将所述DHCP请求报文封装为packet-in报文,并发送给域控制器,其中,所述DHCP请求报文,用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;The second package sending module is further configured to: when receiving the DHCP request message sent by the first device based on the DHCP-provided message, encapsulate the DHCP request message into a packet-in message, and send the packet to the packet-in packet a domain controller, where the DHCP request message is used to trigger the domain controller to connect to the openFlow of the first device based on the DHCP request message;
    所述第二解析发送模块,还用于当接收到所述域控制器返回的携带有DHCP确认报文包括的packet-out报文时,将所述DHCP确认报文转发给所述第一设备,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接。The second parsing sending module is further configured to forward the DHCP acknowledgement packet to the first device when receiving the packet-out packet included in the DHCP acknowledgment message returned by the domain controller The DHCP acknowledgement message is used to notify the first device to confirm that an openflow connection is established.
  13. 一种分组传输网络PTN网元,所述PTN网元为数据通信网络DCN的第一设备,包括:A packet transmission network PTN network element, where the PTN network element is a first device of a data communication network DCN, and includes:
    广播模块,用于广播动态主机配置协议DHCP发现报文,其中,所述DHCP发现报文,用于在于所述第一设备建立有连接的第二设备接收到后,封装为packet-in报文发送给域控制器;所述第二设备为与所述域控制器已建 立有openflow连接的设备,所述DHCP发现报文为:所述第一设备申请与所述域控制器建立openflow连接的申请报文;a broadcast module, configured to broadcast a dynamic host configuration protocol DHCP discovery packet, where the DHCP discovery packet is used to encapsulate the packet-in packet after the second device that is connected to the first device is received. Sending to the domain controller; the second device is a device that has established an openflow connection with the domain controller, and the DHCP discovery message is: the first device requests to establish an openflow connection with the domain controller. Apply for a message;
    接收模块,用于接收所述第二设备从packet-out报文中提取的DHCP提供报文;所述DHCP提供报文包括:用于所述第一设备与所述域控制器建立openflow连接所需的配置信息,且是基于所述DHCP发现报文回复的;a receiving module, configured to receive a DHCP-provided packet that is sent by the second device from the packet-out packet, where the DHCP-provided packet includes: establishing, by the first device, an openflow connection with the domain controller Required configuration information, and is based on the DHCP discovery message reply;
    发送模块,用于基于所述DHCP提供报文,向所述第二设备发送DHCP请求报文,其中,所述DHCP请求报文,用于由所述第二设备封装成packet-in消息发送给所述域控制器,并用于触发所述域控制器,基于所述DHCP提供报文与所述第一设备的openflow连接;a sending module, configured to send, by using the DHCP-provided packet, a DHCP request message to the second device, where the DHCP request message is used by the second device to be encapsulated into a packet-in message and sent to The domain controller is configured to trigger the domain controller to provide an openflow connection with the first device based on the DHCP provisioning message;
    所述接收模块,还用于接收所述第二设备从packet-out消息中提取的DHCP确认报文,其中,所述DHCP确认报文,用于告知所述第一设备确认建立openflow连接;所述packet-out报文均为所述域控制器发送的。The receiving module is further configured to receive a DHCP acknowledgment message that is sent by the second device from the packet-out message, where the DHCP acknowledgment message is used to notify the first device to confirm establishing an openflow connection; The packet-out packet is sent by the domain controller.
  14. 一种分组传输网络PTN网元,包括:收发器、处理器及计算机程序;A packet transmission network PTN network element, comprising: a transceiver, a processor and a computer program;
    所述处理器,与所述收发器连接,用于通过执行存储在所述存储器的计算机程序的执行,能够实现权利要求1至10任一项提供的方法。The processor is coupled to the transceiver for enabling the method of any one of claims 1 to 10 to be performed by executing execution of a computer program stored in the memory.
  15. 一种计算机存储介质,所述计算机存储介质存储有计算机程序;所述计算机程序被执行后,能够实现权利要求1至10任一项提供的方法。A computer storage medium storing a computer program; after the computer program is executed, the method of any one of claims 1 to 10 can be implemented.
PCT/CN2018/095262 2017-07-25 2018-07-11 Method for establishing control signalling channel in ptn, ptn netwok element and storage medium WO2019019918A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710614458.X 2017-07-25
CN201710614458.XA CN109302504B (en) 2017-07-25 2017-07-25 Method for establishing control signaling channel in PTN, PTN network element and storage medium

Publications (1)

Publication Number Publication Date
WO2019019918A1 true WO2019019918A1 (en) 2019-01-31

Family

ID=65039977

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/095262 WO2019019918A1 (en) 2017-07-25 2018-07-11 Method for establishing control signalling channel in ptn, ptn netwok element and storage medium

Country Status (2)

Country Link
CN (1) CN109302504B (en)
WO (1) WO2019019918A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213146A (en) * 2019-06-05 2019-09-06 ***通信集团内蒙古有限公司 Packet Transport Network PTN service protecting method, device, equipment and medium
CN115334042A (en) * 2021-04-25 2022-11-11 ***通信有限公司研究院 Data transmission method, device and system and communication equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863199A (en) * 2005-09-30 2006-11-15 华为技术有限公司 Method for carrying out service in wideband network
US20100223655A1 (en) * 2007-11-20 2010-09-02 Huawei Technologies Co., Ltd. Method, System, and Apparatus for DHCP Authentication
CN102882962A (en) * 2012-09-24 2013-01-16 中兴通讯股份有限公司 Plug-and-play network element equipment, system and method for implementing online of plug-and-play network element equipment
CN106506182A (en) * 2015-09-06 2017-03-15 ***通信集团公司 A kind of method and system of configuration PTN business

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG11201502579XA (en) * 2012-10-03 2015-05-28 Nec Corp Communication system, control apparatus, control method, and program
CN103248724A (en) * 2013-04-19 2013-08-14 中国(南京)未来网络产业创新中心 SDN (Software-Defined Networking) controller-based DHCP (Dynamic Host Configuration Protocol) broadcast processing method
US10159018B2 (en) * 2015-08-21 2018-12-18 Korea University Research And Business Foundation Data processing method for accommodating legacy network service in 4G or next generation network
CN105515998B (en) * 2015-11-26 2019-05-17 北京邮电大学 A kind of method and system in the domain SPTN three layers of domain and two layers of domain intercommunication
CN105553849B (en) * 2015-11-26 2019-05-17 北京邮电大学 A kind of traditional IP and SPTN network intercommunication method and system
CN106940696B (en) * 2016-01-05 2021-12-14 中兴通讯股份有限公司 Information query method and system for SDN multi-layer controller
CN106603739B (en) * 2016-11-30 2019-07-02 瑞斯康达科技发展股份有限公司 A kind of configuration method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863199A (en) * 2005-09-30 2006-11-15 华为技术有限公司 Method for carrying out service in wideband network
US20100223655A1 (en) * 2007-11-20 2010-09-02 Huawei Technologies Co., Ltd. Method, System, and Apparatus for DHCP Authentication
CN102882962A (en) * 2012-09-24 2013-01-16 中兴通讯股份有限公司 Plug-and-play network element equipment, system and method for implementing online of plug-and-play network element equipment
CN106506182A (en) * 2015-09-06 2017-03-15 ***通信集团公司 A kind of method and system of configuration PTN business

Also Published As

Publication number Publication date
CN109302504B (en) 2020-08-04
CN109302504A (en) 2019-02-01

Similar Documents

Publication Publication Date Title
JP7079866B2 (en) Packet processing method and device
US10554542B2 (en) Label distribution method and device
RU2526749C2 (en) Method and system for host route reachability in packet transport network access ring
CN110324165B (en) Network equipment management method, device and system
US20200396162A1 (en) Service function chain sfc-based communication method, and apparatus
US20160315864A1 (en) Packet Processing Method, Apparatus, and System
US11477114B2 (en) Packet forwarding method and apparatus
US10581735B2 (en) Packet processing method and apparatus
KR20130009864A (en) Communication available transport network bandwidth to l2 ethernet nodes
JP5485543B2 (en) Communication method in network including primary network and secondary network
WO2015096409A1 (en) Method, device and system for discovering link in software-defined network
WO2019019918A1 (en) Method for establishing control signalling channel in ptn, ptn netwok element and storage medium
EP3068082B1 (en) Fault processing method and apparatus for edge route bridge in trill network
EP3382952A1 (en) Method, device and system for determining generic routing encapsulation (gre) tunnel identifier
CN110071874B (en) Method and system for realizing topology discovery link in cross-domain SDN network
CN108206746B (en) Network transmission control method and related equipment
CN115567986B (en) Communication network based on load balancing
CN116915874A (en) Data transmission method, device, equipment and storage medium

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: 18838037

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 18/06/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18838037

Country of ref document: EP

Kind code of ref document: A1