WO2021052241A1 - Address acquisition method and related device - Google Patents

Address acquisition method and related device Download PDF

Info

Publication number
WO2021052241A1
WO2021052241A1 PCT/CN2020/114552 CN2020114552W WO2021052241A1 WO 2021052241 A1 WO2021052241 A1 WO 2021052241A1 CN 2020114552 W CN2020114552 W CN 2020114552W WO 2021052241 A1 WO2021052241 A1 WO 2021052241A1
Authority
WO
WIPO (PCT)
Prior art keywords
otn
address information
management
control system
request message
Prior art date
Application number
PCT/CN2020/114552
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 WO2021052241A1 publication Critical patent/WO2021052241A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables

Definitions

  • the present disclosure relates to the technical field of optical transport networks, and in particular to an address acquisition method and related equipment.
  • Client Optical Transport Network (OTN, Optical Transport Network) equipment also called CPE OTN equipment
  • OTN Optical Transport Network
  • CPE OTN equipment CPE OTN equipment
  • CPE OTN equipment automatically obtains the IP address of the management and control system, but the industry does not have a unified implementation plan. This results in the scenario where the CPE OTN equipment is connected to the OTN of a different manufacturer’s metropolitan area, the CPE OTN equipment must manually configure parameters such as the IP address of the management and control system before it can be connected to the management and control system. Therefore, there is currently no effective solution for how to realize the automatic acquisition of the IP address of the management and control equipment in the case of a network of different manufacturers.
  • the embodiment of the present application expects to provide an address obtaining method and related equipment.
  • an embodiment of the present application provides an address acquisition method, the method includes: a first client OTN device sends a request message to a management and control system through the first OTN central office device; a request message arriving at the management and control system
  • the text includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the first client OTN device obtains all information through the first OTN central office device
  • the response message sent by the management and control system where the response message includes the third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
  • the first client OTN device sends a request message to the management and control system through the first OTN central office device, including: the first client OTN device sends the first client OTN device by broadcast.
  • the method further includes: the first client OTN device accesses the first OTN central office device to generate an address routing table; the address routing table is used to indicate the report The text is transmitted from the first client OTN device to the transmission path of the management and control system.
  • the request message and the response message are Dynamic Host Configuration Protocol (DHCP, Dynamic Host Configuration Protocol) messages;
  • DHCP Dynamic Host Configuration Protocol
  • the DHCP message includes a first specific field and a first specific field. Two specific fields and a third specific field; the first specific field is used to add the first address information and the fourth address information, the second specific field is used to add the second address information, the The third specific field is used to add the third address information.
  • DHCP Dynamic Host Configuration Protocol
  • an embodiment of the present application also provides an address obtaining method, the method includes: the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device; in the request message Including the first address information of the first client OTN device and the second address information of the first OTN central office device; the management and control system communicates to the first client OTN through the first OTN central office device The device sends a response message, and the response message includes the third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
  • the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, including: the management and control system obtains the first OTN device through unicast.
  • a second request message sent by an OTN central office device is that after the first OTN central office device obtains the first request message sent by the first client OTN device,
  • the first request message is generated by adding the second address information; the first request message includes the first address information of the first client OTN device.
  • the method before the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, the method further includes: the management and control system obtains the subnet configuration Information, the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple address information; the subnet information and the OTN central office equipment have a one-to-one correspondence; the multiple address information It is the address information corresponding to the subnet information that can be allocated to the client OTN device.
  • the method before the management and control system sends a response message to the first client OTN device through the first OTN central office device, the method further includes: the management and control system is based on The second address information in the request message queries the subnet configuration information, determines the subnet information corresponding to the first client OTN device, and selects from multiple address information corresponding to the subnet information One piece of address information serves as the fourth address information.
  • the request message and the response message are DHCP messages;
  • the DHCP message includes a first specific field, a second specific field, and a third specific field;
  • the first specific field is used to add the first address information and the fourth address information
  • the second specific field is used to add the second address information
  • the third specific field is used to add the third address information. Address information.
  • an embodiment of the present application also provides an address acquisition method, the method includes: the first OTN central office device forwards a request message sent by the first client OTN device to the management and control system;
  • the request message includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the first OTN central office device forwards the management and control system to the A response message of the first client OTN device; the response message includes the third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
  • the forwarding of the request message sent by the first client OTN device to the management and control system by the first OTN central office device includes: the first OTN central office device obtains the first The first request message sent by the client OTN device by broadcasting; the first request message includes the first address information of the first client OTN device; the first OTN central office device is in the Adding the second address information to the first request message generates a second request message, and sends the second request message to the management and control system in a unicast manner.
  • the method further includes: the first OTN central office device obtains routing configuration information; the routing configuration information is used to instruct the message to be transmitted from the management and control system to the client OTN The transmission path of the device; the first OTN central office device forwards the request message sent by the first client OTN device to the management and control system, including: the first OTN central office device forwards the first client OTN device based on the routing configuration information Request message sent to the management and control system.
  • the request message and the response message are DHCP messages;
  • the DHCP message includes a first specific field, a second specific field, and a third specific field;
  • the first specific field is used to add the first address information and the fourth address information
  • the second specific field is used to add the second address information
  • the third specific field is used to add the third address information. Address information.
  • the embodiments of the present application also provide a client OTN device, where the client OTN device is a first client OTN device; the device includes: a first sending unit and a first receiving unit; The first sending unit is configured to send a request message to the management and control system through a first OTN central office device; the request message arriving at the management and control system includes the first address information of the first client OTN device and the The second address information of the first OTN central office device;
  • the first receiving unit is configured to obtain a response message sent by the management and control system through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control system Fourth address information allocated to the first client OTN device.
  • the first sending unit is configured to send the first request message by broadcasting; the first request message includes the first client OTN device An address information; the first request message is received by the first OTN central office device, and the second address information is added to the first request message to generate and send a second request to the management and control system Message.
  • the device further includes a generating unit configured to access the first OTN central office device to generate an address routing table; the address routing table is used to indicate that packets are sent by the The first client OTN device is transmitted to the transmission path of the management and control system.
  • a generating unit configured to access the first OTN central office device to generate an address routing table; the address routing table is used to indicate that packets are sent by the The first client OTN device is transmitted to the transmission path of the management and control system.
  • the request message and the response message are DHCP messages;
  • the DHCP message includes a first specific field, a second specific field, and a third specific field;
  • the first specific field is used to add the first address information and the fourth address information
  • the second specific field is used to add the second address information
  • the third specific field is used to add the third address information. Address information.
  • an embodiment of the present application also provides a management and control system, the management and control system includes: a second receiving unit and a second sending unit; wherein, the second receiving unit is configured to pass through the first OTN central office equipment Obtain a request message sent by the first client OTN device; the request message includes the first address information of the first client OTN device and the second address information of the first OTN central office device;
  • the second sending unit is configured to send a response message to the first client OTN device through the first OTN central office device, and the response message includes the third address information of the management and control system and the The fourth address information allocated by the management and control system to the first client OTN device.
  • the second receiving unit is configured to obtain the second request message sent by the first OTN central office device in a unicast manner; the second request message is After the first OTN central office device obtains the first request message sent by the first client OTN device, it is generated by adding the second address information to the first request message; the first request The message includes the first address information of the first client OTN device.
  • the management and control system further includes an obtaining unit configured to obtain subnet configuration information.
  • the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple subnets. One piece of address information; the subnet information and the OTN central office device have a one-to-one correspondence; the multiple pieces of address information are address information corresponding to the subnet information and that can be allocated to the client OTN device.
  • the management and control system further includes a determining unit configured to send a response message to the first client OTN device by the second sending unit through the first OTN central office device Previously, the subnet configuration information was queried based on the second address information in the request message, and the subnet information corresponding to the first client OTN device was determined, from the multiple addresses corresponding to the subnet information One address information is selected as the fourth address information in the information.
  • the request message and the response message are DHCP messages;
  • the DHCP message includes a first specific field, a second specific field, and a third specific field;
  • the first specific field is used to add the first address information and the fourth address information
  • the second specific field is used to add the second address information
  • the third specific field is used to add the third address information. Address information.
  • the embodiments of the present application also provide an OTN central office equipment, the OTN central office equipment is a first OTN central office equipment; the equipment includes: a first communication unit and a second communication unit; wherein,
  • the first communication unit is configured to obtain a request message sent by a first client OTN device; and is also configured to forward a response message sent by the management and control system to the first client OTN device;
  • the second communication unit is configured to forward the request message to the management and control system; and is also configured to obtain a response message sent by the management and control system;
  • the request message arriving at the management and control system includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the response message includes the The third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
  • the device further includes a processing unit
  • the first communication unit is configured to obtain a first request message sent by the first client OTN device by broadcasting; the first request message includes the first request message of the first client OTN device Address information;
  • the processing unit is configured to add the second address information to the first request message to generate a second request message
  • the second communication unit is configured to send the second request message to the management and control system in a unicast manner.
  • the device further includes an obtaining unit configured to obtain routing configuration information; the routing configuration information is used to indicate the transmission path of the packet from the management and control system to the client OTN device ;
  • the second communication unit is configured to forward a request message sent by the first client OTN device to the management and control system based on the routing configuration information obtained by the obtaining unit.
  • the request message and the response message are DHCP messages;
  • the DHCP message includes a first specific field, a second specific field, and a third specific field;
  • the first specific field is used to add the first address information and the fourth address information
  • the second specific field is used to add the second address information
  • the third specific field is used to add the third address information. Address information.
  • the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the foregoing first, second, or third aspects of the embodiments of the present application are implemented The steps of the address obtaining method.
  • the embodiment of the present application also provides a communication device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • a communication device including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the program, the foregoing first embodiment of the embodiment of the present application is implemented. Aspect, the steps of the address acquisition method described in the second aspect or the third aspect.
  • the first OTN central office device forwards the message, without the client OTN device manually configuring the IP address and other parameters of the management and control system, and the client OTN device automatically obtains the IP address of the management and control system.
  • the client OTN device automatically obtains the IP address of the management and control system.
  • FIG. 1 is a schematic diagram of a system architecture applied by an address obtaining method according to an embodiment of the application
  • FIG. 2 is a first flowchart of the method for obtaining an address according to an embodiment of this application
  • FIG. 3 is a second flowchart of the method for obtaining an address according to an embodiment of this application.
  • FIG. 4 is a third flowchart of the method for obtaining an address according to an embodiment of this application.
  • FIG. 5 is a fourth flowchart of the method for obtaining an address according to an embodiment of this application.
  • FIG. 6 is a schematic diagram of a composition structure of a client OTN device according to an embodiment of the application.
  • FIG. 7 is a schematic diagram of another composition structure of a client OTN device according to an embodiment of the application.
  • FIG. 8 is a schematic diagram 1 of the composition structure of a management and control system according to an embodiment of the application.
  • FIG. 9 is a second schematic diagram of the composition structure of the management and control system according to an embodiment of the application.
  • FIG. 10 is a third schematic diagram of the composition structure of the management and control system according to an embodiment of the application.
  • FIG. 11 is a schematic diagram 1 of the composition structure of the OTN central office equipment according to an embodiment of the application.
  • FIG. 12 is a second schematic diagram of the composition structure of the OTN central office equipment according to an embodiment of the application.
  • FIG. 13 is a third schematic diagram of the composition structure of the OTN central office equipment according to an embodiment of the application.
  • FIG. 14 is a schematic diagram of the hardware composition structure of a communication device according to an embodiment of the application.
  • FIG. 1 is a schematic diagram of the system architecture of the application of the address acquisition method according to the embodiment of the application; as shown in Figure 1, the system includes: a management and control system, a central office device located in an internal data communication network (DCN, Data Communication Network), and a client OTN equipment. Among them, the internal DCN also has a gateway, and the gateway performs data communication with the management and control system through the external DCN.
  • DCN Data Communication Network
  • client OTN equipment which can also be called CPE OTN equipment
  • CPE OTN equipment refers to OTN equipment mainly deployed below the metropolitan area network ⁇ local network integrated service access node, which is directly connected to various group private line customer equipment, and is mainly placed in the customer
  • the central office at the computer room or edge is connected to the office.
  • the equipment mainly provides access and bearer for larger bandwidth services of 100Mbit/s and above, and also takes into account the access of small particle services below 100Mbit/s (such as E1, etc.) under special requirements.
  • the CPE OTN equipment can be connected to the OTN equipment of the central office’s integrated service access node (that is, the OTN equipment in the DCN intranet) through the OTN interface in the standard format on the line side.
  • the inter-domain interface IrDI, Inter-Domain Interface
  • IrDI Inter-Domain Interface
  • some of the OTN devices located in the internal DCN can be used as central office equipment, and the central office equipment has a DHCP relay (DHCP Relay) function; the DHCP relay function can be implemented in the main control board of the device.
  • the client OTN device as a DHCP Client, is configured with a default IP address when it leaves the factory. Client OTN equipment and central office equipment can communicate with each other.
  • the closest OTN device connected to the client OTN device that can communicate with the management and control system and located in the internal DCN can be used as a central office device (also called a DHCP relay).
  • the client OTN equipment and the central office equipment can be directly connected via optical fiber, and there can also be other equipment between the client OTN equipment and the central office equipment.
  • Fig. 2 is a schematic diagram 1 of the flow of an address obtaining method according to an embodiment of this application; as shown in Fig. 2, the method includes:
  • Step 101 The first client OTN device sends a request message to the management and control system through the first OTN central office device; the request message arriving at the management and control system includes the first address information of the first client OTN device and the address information.
  • Step 102 The first client OTN device obtains a response message sent by the management and control system through the first OTN central office device, and the response message includes the third address information of the management and control system and the Fourth address information allocated by the management and control system to the first client OTN device.
  • the first client OTN device may be any client OTN device in FIG. 1.
  • the technical solution of this embodiment is suitable for obtaining the address information of the management and control system through the forwarding of the OTN central office equipment before the first client OTN equipment accesses the OTN central office equipment.
  • the first OTN central office device may be the central office device closest to the first client OTN device in the internal network DCN.
  • the first client OTN device sends a request message to the management and control system through the first OTN central office device, including: the first client OTN device sends the request message by broadcast The first request message; the first request message includes the first address information of the first client OTN device; the first request message is received by the first OTN central office device, and the The first request message is added with the second address information to generate and send a second request message to the management and control system.
  • the first client OTN device sends the first request message in a broadcast manner; the OTN central office device that receives the first request message may serve as the first OTN central office device.
  • the first client OTN device adds the first address information of the first client OTN device to the first request message, and the first address information may be in the first client OTN device The default IP address configured at the factory.
  • the first OTN central office device After the first OTN central office device receives the first request message, it adds the second address information of the first OTN central office device to the first request message to generate a second request message, which is transmitted through unicast Sending the second request message to the management and control system.
  • the advantage of setting the OTN central office equipment is that if the OTN central office equipment is not set, the message still needs to be broadcast in the DCN, which will greatly increase the pressure on the network; and the OTN central office equipment can be unicast (Ie point-to-point transmission) way to transmit messages, can greatly reduce the network pressure.
  • the management and control system after obtaining the request message of the first client OTN device, the management and control system sends a response message to the first client OTN device, and the response message includes the third address information of the management and control system And fourth address information allocated by the management and control system to the first client OTN device.
  • the client OTN device for example, the first client OTN device
  • the OTN device which may include OTN central office equipment
  • the DCN intranet can be OTN devices manufactured by the same manufacturer, or they can be manufactured by different manufacturers. OTN equipment.
  • the address information (including the first address information, the second address information, the third address information, and the fourth address information) described in this embodiment may all be IP addresses.
  • this embodiment uses the first OTN central office device to forward the message, without the client OTN device manually configuring the IP address of the management and control system and other parameters, and realizes that the client OTN device automatically obtains the IP address of the management and control system.
  • the automatic connection between the client OTN equipment and the management and control system has also greatly improved the user experience on the other hand.
  • the method further includes: the first client OTN device accesses the first OTN central office device to generate an address routing table; the address routing table is used to indicate The message is transmitted from the first client OTN device to the transmission path of the management and control system.
  • the first client OTN device after the first client OTN device obtains the response message of the management and control system, it accesses the management and control system based on the obtained third address information and fourth address information, thereby realizing the access of the first client OTN device
  • the first OTN central office device generates an address routing table.
  • Fig. 3 is a second flowchart of the method for obtaining an address according to an embodiment of this application; as shown in Fig. 3, the method includes:
  • Step 201 The management and control system obtains the request message sent by the first client OTN device through the first OTN central office device; the request message includes the first address information of the first client OTN device and the first The second address information of the OTN central office equipment;
  • Step 202 The management and control system sends a response message to the first client OTN device through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control The fourth address information allocated by the system to the first client OTN device.
  • the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, including: the management and control system obtains the request message by unicast The second request message sent by the first OTN central office device; the second request message is that after the first OTN central office device obtains the first request message sent by the first client OTN device, The first request message is generated by adding the second address information; the first request message includes the first address information of the first client OTN device.
  • the first client OTN device sends the first request message in a broadcast manner; the OTN central office device that receives the first request message may serve as the first OTN central office device.
  • the first client OTN device adds the first address information of the first client OTN device to the first request message, and the first address information may be in the first client OTN device The default IP address configured at the factory.
  • the first OTN central office device After the first OTN central office device receives the first request message, it adds the second address information of the first OTN central office device to the first request message to generate a second request message, which is transmitted through unicast Sending the second request message to the management and control system.
  • the method before the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, the method further includes: the management and control system obtains the subnet Configuration information, the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple address information; the subnet information and the OTN central office equipment have a one-to-one correspondence; the multiple addresses The information is address information that corresponds to the subnet information and can be allocated to the client OTN device.
  • the OTN central office equipment in the network deployment stage, is first planned.
  • the OTN central office equipment can be deployed according to the location (or estimated location) of the client OTN equipment.
  • the OTN central office equipment can be deployed in a close area where the client OTN equipment is installed.
  • different subnets are configured for each OTN central office device, and different OTN central office devices correspond to different subnets.
  • the two OTN central office devices shown in Figure 1 can correspond to different subnets respectively.
  • subnet configuration information is stored in the management and control system, and the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple address information. It can be understood that multiple address information corresponding to different subnets are stored in the management and control system, and the management and control system needs to assign the corresponding OTN device to the client OTN device according to the subnet where the client OTN device is located (that is, the corresponding OTN central office device) The address information of the subnet (that is, the corresponding OTN central office equipment).
  • the method further includes: the management and control system is based on the request message Query the subnet configuration information in the second address information, determine the subnet information corresponding to the first client OTN device, and select one address information from the multiple address information corresponding to the subnet information as the first Four address information.
  • Fig. 4 is a schematic diagram of the third process of the method for obtaining an address according to an embodiment of this application; as shown in Fig. 4, the method includes:
  • Step 301 The first OTN central office device forwards the request message sent by the first client OTN device to the management and control system; the request message arriving at the management and control system includes the first address information of the first client OTN device and The second address information of the first OTN central office device;
  • Step 302 The first OTN central office device forwards the response message sent by the management and control system to the first client OTN device; the response message includes the third address information of the management and control system and the Fourth address information allocated by the management and control system to the first client OTN device.
  • the forwarding of the request message sent by the first client OTN device to the management and control system by the first OTN central office device includes: the first OTN central office device obtains the first OTN central office device A first request message sent by a client OTN device by broadcasting; the first request message includes the first address information of the first client OTN device; the first OTN central office device is Adding the second address information to the first request message generates a second request message, and sends the second request message to the management and control system in a unicast manner.
  • the first client OTN device sends the first request message in a broadcast manner; the OTN central office device that receives the first request message may serve as the first OTN central office device.
  • the first client OTN device adds the first address information of the first client OTN device to the first request message, and the first address information may be in the first client OTN device The default IP address configured at the factory.
  • the first OTN central office device After the first OTN central office device receives the first request message, it adds the second address information of the first OTN central office device to the first request message to generate a second request message, which is transmitted through unicast Sending the second request message to the management and control system.
  • the OTN central office equipment in the network deployment stage, is first planned.
  • the OTN central office equipment can be deployed according to the location (or estimated location) of the client OTN equipment.
  • the OTN central office equipment can be deployed in a close area where the client OTN equipment is installed.
  • different subnets are configured for each OTN central office device, and different OTN central office devices correspond to different subnets.
  • the two OTN central office devices shown in Figure 1 can correspond to different subnets respectively.
  • the method further includes: the first OTN central office device obtains routing configuration information; the routing configuration information is used to indicate that the message is transmitted from the management and control system to the client OTN device Transmission path; the first OTN central office device forwards the request message sent by the first client OTN device to the management and control system, including: the first OTN central office device forwards the first client OTN device to send based on the routing configuration information The request message of the control system.
  • the request message and the response message are DHCP messages;
  • the DHCP message includes a first specific field, a second specific field, and a third specific field;
  • the first specific field is used for The first address information and the fourth address information are added, the second specific field is used to add the second address information, and the third specific field is used to add the third address information.
  • Table 1 is a schematic diagram of a message format according to an embodiment of the application; specifically, a schematic diagram of a DHCP message format.
  • htype hardware address type 1 represents the hardware address of 10Mb/s Ethernet
  • Hops the number of hops; the client is set to 0, or it can be set by a proxy server;
  • transaction ID a random number selected by the client, used by the server and client to communicate requests and responses between them, and the client uses this field to match requests and responses.
  • the ID is set by the client and returned by the server as a 32-bit integer;
  • Flags flag field; 16 bits, currently only the leftmost bit is defined. The bit position is 0, which means unicast, and set to 1 means broadcast;
  • sname optional server host name, this field is a null-terminated string to be filled in by the server
  • file the name of the startup file, is a null-terminated string.
  • the DHCP Discover message contains a "generic" name or empty characters, and the DHCP Offer message provides a valid full name of the directory path;
  • the request message and the response message are both DHCP messages, and the first address information, the second address information, the third address information, and the first address information are filled in through certain specific fields in the DHCP message.
  • Four address information are provided.
  • the first address information, the second address information, the third address information, and the fourth address information can be filled in with reference to Table 2.
  • the first address information, the second address information, the third address information, and the fourth address information can be filled in in the request message stage through the yiaddr field.
  • Address information (the default IP address assigned by the first client OTN device when it leaves the factory), and fill in the fourth address information (that is, the IP address assigned by the management and control system for the first client OTN device) in the response message stage through the yiaddr field; Fill in the second address information (that is, the IP address of the OTN central office device) through the giaddr field; and fill in the third address information (that is, the IP address of the management and control system) through the sname field.
  • FIG. 5 is a fourth flowchart of the method for obtaining an address according to an embodiment of this application; as shown in FIG. 5, the method includes:
  • Step 401 The first client OTN device sends a first request message by broadcasting, and the yiaddr field in the first request message is filled with the default IP address of the first client OTN device;
  • Step 402 The first OTN central office device receives the first request message, and fills in the IP address of the first OTN central office device in the giaddr field in the first request message to generate a second request message , Sending the second request message to the management and control system in a unicast manner;
  • Step 403 The management and control system receives the second request message, determines the first OTN central office device based on the giaddr field in the second request message, and obtains multiple IP addresses corresponding to the first OTN central office device. Choose an IP address to fill in the yiaddr field in the response message, and fill in its own IP address in the sname field, and send the response message to the first OTN central office device;
  • Step 404 The first OTN central office device forwards the response message to the first client OTN device;
  • Step 405 The first client OTN device obtains the response message, and obtains the IP address of the management and control system, the IP address assigned to it, and so on from the response message.
  • the first OTN central office device forwards the message, without the client OTN device manually configuring the IP address and other parameters of the management and control system, and the client OTN device automatically obtains the IP address of the management and control system.
  • the client OTN device automatically obtains the IP address of the management and control system.
  • FIG. 6 is a schematic diagram of a composition structure of a client OTN device according to an embodiment of the application; as shown in FIG. 6, the device includes: a first sending unit 51 and a first receiving unit 52; wherein,
  • the first sending unit 51 is configured to send a request message to the management and control system through a first OTN central office device; the request message arriving at the management and control system includes the first address information of the first client OTN device and The second address information of the first OTN central office device;
  • the first receiving unit 52 is configured to obtain a response message sent by the management and control system through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control system.
  • the first sending unit 51 is configured to send a first request message by broadcasting; the first request message includes the first client The first address information of the OTN device; the first request message is received by the first OTN central office device, and the second address information is added to the first request message to generate and send it to the management and control system Send the second request message.
  • the device further includes a generating unit 53 configured to access the first OTN central office device to generate an address routing table; the address The routing table is used to indicate the transmission path of the message from the first client OTN device to the management and control system.
  • the request message and the response message are DHCP messages
  • the DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  • the generating unit 53 in the client OTN device can be implemented by the central processing unit (CPU, Central Processing Unit) and the digital signal processor (DSP, Digital Signal Processor) in the device in practical applications.
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • MCU Microcontroller Unit
  • FPGA Programmable Gate Array
  • the first sending unit 51 and the first receiving unit 52 in the client OTN device are used in practical applications It can be realized by communication module (including: basic communication kit, operating system, communication module, standardized interface and protocol, etc.) and transceiver antenna.
  • the client OTN device provided in the above embodiment performs address acquisition processing
  • only the division of the above program modules is used for illustration.
  • the above processing can be allocated to different program modules according to needs. Complete, that is, divide the internal structure of the device into different program modules to complete all or part of the processing described above.
  • the client OTN device provided in the foregoing embodiment and the address acquisition method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
  • FIG. 8 is a schematic diagram 1 of the composition structure of the management and control system according to an embodiment of the application; as shown in FIG. 8, the management and control system includes: a second receiving unit 61 and a second sending unit 62; wherein,
  • the second receiving unit 61 is configured to obtain the request message sent by the first client OTN device through the first OTN central office device; the request message includes the first address information of the first client OTN device And the second address information of the first OTN central office device;
  • the second sending unit 62 is configured to send a response message to the first client OTN device through the first OTN central office device, and the response message includes the third address information of the management and control system and The fourth address information allocated by the management and control system to the first client OTN device.
  • the second receiving unit 61 is configured to obtain the second request packet sent by the first OTN central office device in a unicast manner; the second The request message is generated by adding the second address information to the first request message after the first OTN central office device obtains the first request message sent by the first client OTN device; The first request message includes the first address information of the first client OTN device.
  • the management and control system further includes an obtaining unit 63 configured to obtain subnet configuration information, and the subnet configuration information includes multiple groups of subnets.
  • the management and control system further includes a determining unit 64, configured to send the second sending unit 62 to the station through the first OTN central office device.
  • a determining unit 64 configured to send the second sending unit 62 to the station through the first OTN central office device.
  • query the subnet configuration information based on the second address information in the request message to determine the subnet information corresponding to the first client OTN device.
  • One piece of address information is selected as the fourth address information from a plurality of address information corresponding to the subnet information.
  • the request message and the response message are DHCP messages
  • the DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  • the acquiring unit 63 and the determining unit 64 in the management and control system can be implemented by the CPU, DSP, MCU or FPGA in the management and control system in practical applications;
  • the second sending unit in the management and control system 62 and the second receiving unit 61 can be implemented by a communication module (including a basic communication kit, an operating system, a communication module, a standardized interface and a protocol, etc.) and a transceiver antenna in practical applications.
  • management and control system provided in the above embodiment performs address acquisition processing
  • only the division of the above-mentioned program modules is used as an example for illustration.
  • the above-mentioned processing can be allocated by different program modules as needed. That is, the internal structure of the management and control system is divided into different program modules to complete all or part of the processing described above.
  • the management and control system provided in the foregoing embodiment and the address acquisition method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
  • FIG. 11 is a schematic diagram 1 of the composition structure of the OTN central office equipment according to an embodiment of the application; as shown in FIG. 11
  • the device includes: a first communication unit 71 and a second communication unit 72; wherein,
  • the first communication unit 71 is configured to obtain a request message sent by the first client OTN device; and is also configured to forward a response message sent by the management and control system to the first client OTN device;
  • the second communication unit 72 is configured to forward the request message to the management and control system; and is also configured to obtain a response message sent by the management and control system;
  • the request message arriving at the management and control system includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the response message includes the The third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
  • the first communication unit 71 is configured to obtain a first request message sent by the first client OTN device by broadcasting; the first request message includes the first request message of the first client OTN device One address information;
  • the processing unit 73 is configured to add the second address information to the first request message to generate a second request message
  • the second communication unit 72 is configured to send the second request message to the management and control system in a unicast manner.
  • the device further includes an obtaining unit 74 configured to obtain routing configuration information; the routing configuration information is used to indicate that the packet is transmitted by the management and control system Transmission path to client OTN equipment;
  • the second communication unit 72 is configured to forward a request message sent by the first client OTN device to the management and control system based on the routing configuration information obtained by the obtaining unit 74.
  • the request message and the response message are DHCP messages
  • the DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  • the OTN central office device provided in the above embodiment performs address acquisition processing
  • only the division of the above program modules is used as an example for illustration.
  • the above processing can be allocated to different program modules according to needs.
  • Complete that is, divide the internal structure of the device into different program modules to complete all or part of the processing described above.
  • the OTN central office equipment provided in the foregoing embodiment belongs to the same concept as the address acquisition method embodiment, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
  • the embodiment of the present application also provides a communication device.
  • the communication device may specifically be a client OTN device, a management and control system, or an OTN central office device.
  • FIG. 14 is a schematic diagram of the hardware composition structure of a communication device according to an embodiment of the application.
  • the communication device 80 includes a memory 82, a processor 81, and a computer stored on the memory 82 and running on the processor 81 A program, when the processor 81 executes the program, the steps of the address obtaining method applied to the client OTN device, the management and control system, or the OTN central office device in the embodiment of the present application are implemented.
  • the communication device 80 also includes a communication interface 83.
  • the various components in the communication device 80 can be coupled together through the bus system 84.
  • the bus system 84 is used to implement connection and communication between these components.
  • the bus system 84 also includes a power bus, a control bus, and a status signal bus.
  • various buses are marked as the bus system 84 in FIG. 14.
  • the memory 82 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), and erasable programmable read-only memory (EPROM, Erasable Programmable Read- Only Memory, Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage.
  • the volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • SSRAM synchronous static random access memory
  • Synchronous Static Random Access Memory Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • SLDRAM synchronous connection dynamic random access memory
  • DRRAM Direct Rambus Random Access Memory
  • the memory 82 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
  • the method disclosed in the foregoing embodiments of the present application may be applied to the processor 81 or implemented by the processor 81.
  • the processor 81 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 81 or instructions in the form of software.
  • the aforementioned processor 81 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • the processor 81 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 82.
  • the processor 81 reads the information in the memory 82 and completes the steps of the foregoing method in combination with its hardware.
  • the communication device 80 may be configured by one or more Application Specific Integrated Circuits (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, Programmable Logic Device), and Complex Programmable Logic Device (CPLD). , Complex Programmable Logic Device, FPGA, general-purpose processor, controller, MCU, microprocessor (Microprocessor), or other electronic components to implement the foregoing method.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processing
  • PLD Programmable Logic Device
  • CPLD Complex Programmable Logic Device
  • FPGA field-programmable Logic Device
  • controller Microcontroller
  • MCU microprocessor
  • the embodiment of the present application also provides a computer-readable storage medium, such as a memory 82 including a computer program, which can be executed by the processor 81 of the communication device 80 to complete the steps described in the foregoing method.
  • the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
  • the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored.
  • the program When the program is executed by a processor, it realizes the application of the client OTN equipment, the management and control system, or the OTN central office equipment in the embodiments of the present application.
  • the steps of the address obtaining method When the program is executed by a processor, it realizes the application of the client OTN equipment, the management and control system, or the OTN central office equipment in the embodiments of the present application.
  • the features disclosed in the several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain a new method embodiment or device embodiment.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they 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.
  • the functional units in the embodiments of the present application can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can 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 can be stored in a computer readable storage medium. When the program is executed, it is executed. Including the steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, ROM, RAM, magnetic disk, or optical disk.
  • the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the computer software product is stored in a storage medium and includes several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: removable storage devices, ROM, RAM, magnetic disks, or optical disks and other media that can store program codes.

Landscapes

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

Abstract

Disclosed are an address acquisition method and a related device. The method comprises: a first client optical transport network (OTN) device sending a request message to a management and control system by means of a first OTN local end device, wherein the request message reaching the management and control system comprises information of a first address of the first client OTN device and information of a second address of the first OTN local end device; and the first client OTN device obtaining, by means of the first OTN local end device, a response message sent by the management and control system, wherein the response message comprises information of a third address of the management and control system and information of a fourth address allocated by the management and control system to the first client OTN device.

Description

一种地址获取方法及相关设备Method for obtaining address and related equipment
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为201910894845.2、申请日为2019年09月20日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is filed based on a Chinese patent application whose application number is 201910894845.2, and the filing date is September 20, 2019, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application by way of introduction.
技术领域Technical field
本公开涉及光传送网技术领域,具体涉及一种地址获取方法及相关设备。The present disclosure relates to the technical field of optical transport networks, and in particular to an address acquisition method and related equipment.
背景技术Background technique
客户端光传送网(OTN,Optical Transport Network)设备(也可称为CPE OTN设备)作为客户侧设备,需具备良好的即插即用功能(即上电后自动获取管控系统的IP地址,实现管控报文互通),从而提高用户体验。Client Optical Transport Network (OTN, Optical Transport Network) equipment (also called CPE OTN equipment), as a client-side equipment, needs to have a good plug-and-play function (that is, automatically obtain the IP address of the management and control system after power-on to achieve Interoperability of control messages) to improve user experience.
目前有部分厂家能够实现CPE OTN设备自动获取管控系统的IP地址,但业界并没有统一的实现方案。这造成了在CPE OTN设备与异厂家城域OTN对接的场景下,CPE OTN设备必须手动配置管控系统的IP地址等参数,才能与管控系统对接。因此,如何在异厂家组网的情况下实现管控设备的IP地址的自动获取,目前尚无有效解决方案。At present, some manufacturers can realize that CPE OTN equipment automatically obtains the IP address of the management and control system, but the industry does not have a unified implementation plan. This results in the scenario where the CPE OTN equipment is connected to the OTN of a different manufacturer’s metropolitan area, the CPE OTN equipment must manually configure parameters such as the IP address of the management and control system before it can be connected to the management and control system. Therefore, there is currently no effective solution for how to realize the automatic acquisition of the IP address of the management and control equipment in the case of a network of different manufacturers.
发明内容Summary of the invention
本申请实施例期望提供一种地址获取方法及相关设备。The embodiment of the present application expects to provide an address obtaining method and related equipment.
本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:
第一方面,本申请实施例提供了一种地址获取方法,所述方法包括: 第一客户端OTN设备通过第一OTN局端设备向管控系统发送请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;所述第一客户端OTN设备通过所述第一OTN局端设备获得所述管控系统发送的响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。In the first aspect, an embodiment of the present application provides an address acquisition method, the method includes: a first client OTN device sends a request message to a management and control system through the first OTN central office device; a request message arriving at the management and control system The text includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the first client OTN device obtains all information through the first OTN central office device The response message sent by the management and control system, where the response message includes the third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
在本申请的一些可选实施例中,所述第一客户端OTN设备通过第一OTN局端设备向管控系统发送请求报文,包括:所述第一客户端OTN设备通过广播的方式发送第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;所述第一请求报文被所述第一OTN局端设备接收到,在所述第一请求报文中添加所述第二地址信息生成并向所述管控系统发送第二请求报文。In some optional embodiments of the present application, the first client OTN device sends a request message to the management and control system through the first OTN central office device, including: the first client OTN device sends the first client OTN device by broadcast. A request message; the first request message includes the first address information of the first client OTN device; the first request message is received by the first OTN central office device, in the The first request message is added with the second address information to generate and send a second request message to the management and control system.
在本申请的一些可选实施例中,所述方法还包括:所述第一客户端OTN设备接入所述第一OTN局端设备,生成地址路由表;所述地址路由表用于指示报文由所述第一客户端OTN设备传输至所述管控系统的传输路径。In some optional embodiments of the present application, the method further includes: the first client OTN device accesses the first OTN central office device to generate an address routing table; the address routing table is used to indicate the report The text is transmitted from the first client OTN device to the transmission path of the management and control system.
在本申请的一些可选实施例中,所述请求报文和所述响应报文为动态主机设置协议(DHCP,Dynamic Host Configuration Protocol)报文;所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。In some optional embodiments of the present application, the request message and the response message are Dynamic Host Configuration Protocol (DHCP, Dynamic Host Configuration Protocol) messages; the DHCP message includes a first specific field and a first specific field. Two specific fields and a third specific field; the first specific field is used to add the first address information and the fourth address information, the second specific field is used to add the second address information, the The third specific field is used to add the third address information.
第二方面,本申请实施例还提供了一种地址获取方法,所述方法包括:管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文;所述请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;所述管控系统通过所述第一OTN局 端设备向所述第一客户端OTN设备发送响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。In a second aspect, an embodiment of the present application also provides an address obtaining method, the method includes: the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device; in the request message Including the first address information of the first client OTN device and the second address information of the first OTN central office device; the management and control system communicates to the first client OTN through the first OTN central office device The device sends a response message, and the response message includes the third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
在本申请的一些可选实施例中,所述管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文,包括:所述管控系统通过单播的方式获得所述第一OTN局端设备发送的第二请求报文;所述第二请求报文为所述第一OTN局端设备获得所述第一客户端OTN设备发送的第一请求报文后、在所述第一请求报文中添加所述第二地址信息而生成;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息。In some optional embodiments of the present application, the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, including: the management and control system obtains the first OTN device through unicast. A second request message sent by an OTN central office device; the second request message is that after the first OTN central office device obtains the first request message sent by the first client OTN device, The first request message is generated by adding the second address information; the first request message includes the first address information of the first client OTN device.
在本申请的一些可选实施例中,所述管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文之前,所述方法还包括:所述管控系统获得子网配置信息,所述子网配置信息中包括多组子网信息、对应的OTN局端设备以及多个地址信息;所述子网信息以及所述OTN局端设备一一对应;所述多个地址信息为与子网信息对应的、能够分配给客户端OTN设备的地址信息。In some optional embodiments of the present application, before the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, the method further includes: the management and control system obtains the subnet configuration Information, the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple address information; the subnet information and the OTN central office equipment have a one-to-one correspondence; the multiple address information It is the address information corresponding to the subnet information that can be allocated to the client OTN device.
在本申请的一些可选实施例中,所述管控系统通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文之前,所述方法还包括:所述管控系统基于所述请求报文中的所述第二地址信息查询所述子网配置信息,确定所述第一客户端OTN设备对应的子网信息,从所述子网信息对应的多个地址信息中选择一个地址信息作为第四地址信息。In some optional embodiments of the present application, before the management and control system sends a response message to the first client OTN device through the first OTN central office device, the method further includes: the management and control system is based on The second address information in the request message queries the subnet configuration information, determines the subnet information corresponding to the first client OTN device, and selects from multiple address information corresponding to the subnet information One piece of address information serves as the fourth address information.
在本申请的一些可选实施例中,所述请求报文和所述响应报文为DHCP报文;所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。In some optional embodiments of the present application, the request message and the response message are DHCP messages; the DHCP message includes a first specific field, a second specific field, and a third specific field; The first specific field is used to add the first address information and the fourth address information, the second specific field is used to add the second address information, and the third specific field is used to add the third address information. Address information.
第三方面,本申请实施例还提供了一种地址获取方法,所述方法包括:第一OTN局端设备转发第一客户端OTN设备发送至管控系统的请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;所述第一OTN局端设备转发所述管控系统发送至所述第一客户端OTN设备的响应报文;所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。In a third aspect, an embodiment of the present application also provides an address acquisition method, the method includes: the first OTN central office device forwards a request message sent by the first client OTN device to the management and control system; The request message includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the first OTN central office device forwards the management and control system to the A response message of the first client OTN device; the response message includes the third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
在本申请的一些可选实施例中,所述第一OTN局端设备转发第一客户端OTN设备发送至管控系统的请求报文,包括:所述第一OTN局端设备获得所述第一客户端OTN设备通过广播的方式发送的第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;所述第一OTN局端设备在所述第一请求报文中添加所述第二地址信息生成第二请求报文,通过单播的方式向所述管控系统发送所述第二请求报文。In some optional embodiments of the present application, the forwarding of the request message sent by the first client OTN device to the management and control system by the first OTN central office device includes: the first OTN central office device obtains the first The first request message sent by the client OTN device by broadcasting; the first request message includes the first address information of the first client OTN device; the first OTN central office device is in the Adding the second address information to the first request message generates a second request message, and sends the second request message to the management and control system in a unicast manner.
在本申请的一些可选实施例中,所述方法还包括:所述第一OTN局端设备获得路由配置信息;所述路由配置信息用于指示报文由所述管控系统传输至客户端OTN设备的传输路径;所述第一OTN局端设备转发第一客户端OTN设备发送至管控系统的请求报文,包括:第一OTN局端设备基于所述路由配置信息转发第一客户端OTN设备发送至管控系统的请求报文。In some optional embodiments of the present application, the method further includes: the first OTN central office device obtains routing configuration information; the routing configuration information is used to instruct the message to be transmitted from the management and control system to the client OTN The transmission path of the device; the first OTN central office device forwards the request message sent by the first client OTN device to the management and control system, including: the first OTN central office device forwards the first client OTN device based on the routing configuration information Request message sent to the management and control system.
在本申请的一些可选实施例中,所述请求报文和所述响应报文为DHCP报文;所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。In some optional embodiments of the present application, the request message and the response message are DHCP messages; the DHCP message includes a first specific field, a second specific field, and a third specific field; The first specific field is used to add the first address information and the fourth address information, the second specific field is used to add the second address information, and the third specific field is used to add the third address information. Address information.
第四方面,本申请实施例还提供了一种客户端OTN设备,所述客户端 OTN设备为第一客户端OTN设备;所述设备包括:第一发送单元和第一接收单元;其中,所述第一发送单元,配置为通过第一OTN局端设备向管控系统发送请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;In a fourth aspect, the embodiments of the present application also provide a client OTN device, where the client OTN device is a first client OTN device; the device includes: a first sending unit and a first receiving unit; The first sending unit is configured to send a request message to the management and control system through a first OTN central office device; the request message arriving at the management and control system includes the first address information of the first client OTN device and the The second address information of the first OTN central office device;
所述第一接收单元,配置为通过所述第一OTN局端设备获得所述管控系统发送的响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。The first receiving unit is configured to obtain a response message sent by the management and control system through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control system Fourth address information allocated to the first client OTN device.
在本申请的一些可选实施例中,所述第一发送单元,配置为通过广播的方式发送第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;所述第一请求报文被所述第一OTN局端设备接收到,在所述第一请求报文中添加所述第二地址信息生成并向所述管控系统发送第二请求报文。In some optional embodiments of the present application, the first sending unit is configured to send the first request message by broadcasting; the first request message includes the first client OTN device An address information; the first request message is received by the first OTN central office device, and the second address information is added to the first request message to generate and send a second request to the management and control system Message.
在本申请的一些可选实施例中,所述设备还包括生成单元,配置为接入所述第一OTN局端设备,生成地址路由表;所述地址路由表用于指示报文由所述第一客户端OTN设备传输至所述管控系统的传输路径。In some optional embodiments of the present application, the device further includes a generating unit configured to access the first OTN central office device to generate an address routing table; the address routing table is used to indicate that packets are sent by the The first client OTN device is transmitted to the transmission path of the management and control system.
在本申请的一些可选实施例中,所述请求报文和所述响应报文为DHCP报文;所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。In some optional embodiments of the present application, the request message and the response message are DHCP messages; the DHCP message includes a first specific field, a second specific field, and a third specific field; The first specific field is used to add the first address information and the fourth address information, the second specific field is used to add the second address information, and the third specific field is used to add the third address information. Address information.
第五方面,本申请实施例还提供了一种管控系统,所述管控系统包括:第二接收单元和第二发送单元;其中,所述第二接收单元,配置为通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文;所述请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;In a fifth aspect, an embodiment of the present application also provides a management and control system, the management and control system includes: a second receiving unit and a second sending unit; wherein, the second receiving unit is configured to pass through the first OTN central office equipment Obtain a request message sent by the first client OTN device; the request message includes the first address information of the first client OTN device and the second address information of the first OTN central office device;
所述第二发送单元,配置为通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。The second sending unit is configured to send a response message to the first client OTN device through the first OTN central office device, and the response message includes the third address information of the management and control system and the The fourth address information allocated by the management and control system to the first client OTN device.
在本申请的一些可选实施例中,所述第二接收单元,配置为通过单播的方式获得所述第一OTN局端设备发送的第二请求报文;所述第二请求报文为所述第一OTN局端设备获得所述第一客户端OTN设备发送的第一请求报文后、在所述第一请求报文中添加所述第二地址信息而生成;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息。In some optional embodiments of the present application, the second receiving unit is configured to obtain the second request message sent by the first OTN central office device in a unicast manner; the second request message is After the first OTN central office device obtains the first request message sent by the first client OTN device, it is generated by adding the second address information to the first request message; the first request The message includes the first address information of the first client OTN device.
在本申请的一些可选实施例中,所述管控系统还包括获取单元,配置为获得子网配置信息,所述子网配置信息中包括多组子网信息、对应的OTN局端设备以及多个地址信息;所述子网信息以及所述OTN局端设备一一对应;所述多个地址信息为与子网信息对应的、能够分配给客户端OTN设备的地址信息。In some optional embodiments of the present application, the management and control system further includes an obtaining unit configured to obtain subnet configuration information. The subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple subnets. One piece of address information; the subnet information and the OTN central office device have a one-to-one correspondence; the multiple pieces of address information are address information corresponding to the subnet information and that can be allocated to the client OTN device.
在本申请的一些可选实施例中,所述管控系统还包括确定单元,配置为所述第二发送单元通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文之前,基于所述请求报文中的所述第二地址信息查询所述子网配置信息,确定所述第一客户端OTN设备对应的子网信息,从所述子网信息对应的多个地址信息中选择一个地址信息作为第四地址信息。In some optional embodiments of the present application, the management and control system further includes a determining unit configured to send a response message to the first client OTN device by the second sending unit through the first OTN central office device Previously, the subnet configuration information was queried based on the second address information in the request message, and the subnet information corresponding to the first client OTN device was determined, from the multiple addresses corresponding to the subnet information One address information is selected as the fourth address information in the information.
在本申请的一些可选实施例中,所述请求报文和所述响应报文为DHCP报文;所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。In some optional embodiments of the present application, the request message and the response message are DHCP messages; the DHCP message includes a first specific field, a second specific field, and a third specific field; The first specific field is used to add the first address information and the fourth address information, the second specific field is used to add the second address information, and the third specific field is used to add the third address information. Address information.
第六方面,本申请实施例还提供了一种OTN局端设备,所述OTN局端设备为第一OTN局端设备;所述设备包括:第一通讯单元和第二通讯单 元;其中,In a sixth aspect, the embodiments of the present application also provide an OTN central office equipment, the OTN central office equipment is a first OTN central office equipment; the equipment includes: a first communication unit and a second communication unit; wherein,
所述第一通讯单元,配置为获得第一客户端OTN设备发送的请求报文;还配置为将管控系统发送的响应报文转发至所述第一客户端OTN设备;The first communication unit is configured to obtain a request message sent by a first client OTN device; and is also configured to forward a response message sent by the management and control system to the first client OTN device;
所述第二通讯单元,配置为转发所述请求报文至管控系统;还配置为获得管控系统发送的响应报文;The second communication unit is configured to forward the request message to the management and control system; and is also configured to obtain a response message sent by the management and control system;
其中,到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。Wherein, the request message arriving at the management and control system includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the response message includes the The third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
在本申请的一些可选实施例中,所述设备还包括处理单元;In some optional embodiments of the present application, the device further includes a processing unit;
所述第一通讯单元,配置为获得所述第一客户端OTN设备通过广播的方式发送的第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;The first communication unit is configured to obtain a first request message sent by the first client OTN device by broadcasting; the first request message includes the first request message of the first client OTN device Address information;
所述处理单元,配置为在所述第一请求报文中添加所述第二地址信息生成第二请求报文;The processing unit is configured to add the second address information to the first request message to generate a second request message;
所述第二通讯单元,配置为通过单播的方式向所述管控系统发送所述第二请求报文。The second communication unit is configured to send the second request message to the management and control system in a unicast manner.
在本申请的一些可选实施例中,所述设备还包括获取单元,配置为获得路由配置信息;所述路由配置信息用于指示报文由所述管控系统传输至客户端OTN设备的传输路径;In some optional embodiments of the present application, the device further includes an obtaining unit configured to obtain routing configuration information; the routing configuration information is used to indicate the transmission path of the packet from the management and control system to the client OTN device ;
所述第二通讯单元,配置为基于所述获取单元获得的所述路由配置信息转发第一客户端OTN设备发送至管控系统的请求报文。The second communication unit is configured to forward a request message sent by the first client OTN device to the management and control system based on the routing configuration information obtained by the obtaining unit.
在本申请的一些可选实施例中,所述请求报文和所述响应报文为DHCP报文;所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述 第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。In some optional embodiments of the present application, the request message and the response message are DHCP messages; the DHCP message includes a first specific field, a second specific field, and a third specific field; The first specific field is used to add the first address information and the fourth address information, the second specific field is used to add the second address information, and the third specific field is used to add the third address information. Address information.
第七方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本申请实施例前述第一方面、第二方面或第三方面所述的地址获取方法的步骤。In a seventh aspect, the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the foregoing first, second, or third aspects of the embodiments of the present application are implemented The steps of the address obtaining method.
本申请实施例还提供了一种通信设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现本申请实施例前述第一方面、第二方面或第三方面所述的地址获取方法的步骤。The embodiment of the present application also provides a communication device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the program, the foregoing first embodiment of the embodiment of the present application is implemented. Aspect, the steps of the address acquisition method described in the second aspect or the third aspect.
本申请实施例提供的地址获取方法及相关设备,所述方法包括:第一客户端OTN设备通过第一OTN局端设备向管控系统发送请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;所述第一客户端OTN设备通过所述第一OTN局端设备获得所述管控系统发送的响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。采用本申请实施例的技术方案,通过第一OTN局端设备对报文实现转发,无需客户端OTN设备手动配置管控系统的IP地址等参数,实现了客户端OTN设备自动获取管控系统的IP地址,从而实现了客户端OTN设备与管控系统的自动对接,从另一方面也大大提升了用户体验。The address acquisition method and related equipment provided by the embodiments of the present application include: the first client OTN device sends a request message to the management and control system through the first OTN central office device; the request message arriving at the management and control system includes The first address information of the first client OTN device and the second address information of the first OTN central office device; the first client OTN device obtains the management and control system through the first OTN central office device A sent response message, the response message including the third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device. By adopting the technical solution of the embodiment of the present application, the first OTN central office device forwards the message, without the client OTN device manually configuring the IP address and other parameters of the management and control system, and the client OTN device automatically obtains the IP address of the management and control system. , Thus realizing the automatic docking between the client OTN equipment and the management and control system, on the other hand, it also greatly improves the user experience.
附图说明Description of the drawings
图1为本申请实施例的地址获取方法应用的系统架构示意图;FIG. 1 is a schematic diagram of a system architecture applied by an address obtaining method according to an embodiment of the application;
图2为本申请实施例的地址获取方法的流程示意图一;FIG. 2 is a first flowchart of the method for obtaining an address according to an embodiment of this application;
图3为本申请实施例的地址获取方法的流程示意图二;FIG. 3 is a second flowchart of the method for obtaining an address according to an embodiment of this application;
图4为本申请实施例的地址获取方法的流程示意图三;FIG. 4 is a third flowchart of the method for obtaining an address according to an embodiment of this application;
图5为本申请实施例的地址获取方法的流程示意图四;FIG. 5 is a fourth flowchart of the method for obtaining an address according to an embodiment of this application;
图6为本申请实施例的客户端OTN设备的一种组成结构示意图;FIG. 6 is a schematic diagram of a composition structure of a client OTN device according to an embodiment of the application;
图7为本申请实施例的客户端OTN设备的另一种组成结构示意图;FIG. 7 is a schematic diagram of another composition structure of a client OTN device according to an embodiment of the application;
图8为本申请实施例的管控系统的组成结构示意图一;FIG. 8 is a schematic diagram 1 of the composition structure of a management and control system according to an embodiment of the application;
图9为本申请实施例的管控系统的组成结构示意图二;FIG. 9 is a second schematic diagram of the composition structure of the management and control system according to an embodiment of the application;
图10为本申请实施例的管控系统的组成结构示意图三;FIG. 10 is a third schematic diagram of the composition structure of the management and control system according to an embodiment of the application;
图11为本申请实施例的OTN局端设备的组成结构示意图一;11 is a schematic diagram 1 of the composition structure of the OTN central office equipment according to an embodiment of the application;
图12为本申请实施例的OTN局端设备的组成结构示意图二;FIG. 12 is a second schematic diagram of the composition structure of the OTN central office equipment according to an embodiment of the application;
图13为本申请实施例的OTN局端设备的组成结构示意图三;FIG. 13 is a third schematic diagram of the composition structure of the OTN central office equipment according to an embodiment of the application;
图14为本申请实施例的通讯设备的硬件组成结构示意图。FIG. 14 is a schematic diagram of the hardware composition structure of a communication device according to an embodiment of the application.
具体实施方式detailed description
下面结合附图及具体实施例对本申请作进一步详细的说明。The application will be further described in detail below in conjunction with the drawings and specific embodiments.
图1为本申请实施例的地址获取方法应用的系统架构示意图;如图1所示,系统中包括:管控系统、位于内部数据通信网络(DCN,Data Communication Network)的局端设备和客户端OTN设备。其中,内部DCN中还具有网关,网关通过外部DCN与管控系统进行数据通信。Figure 1 is a schematic diagram of the system architecture of the application of the address acquisition method according to the embodiment of the application; as shown in Figure 1, the system includes: a management and control system, a central office device located in an internal data communication network (DCN, Data Communication Network), and a client OTN equipment. Among them, the internal DCN also has a gateway, and the gateway performs data communication with the management and control system through the external DCN.
其中,客户端OTN设备,也可称为CPE OTN设备,是指主要部署在城域网\本地网综合业务接入节点以下的OTN设备,与各种集团专线客户设备直接相连,主要放置在客户机房或边缘的局端接入局所。该设备主要提供100Mbit/s及以上较大带宽业务的接入和承载,特殊要求下兼顾100Mbit/s以下(如:E1等)小颗粒业务的接入。CPE OTN设备可通过线路侧标准格式的OTN接口与局端综合业务接入节点的OTN设备(即DCN内网中的OTN设备)相连,应采用白光OTUk接口的域间接口(IrDI,Inter-Domain Interface)用于不同厂商传送设备对接,能够实现对接入业务的汇聚、整合和疏导。Among them, client OTN equipment, which can also be called CPE OTN equipment, refers to OTN equipment mainly deployed below the metropolitan area network\local network integrated service access node, which is directly connected to various group private line customer equipment, and is mainly placed in the customer The central office at the computer room or edge is connected to the office. The equipment mainly provides access and bearer for larger bandwidth services of 100Mbit/s and above, and also takes into account the access of small particle services below 100Mbit/s (such as E1, etc.) under special requirements. The CPE OTN equipment can be connected to the OTN equipment of the central office’s integrated service access node (that is, the OTN equipment in the DCN intranet) through the OTN interface in the standard format on the line side. The inter-domain interface (IrDI, Inter-Domain Interface) is used for the docking of transmission equipment of different manufacturers, which can realize the convergence, integration and smoothing of access services.
本实施例的地址获取方法可基于DHCP实现。所述管控系统集成有DHCP服务器功能,具有IP地址规划能力,能够基于一定的策略为客户端OTN设备分配IP地址。The address acquisition method in this embodiment can be implemented based on DHCP. The management and control system integrates a DHCP server function, has an IP address planning capability, and can allocate an IP address to a client OTN device based on a certain strategy.
本实施例中,位于内部DCN中的OTN设备中的部分设备可作为局端设备,局端设备具有DHCP中继(DHCP Relay)功能;DHCP中继功能可在设备的主控板中实现。客户端OTN设备作为DHCP客户端(DHCP Client),在出厂时即配置了一个默认的IP地址。客户端OTN设备与局端设备能够互通信令。In this embodiment, some of the OTN devices located in the internal DCN can be used as central office equipment, and the central office equipment has a DHCP relay (DHCP Relay) function; the DHCP relay function can be implemented in the main control board of the device. The client OTN device, as a DHCP Client, is configured with a default IP address when it leaves the factory. Client OTN equipment and central office equipment can communicate with each other.
本实施例中,在网络规划阶段,客户端OTN设备所连接的最近的、能够与管控系统互通报文的、位于内部DCN的OTN设备可作为局端设备(也可称为DHCP中继),客户端OTN设备与局端设备之间可以通过光纤直接连接,客户端OTN设备与局端设备之间也可具有其他设备。In this embodiment, in the network planning stage, the closest OTN device connected to the client OTN device that can communicate with the management and control system and located in the internal DCN can be used as a central office device (also called a DHCP relay). The client OTN equipment and the central office equipment can be directly connected via optical fiber, and there can also be other equipment between the client OTN equipment and the central office equipment.
基于图1所示的系统架构示例,提出本申请以下各实施例。Based on the system architecture example shown in FIG. 1, the following embodiments of the present application are proposed.
本申请实施例提供了一种地址获取方法。图2为本申请实施例的地址获取方法的流程示意图一;如图2所示,所述方法包括:The embodiment of the present application provides a method for obtaining an address. Fig. 2 is a schematic diagram 1 of the flow of an address obtaining method according to an embodiment of this application; as shown in Fig. 2, the method includes:
步骤101:第一客户端OTN设备通过第一OTN局端设备向管控系统发送请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;Step 101: The first client OTN device sends a request message to the management and control system through the first OTN central office device; the request message arriving at the management and control system includes the first address information of the first client OTN device and the address information. The second address information of the first OTN central office device;
步骤102:所述第一客户端OTN设备通过所述第一OTN局端设备获得所述管控系统发送的响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。Step 102: The first client OTN device obtains a response message sent by the management and control system through the first OTN central office device, and the response message includes the third address information of the management and control system and the Fourth address information allocated by the management and control system to the first client OTN device.
本实施例中,所述第一客户端OTN设备可以是图1中的任一客户端OTN设备。其中,本实施例的技术方案适用于所述第一客户端OTN设备接入OTN局端设备之前、通过OTN局端设备的转发获得管控系统的地址信 息。In this embodiment, the first client OTN device may be any client OTN device in FIG. 1. The technical solution of this embodiment is suitable for obtaining the address information of the management and control system through the forwarding of the OTN central office equipment before the first client OTN equipment accesses the OTN central office equipment.
本实施例中,所述第一OTN局端设备可以是内网DCN中与所述第一客户端OTN设备最近的局端设备。In this embodiment, the first OTN central office device may be the central office device closest to the first client OTN device in the internal network DCN.
在本申请的一种可选实施例中,所述第一客户端OTN设备通过第一OTN局端设备向管控系统发送请求报文,包括:所述第一客户端OTN设备通过广播的方式发送第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;所述第一请求报文被所述第一OTN局端设备接收到,在所述第一请求报文中添加所述第二地址信息生成并向所述管控系统发送第二请求报文。In an optional embodiment of the present application, the first client OTN device sends a request message to the management and control system through the first OTN central office device, including: the first client OTN device sends the request message by broadcast The first request message; the first request message includes the first address information of the first client OTN device; the first request message is received by the first OTN central office device, and the The first request message is added with the second address information to generate and send a second request message to the management and control system.
本实施例中,第一客户端OTN设备通过广播的方式发送第一请求报文;接收到所述第一请求报文的OTN局端设备可作为第一OTN局端设备。其中,第一客户端OTN设备在所述第一请求报文中添加所述第一客户端OTN设备自身的第一地址信息,所述第一地址信息可以是在所述第一客户端OTN设备出厂时配置的默认的IP地址。In this embodiment, the first client OTN device sends the first request message in a broadcast manner; the OTN central office device that receives the first request message may serve as the first OTN central office device. Wherein, the first client OTN device adds the first address information of the first client OTN device to the first request message, and the first address information may be in the first client OTN device The default IP address configured at the factory.
第一OTN局端设备接收到第一请求报文后,在所述第一请求报文中添加所述第一OTN局端设备的第二地址信息,生成第二请求报文,通过单播的方式发送所述第二请求报文至管控系统。设置OTN局端设备的好处在于,如果不设置OTN局端设备,则报文在DCN中仍需要广播的方式发送,这样会大大增加网络的压力;而设置了OTN局端设备,可通过单播(即点对点传输)的方式传输报文,可大大减轻网络压力。After the first OTN central office device receives the first request message, it adds the second address information of the first OTN central office device to the first request message to generate a second request message, which is transmitted through unicast Sending the second request message to the management and control system. The advantage of setting the OTN central office equipment is that if the OTN central office equipment is not set, the message still needs to be broadcast in the DCN, which will greatly increase the pressure on the network; and the OTN central office equipment can be unicast (Ie point-to-point transmission) way to transmit messages, can greatly reduce the network pressure.
本实施例中,管控系统获得第一客户端OTN设备的请求报文后,向所述第一客户端OTN设备发送响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。In this embodiment, after obtaining the request message of the first client OTN device, the management and control system sends a response message to the first client OTN device, and the response message includes the third address information of the management and control system And fourth address information allocated by the management and control system to the first client OTN device.
本实施例中,客户端OTN设备(例如第一客户端OTN设备)与DCN 内网中的OTN设备(可包括OTN局端设备)可以是相同厂家出厂的OTN设备,也可以是不同厂家出厂的OTN设备。In this embodiment, the client OTN device (for example, the first client OTN device) and the OTN device (which may include OTN central office equipment) in the DCN intranet can be OTN devices manufactured by the same manufacturer, or they can be manufactured by different manufacturers. OTN equipment.
可选地,本实施例中所述的地址信息(包括第一地址信息、第二地址信息、第三地址信息和第四地址信息)均可以是IP地址。Optionally, the address information (including the first address information, the second address information, the third address information, and the fourth address information) described in this embodiment may all be IP addresses.
基于此,本实施例通过第一OTN局端设备对报文实现转发,无需客户端OTN设备手动配置管控系统的IP地址等参数,实现了客户端OTN设备自动获取管控系统的IP地址,从而实现了客户端OTN设备与管控系统的自动对接,从另一方面也大大提升了用户体验。Based on this, this embodiment uses the first OTN central office device to forward the message, without the client OTN device manually configuring the IP address of the management and control system and other parameters, and realizes that the client OTN device automatically obtains the IP address of the management and control system. The automatic connection between the client OTN equipment and the management and control system has also greatly improved the user experience on the other hand.
在本申请的一种可选实施例中,所述方法还包括:所述第一客户端OTN设备接入所述第一OTN局端设备,生成地址路由表;所述地址路由表用于指示报文由所述第一客户端OTN设备传输至所述管控系统的传输路径。In an optional embodiment of the present application, the method further includes: the first client OTN device accesses the first OTN central office device to generate an address routing table; the address routing table is used to indicate The message is transmitted from the first client OTN device to the transmission path of the management and control system.
本实施例中,第一客户端OTN设备获得所述管控系统的响应报文后,基于获得的第三地址信息和第四地址信息接入管控系统,从而实现了第一客户端OTN设备接入所述第一OTN局端设备,并生成地址路由表。In this embodiment, after the first client OTN device obtains the response message of the management and control system, it accesses the management and control system based on the obtained third address information and fourth address information, thereby realizing the access of the first client OTN device The first OTN central office device generates an address routing table.
基于前述实施例,本申请实施例还提供了一种地址获取方法。图3为本申请实施例的地址获取方法的流程示意图二;如图3所示,所述方法包括:Based on the foregoing embodiment, the embodiment of the present application also provides an address obtaining method. Fig. 3 is a second flowchart of the method for obtaining an address according to an embodiment of this application; as shown in Fig. 3, the method includes:
步骤201:管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文;所述请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;Step 201: The management and control system obtains the request message sent by the first client OTN device through the first OTN central office device; the request message includes the first address information of the first client OTN device and the first The second address information of the OTN central office equipment;
步骤202:所述管控系统通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。Step 202: The management and control system sends a response message to the first client OTN device through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control The fourth address information allocated by the system to the first client OTN device.
在本申请的一种可选实施例中,所述管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文,包括:所述管控系统通过单播 的方式获得所述第一OTN局端设备发送的第二请求报文;所述第二请求报文为所述第一OTN局端设备获得所述第一客户端OTN设备发送的第一请求报文后、在所述第一请求报文中添加所述第二地址信息而生成;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息。In an optional embodiment of the present application, the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, including: the management and control system obtains the request message by unicast The second request message sent by the first OTN central office device; the second request message is that after the first OTN central office device obtains the first request message sent by the first client OTN device, The first request message is generated by adding the second address information; the first request message includes the first address information of the first client OTN device.
本实施例中,第一客户端OTN设备通过广播的方式发送第一请求报文;接收到所述第一请求报文的OTN局端设备可作为第一OTN局端设备。其中,第一客户端OTN设备在所述第一请求报文中添加所述第一客户端OTN设备自身的第一地址信息,所述第一地址信息可以是在所述第一客户端OTN设备出厂时配置的默认的IP地址。第一OTN局端设备接收到第一请求报文后,在所述第一请求报文中添加所述第一OTN局端设备的第二地址信息,生成第二请求报文,通过单播的方式发送所述第二请求报文至管控系统。In this embodiment, the first client OTN device sends the first request message in a broadcast manner; the OTN central office device that receives the first request message may serve as the first OTN central office device. Wherein, the first client OTN device adds the first address information of the first client OTN device to the first request message, and the first address information may be in the first client OTN device The default IP address configured at the factory. After the first OTN central office device receives the first request message, it adds the second address information of the first OTN central office device to the first request message to generate a second request message, which is transmitted through unicast Sending the second request message to the management and control system.
在本申请的一种可选实施例中,所述管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文之前,所述方法还包括:所述管控系统获得子网配置信息,所述子网配置信息中包括多组子网信息、对应的OTN局端设备以及多个地址信息;所述子网信息以及所述OTN局端设备一一对应;所述多个地址信息为与子网信息对应的、能够分配给客户端OTN设备的地址信息。In an optional embodiment of the present application, before the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, the method further includes: the management and control system obtains the subnet Configuration information, the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple address information; the subnet information and the OTN central office equipment have a one-to-one correspondence; the multiple addresses The information is address information that corresponds to the subnet information and can be allocated to the client OTN device.
本实施例中,在网络部署阶段,首先规划OTN局端设备,例如可根据客户端OTN设备的位置(或者预估位置),部署OTN局端设备。其中,OTN局端设备可部署在设置有客户端OTN设备的靠近区域。本实施例为每个OTN局端设备配置不同的子网,不同的OTN局端设备对应不同的子网。例如图1中所示的两个OTN局端设备可分别对应不同的子网。In this embodiment, in the network deployment stage, the OTN central office equipment is first planned. For example, the OTN central office equipment can be deployed according to the location (or estimated location) of the client OTN equipment. Among them, the OTN central office equipment can be deployed in a close area where the client OTN equipment is installed. In this embodiment, different subnets are configured for each OTN central office device, and different OTN central office devices correspond to different subnets. For example, the two OTN central office devices shown in Figure 1 can correspond to different subnets respectively.
本实施例中,管控系统中存储有子网配置信息,所述子网配置信息中包括多组子网信息、对应的OTN局端设备以及多个地址信息。可以理解, 管控系统中存储有对应于不同的子网的多个地址信息,管控系统需要根据客户端OTN设备所在的子网(即对应的OTN局端设备),为该客户端OTN设备分配对应于该子网(即对应的OTN局端设备)的地址信息。In this embodiment, subnet configuration information is stored in the management and control system, and the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple address information. It can be understood that multiple address information corresponding to different subnets are stored in the management and control system, and the management and control system needs to assign the corresponding OTN device to the client OTN device according to the subnet where the client OTN device is located (that is, the corresponding OTN central office device) The address information of the subnet (that is, the corresponding OTN central office equipment).
作为一种实施方式,所述管控系统通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文之前,所述方法还包括:所述管控系统基于所述请求报文中的所述第二地址信息查询所述子网配置信息,确定所述第一客户端OTN设备对应的子网信息,从所述子网信息对应的多个地址信息中选择一个地址信息作为第四地址信息。As an implementation manner, before the management and control system sends a response message to the first client OTN device through the first OTN central office device, the method further includes: the management and control system is based on the request message Query the subnet configuration information in the second address information, determine the subnet information corresponding to the first client OTN device, and select one address information from the multiple address information corresponding to the subnet information as the first Four address information.
基于前述实施例,本申请实施例还提供了一种地址获取方法。图4为本申请实施例的地址获取方法的流程示意图三;如图4所示,所述方法包括:Based on the foregoing embodiment, the embodiment of the present application also provides an address obtaining method. Fig. 4 is a schematic diagram of the third process of the method for obtaining an address according to an embodiment of this application; as shown in Fig. 4, the method includes:
步骤301:第一OTN局端设备转发第一客户端OTN设备发送至管控系统的请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;Step 301: The first OTN central office device forwards the request message sent by the first client OTN device to the management and control system; the request message arriving at the management and control system includes the first address information of the first client OTN device and The second address information of the first OTN central office device;
步骤302:所述第一OTN局端设备转发所述管控系统发送至所述第一客户端OTN设备的响应报文;所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。Step 302: The first OTN central office device forwards the response message sent by the management and control system to the first client OTN device; the response message includes the third address information of the management and control system and the Fourth address information allocated by the management and control system to the first client OTN device.
在本申请的一种可选实施例中,所述第一OTN局端设备转发第一客户端OTN设备发送至管控系统的请求报文,包括:所述第一OTN局端设备获得所述第一客户端OTN设备通过广播的方式发送的第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;所述第一OTN局端设备在所述第一请求报文中添加所述第二地址信息生成第二请求报文,通过单播的方式向所述管控系统发送所述第二请求报文。In an optional embodiment of the present application, the forwarding of the request message sent by the first client OTN device to the management and control system by the first OTN central office device includes: the first OTN central office device obtains the first OTN central office device A first request message sent by a client OTN device by broadcasting; the first request message includes the first address information of the first client OTN device; the first OTN central office device is Adding the second address information to the first request message generates a second request message, and sends the second request message to the management and control system in a unicast manner.
本实施例中,第一客户端OTN设备通过广播的方式发送第一请求报文;接收到所述第一请求报文的OTN局端设备可作为第一OTN局端设备。其 中,第一客户端OTN设备在所述第一请求报文中添加所述第一客户端OTN设备自身的第一地址信息,所述第一地址信息可以是在所述第一客户端OTN设备出厂时配置的默认的IP地址。第一OTN局端设备接收到第一请求报文后,在所述第一请求报文中添加所述第一OTN局端设备的第二地址信息,生成第二请求报文,通过单播的方式发送所述第二请求报文至管控系统。In this embodiment, the first client OTN device sends the first request message in a broadcast manner; the OTN central office device that receives the first request message may serve as the first OTN central office device. Wherein, the first client OTN device adds the first address information of the first client OTN device to the first request message, and the first address information may be in the first client OTN device The default IP address configured at the factory. After the first OTN central office device receives the first request message, it adds the second address information of the first OTN central office device to the first request message to generate a second request message, which is transmitted through unicast Sending the second request message to the management and control system.
本实施例中,在网络部署阶段,首先规划OTN局端设备,例如可根据客户端OTN设备的位置(或者预估位置),部署OTN局端设备。其中,OTN局端设备可部署在设置有客户端OTN设备的靠近区域。本实施例为每个OTN局端设备配置不同的子网,不同的OTN局端设备对应不同的子网。例如图1中所示的两个OTN局端设备可分别对应不同的子网。In this embodiment, in the network deployment stage, the OTN central office equipment is first planned. For example, the OTN central office equipment can be deployed according to the location (or estimated location) of the client OTN equipment. Among them, the OTN central office equipment can be deployed in a close area where the client OTN equipment is installed. In this embodiment, different subnets are configured for each OTN central office device, and different OTN central office devices correspond to different subnets. For example, the two OTN central office devices shown in Figure 1 can correspond to different subnets respectively.
其次,为每个OTN局端设备配置路由配置信息(也可称为DCN路由表),所述路由配置信息包括子网转发策略,即报文在OTN局端设备至管控系统之间的转发策略预先配置。由于OTN局端设备是在网络部署阶段预先部署好的,因此通过配置路由配置信息确定报文的转发策略,不需要在每个客户端OTN设备配置转发策略,因此会大大减少路由表数目,加快路由查表以及报文转发速度(如果不设置OTN局端设备或子网,则针对每个客户端OTN设备均需要配置完整的报文转发策略);另外,即使后续增加了客户端OTN设备,也不需要更新OTN局端设备内的路由配置信息,相比于在客户端OTN设备内配置完整的报文转发策略的情况,这种情况在每次新增客户端OTN设备时均需要更新路径上的报文转发策略,本申请实施例的技术方案在一定程度上也大大减少了人力资源消耗。Secondly, configure routing configuration information (also called DCN routing table) for each OTN central office device. The routing configuration information includes a subnet forwarding strategy, that is, a packet forwarding policy between the OTN central office device and the management and control system. Pre-configured. Since the OTN central office equipment is pre-deployed in the network deployment phase, the forwarding strategy of the message is determined by configuring the routing configuration information. There is no need to configure the forwarding strategy on each client OTN equipment, which will greatly reduce the number of routing tables and speed up Route lookup table and packet forwarding speed (if no OTN central office device or subnet is set, a complete packet forwarding strategy needs to be configured for each client OTN device); in addition, even if client OTN devices are subsequently added, There is also no need to update the routing configuration information in the OTN central office device. Compared with the configuration of a complete packet forwarding strategy in the client OTN device, this situation requires updating the path every time a client OTN device is added. The above message forwarding strategy, the technical solution of the embodiment of the present application also greatly reduces the consumption of human resources to a certain extent.
基于此,作为一种实施方式,所述方法还包括:所述第一OTN局端设备获得路由配置信息;所述路由配置信息用于指示报文由所述管控系统传输至客户端OTN设备的传输路径;所述第一OTN局端设备转发第一客户 端OTN设备发送至管控系统的请求报文,包括:第一OTN局端设备基于所述路由配置信息转发第一客户端OTN设备发送至管控系统的请求报文。Based on this, as an implementation manner, the method further includes: the first OTN central office device obtains routing configuration information; the routing configuration information is used to indicate that the message is transmitted from the management and control system to the client OTN device Transmission path; the first OTN central office device forwards the request message sent by the first client OTN device to the management and control system, including: the first OTN central office device forwards the first client OTN device to send based on the routing configuration information The request message of the control system.
本实施例中,所述请求报文和所述响应报文为DHCP报文;所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。In this embodiment, the request message and the response message are DHCP messages; the DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used for The first address information and the fourth address information are added, the second specific field is used to add the second address information, and the third specific field is used to add the third address information.
表1为本申请实施例的报文格式示意;具体为DHCP的报文格式示意图。Table 1 is a schematic diagram of a message format according to an embodiment of the application; specifically, a schematic diagram of a DHCP message format.
表1Table 1
Figure PCTCN2020114552-appb-000001
Figure PCTCN2020114552-appb-000001
如表1所示,报文中的各字段的定义为:As shown in Table 1, the definition of each field in the message is:
1、op,报文类型,1表示请求报文,2表示响应报文;1. op, message type, 1 means request message, 2 means response message;
2、htype,硬件地址类型,1表示10Mb/s的以太网的硬件地址;2. htype, hardware address type, 1 represents the hardware address of 10Mb/s Ethernet;
3、hlen,硬件地址长度,以太网中该字段的值为6;3. hlen, hardware address length, the value of this field in Ethernet is 6;
4、hops,跳数;客户端设置为0,也可以被一个代理服务器设置;4. Hops, the number of hops; the client is set to 0, or it can be set by a proxy server;
5、xid,事务ID,由客户端选择的一个随机数,被服务器和客户端用来在它们之间交流请求和响应,客户端用该字段对请求和应答进行匹配。该ID由客户端设置并由服务器返回,为32位整数;5. xid, transaction ID, a random number selected by the client, used by the server and client to communicate requests and responses between them, and the client uses this field to match requests and responses. The ID is set by the client and returned by the server as a 32-bit integer;
6、secs,由客户端填充,表示从客户端开始获得IP地址或IP地址续借后所使用了的秒数;6. secs, filled by the client, indicates the number of seconds since the client started to obtain the IP address or the IP address was renewed;
7、flags,标志字段;为16比特,目前只有最左边的一个比特位有定义,该比特位置为0,表示单播,置为1表示广播;7. Flags, flag field; 16 bits, currently only the leftmost bit is defined. The bit position is 0, which means unicast, and set to 1 means broadcast;
8、ciaddr,客户端的IP地址。只有客户端是Bound、Renew、Rebinding状态,并且能响应ARP请求时,才能被填充;8. ciaddr, the IP address of the client. Only when the client is in Bound, Renew, and Rebinding status, and can respond to ARP requests, can it be filled;
9、yiaddr,设备自身的IP地址或客户端的IP地址;9. yiaddr, the IP address of the device itself or the IP address of the client;
10、siaddr,表明DHCP协议流程的下一个阶段要使用的服务器的IP地址;10. siaddr, indicating the IP address of the server to be used in the next stage of the DHCP protocol process;
11、giaddr,DHCP中继的IP地址;11. giaddr, the IP address of the DHCP relay;
12、chaddr,客户端硬件地址;12. Chaddr, client hardware address;
13、sname,可选的服务器主机名,该字段是空结尾的字符串,由服务器填写;13. sname, optional server host name, this field is a null-terminated string to be filled in by the server;
14、file,启动文件名,是一个空结尾的字符串。DHCP Discover报文中是"generic"名字或空字符,DHCP Offer报文中提供有效的目录路径全名;14. file, the name of the startup file, is a null-terminated string. The DHCP Discover message contains a "generic" name or empty characters, and the DHCP Offer message provides a valid full name of the directory path;
15、options,可选参数域,格式为“代码+长度+数据”。15. options, optional parameter field, the format is "code+length+data".
本实施例中,所述请求报文和所述响应报文均为DHCP报文,通过DHCP报文中的某些特定字段填写上述第一地址信息、第二地址信息、第三地址信息和第四地址信息。In this embodiment, the request message and the response message are both DHCP messages, and the first address information, the second address information, the third address information, and the first address information are filled in through certain specific fields in the DHCP message. Four address information.
作为一种施例,上述第一地址信息、第二地址信息、第三地址信息和第四地址信息的填写位置可参照表2所示,例如通过yiaddr字段在请求报文阶段填写所述第一地址信息(第一客户端OTN设备出厂时分配的默认IP地址),通过yiaddr字段在响应报文阶段填写所述第四地址信息(即管控系统为第一客户端OTN设备分配的IP地址);通过giaddr字段填写所述第二地址信息(即OTN局端设备的IP地址);通过sname字段填写所述第三地 址信息(即管控系统的IP地址)。As an example, the first address information, the second address information, the third address information, and the fourth address information can be filled in with reference to Table 2. For example, the first address information, the second address information, the third address information, and the fourth address information can be filled in in the request message stage through the yiaddr field. Address information (the default IP address assigned by the first client OTN device when it leaves the factory), and fill in the fourth address information (that is, the IP address assigned by the management and control system for the first client OTN device) in the response message stage through the yiaddr field; Fill in the second address information (that is, the IP address of the OTN central office device) through the giaddr field; and fill in the third address information (that is, the IP address of the management and control system) through the sname field.
表2Table 2
Figure PCTCN2020114552-appb-000002
Figure PCTCN2020114552-appb-000002
下面结合一具体示例对本申请实施例的地址获取方法进行详细说明。The address acquisition method in the embodiment of the present application will be described in detail below with reference to a specific example.
图5为本申请实施例的地址获取方法的流程示意图四;如图5所示,所述方法包括:FIG. 5 is a fourth flowchart of the method for obtaining an address according to an embodiment of this application; as shown in FIG. 5, the method includes:
步骤401:第一客户端OTN设备通过广播的方式发送第一请求报文,所述第一请求报文中yiaddr字段填写所述第一客户端OTN设备的默认IP地址;Step 401: The first client OTN device sends a first request message by broadcasting, and the yiaddr field in the first request message is filled with the default IP address of the first client OTN device;
步骤402:第一OTN局端设备接收到所述第一请求报文,在所述第一请求报文中的giaddr字段填写所述第一OTN局端设备的IP地址,生成第二请求报文,通过单播的方式发送所述第二请求报文至管控系统;Step 402: The first OTN central office device receives the first request message, and fills in the IP address of the first OTN central office device in the giaddr field in the first request message to generate a second request message , Sending the second request message to the management and control system in a unicast manner;
步骤403:管控系统接收到所述第二请求报文,基于所述第二请求报文中的giaddr字段确定第一OTN局端设备,获得与第一OTN局端设备对应的多个IP地址,选择一个IP地址填写至响应报文中的yiaddr字段,并将自身的IP地址填写至sname字段,发送响应报文至第一OTN局端设备;Step 403: The management and control system receives the second request message, determines the first OTN central office device based on the giaddr field in the second request message, and obtains multiple IP addresses corresponding to the first OTN central office device. Choose an IP address to fill in the yiaddr field in the response message, and fill in its own IP address in the sname field, and send the response message to the first OTN central office device;
步骤404:第一OTN局端设备将响应报文转发至第一客户端OTN设备;Step 404: The first OTN central office device forwards the response message to the first client OTN device;
步骤405:第一客户端OTN设备获得所述响应报文,从响应报文中获得管控系统的IP地址、为其分配的IP地址等等。Step 405: The first client OTN device obtains the response message, and obtains the IP address of the management and control system, the IP address assigned to it, and so on from the response message.
采用本申请实施例的技术方案,通过第一OTN局端设备对报文实现转发,无需客户端OTN设备手动配置管控系统的IP地址等参数,实现了客户端OTN设备自动获取管控系统的IP地址,从而实现了客户端OTN设备与管控系统的自动对接,从另一方面也大大提升了用户体验。By adopting the technical solution of the embodiment of the present application, the first OTN central office device forwards the message, without the client OTN device manually configuring the IP address and other parameters of the management and control system, and the client OTN device automatically obtains the IP address of the management and control system. , Thus realizing the automatic docking between the client OTN equipment and the management and control system, on the other hand, it also greatly improves the user experience.
本申请实施例还提供了一种客户端OTN设备,所述客户端OTN设备为第一客户端OTN设备。图6为本申请实施例的客户端OTN设备的一种组成结构示意图;如图6所示,所述设备包括:第一发送单元51和第一接收单元52;其中,The embodiment of the present application also provides a client OTN device, and the client OTN device is a first client OTN device. FIG. 6 is a schematic diagram of a composition structure of a client OTN device according to an embodiment of the application; as shown in FIG. 6, the device includes: a first sending unit 51 and a first receiving unit 52; wherein,
所述第一发送单元51,配置为通过第一OTN局端设备向管控系统发送请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;The first sending unit 51 is configured to send a request message to the management and control system through a first OTN central office device; the request message arriving at the management and control system includes the first address information of the first client OTN device and The second address information of the first OTN central office device;
所述第一接收单元52,配置为通过所述第一OTN局端设备获得所述管控系统发送的响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。The first receiving unit 52 is configured to obtain a response message sent by the management and control system through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control system. The fourth address information allocated by the system to the first client OTN device.
在本申请实施例的一种可选实施例中,所述第一发送单元51,配置为通过广播的方式发送第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;所述第一请求报文被所述第一OTN局端设备接收到,在所述第一请求报文中添加所述第二地址信息生成并向所述管控系统发送第二请求报文。In an optional embodiment of the embodiment of the present application, the first sending unit 51 is configured to send a first request message by broadcasting; the first request message includes the first client The first address information of the OTN device; the first request message is received by the first OTN central office device, and the second address information is added to the first request message to generate and send it to the management and control system Send the second request message.
在本申请实施例的一种可选实施例中,如图7所示,所述设备还包括生成单元53,配置为接入所述第一OTN局端设备,生成地址路由表;所述地址路由表用于指示报文由所述第一客户端OTN设备传输至所述管控系统的传输路径。In an optional embodiment of the embodiment of the present application, as shown in FIG. 7, the device further includes a generating unit 53 configured to access the first OTN central office device to generate an address routing table; the address The routing table is used to indicate the transmission path of the message from the first client OTN device to the management and control system.
本申请实施例中,所述请求报文和所述响应报文为DHCP报文;In the embodiment of the present application, the request message and the response message are DHCP messages;
所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段; 所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
本申请实施例中,所述客户端OTN设备中的生成单元53,在实际应用中可由所述设备中的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit)或可编程门阵列(FPGA,Field-Programmable Gate Array)实现;所述客户端OTN设备中的第一发送单元51和第一接收单元52,在实际应用中可通过通信模组(包含:基础通信套件、操作系统、通信模块、标准化接口和协议等)及收发天线实现。In the embodiment of the present application, the generating unit 53 in the client OTN device can be implemented by the central processing unit (CPU, Central Processing Unit) and the digital signal processor (DSP, Digital Signal Processor) in the device in practical applications. , Microcontroller Unit (MCU, Microcontroller Unit) or Programmable Gate Array (FPGA, Field-Programmable Gate Array) implementation; the first sending unit 51 and the first receiving unit 52 in the client OTN device are used in practical applications It can be realized by communication module (including: basic communication kit, operating system, communication module, standardized interface and protocol, etc.) and transceiver antenna.
需要说明的是:上述实施例提供的客户端OTN设备在进行地址获取处理时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将设备的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的客户端OTN设备与地址获取方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the client OTN device provided in the above embodiment performs address acquisition processing, only the division of the above program modules is used for illustration. In actual applications, the above processing can be allocated to different program modules according to needs. Complete, that is, divide the internal structure of the device into different program modules to complete all or part of the processing described above. In addition, the client OTN device provided in the foregoing embodiment and the address acquisition method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
本申请实施例还提供了一种管控系统。图8为本申请实施例的管控系统的组成结构示意图一;如图8所示,所述管控系统包括:第二接收单元61和第二发送单元62;其中,The embodiment of the present application also provides a management and control system. FIG. 8 is a schematic diagram 1 of the composition structure of the management and control system according to an embodiment of the application; as shown in FIG. 8, the management and control system includes: a second receiving unit 61 and a second sending unit 62; wherein,
所述第二接收单元61,配置为通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文;所述请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;The second receiving unit 61 is configured to obtain the request message sent by the first client OTN device through the first OTN central office device; the request message includes the first address information of the first client OTN device And the second address information of the first OTN central office device;
所述第二发送单元62,配置为通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信 息。The second sending unit 62 is configured to send a response message to the first client OTN device through the first OTN central office device, and the response message includes the third address information of the management and control system and The fourth address information allocated by the management and control system to the first client OTN device.
在本申请实施例的一种可选实施例中,所述第二接收单元61,配置为通过单播的方式获得所述第一OTN局端设备发送的第二请求报文;所述第二请求报文为所述第一OTN局端设备获得所述第一客户端OTN设备发送的第一请求报文后、在所述第一请求报文中添加所述第二地址信息而生成;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息。In an optional embodiment of the embodiment of the present application, the second receiving unit 61 is configured to obtain the second request packet sent by the first OTN central office device in a unicast manner; the second The request message is generated by adding the second address information to the first request message after the first OTN central office device obtains the first request message sent by the first client OTN device; The first request message includes the first address information of the first client OTN device.
在本申请实施例的一种可选实施例中,如图9所示,所述管控系统还包括获取单元63,配置为获得子网配置信息,所述子网配置信息中包括多组子网信息、对应的OTN局端设备以及多个地址信息;所述子网信息以及所述OTN局端设备一一对应;所述多个地址信息为与子网信息对应的、能够分配给客户端OTN设备的地址信息。In an optional embodiment of the embodiment of the present application, as shown in FIG. 9, the management and control system further includes an obtaining unit 63 configured to obtain subnet configuration information, and the subnet configuration information includes multiple groups of subnets. Information, the corresponding OTN central office equipment, and multiple address information; the subnet information and the OTN central office equipment correspond one-to-one; the multiple address information corresponds to the subnet information and can be allocated to the client OTN Address information of the device.
在本申请实施例的一种可选实施例中,如图10所示,所述管控系统还包括确定单元64,配置为所述第二发送单元62通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文之前,基于所述请求报文中的所述第二地址信息查询所述子网配置信息,确定所述第一客户端OTN设备对应的子网信息,从所述子网信息对应的多个地址信息中选择一个地址信息作为第四地址信息。In an optional embodiment of the embodiment of the present application, as shown in FIG. 10, the management and control system further includes a determining unit 64, configured to send the second sending unit 62 to the station through the first OTN central office device. Before the first client OTN device sends a response message, query the subnet configuration information based on the second address information in the request message to determine the subnet information corresponding to the first client OTN device, One piece of address information is selected as the fourth address information from a plurality of address information corresponding to the subnet information.
本申请实施例中,所述请求报文和所述响应报文为DHCP报文;In the embodiment of the present application, the request message and the response message are DHCP messages;
所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
本申请实施例中,所述管控系统中的获取单元63和确定单元64,在实际应用中可由所述管控系统中的CPU、DSP、MCU或FPGA实现;所述管控系统中的第二发送单元62和第二接收单元61,在实际应用中可通过通信 模组(包含:基础通信套件、操作系统、通信模块、标准化接口和协议等)及收发天线实现。In the embodiment of the present application, the acquiring unit 63 and the determining unit 64 in the management and control system can be implemented by the CPU, DSP, MCU or FPGA in the management and control system in practical applications; the second sending unit in the management and control system 62 and the second receiving unit 61 can be implemented by a communication module (including a basic communication kit, an operating system, a communication module, a standardized interface and a protocol, etc.) and a transceiver antenna in practical applications.
需要说明的是:上述实施例提供的管控系统在进行地址获取处理时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将管控系统的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的管控系统与地址获取方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the management and control system provided in the above embodiment performs address acquisition processing, only the division of the above-mentioned program modules is used as an example for illustration. In actual applications, the above-mentioned processing can be allocated by different program modules as needed. That is, the internal structure of the management and control system is divided into different program modules to complete all or part of the processing described above. In addition, the management and control system provided in the foregoing embodiment and the address acquisition method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
本申请实施例还提供了一种OTN局端设备,所述OTN局端设备为第一OTN局端设备;图11为本申请实施例的OTN局端设备的组成结构示意图一;如图11所示,所述设备包括:第一通讯单元71和第二通讯单元72;其中,The embodiment of the application also provides an OTN central office equipment, the OTN central office equipment is the first OTN central office equipment; FIG. 11 is a schematic diagram 1 of the composition structure of the OTN central office equipment according to an embodiment of the application; as shown in FIG. 11 As shown, the device includes: a first communication unit 71 and a second communication unit 72; wherein,
所述第一通讯单元71,配置为获得第一客户端OTN设备发送的请求报文;还配置为将管控系统发送的响应报文转发至所述第一客户端OTN设备;The first communication unit 71 is configured to obtain a request message sent by the first client OTN device; and is also configured to forward a response message sent by the management and control system to the first client OTN device;
所述第二通讯单元72,配置为转发所述请求报文至管控系统;还配置为获得管控系统发送的响应报文;The second communication unit 72 is configured to forward the request message to the management and control system; and is also configured to obtain a response message sent by the management and control system;
其中,到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。Wherein, the request message arriving at the management and control system includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the response message includes the The third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
在本申请的一种可选实施例中,如图12所示,所述设备还包括处理单元73;In an optional embodiment of the present application, as shown in FIG. 12, the device further includes a processing unit 73;
所述第一通讯单元71,配置为获得所述第一客户端OTN设备通过广播的方式发送的第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;The first communication unit 71 is configured to obtain a first request message sent by the first client OTN device by broadcasting; the first request message includes the first request message of the first client OTN device One address information;
所述处理单元73,配置为在所述第一请求报文中添加所述第二地址信息生成第二请求报文;The processing unit 73 is configured to add the second address information to the first request message to generate a second request message;
所述第二通讯单元72,配置为通过单播的方式向所述管控系统发送所述第二请求报文。The second communication unit 72 is configured to send the second request message to the management and control system in a unicast manner.
在本申请的一种可选实施例中,如图13所示,所述设备还包括获取单元74,配置为获得路由配置信息;所述路由配置信息用于指示报文由所述管控系统传输至客户端OTN设备的传输路径;In an optional embodiment of the present application, as shown in FIG. 13, the device further includes an obtaining unit 74 configured to obtain routing configuration information; the routing configuration information is used to indicate that the packet is transmitted by the management and control system Transmission path to client OTN equipment;
所述第二通讯单元72,配置为基于所述获取单元74获得的所述路由配置信息转发第一客户端OTN设备发送至管控系统的请求报文。The second communication unit 72 is configured to forward a request message sent by the first client OTN device to the management and control system based on the routing configuration information obtained by the obtaining unit 74.
本申请实施例中,所述请求报文和所述响应报文为DHCP报文;In the embodiment of the present application, the request message and the response message are DHCP messages;
所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
本申请实施例中,所述OTN局端设备中的处理单元73和获取单元74,在实际应用中可由设备中的CPU、DSP、MCU或FPGA实现;所述OTN局端设备中的第一通讯单元71和第二通讯单元72,在实际应用中可通过通信模组(包含:基础通信套件、操作系统、通信模块、标准化接口和协议等)及收发天线实现。In the embodiment of the present application, the processing unit 73 and the acquiring unit 74 in the OTN central office equipment can be implemented by the CPU, DSP, MCU or FPGA in the equipment in practical applications; the first communication in the OTN central office equipment The unit 71 and the second communication unit 72 can be implemented by a communication module (including: a basic communication kit, an operating system, a communication module, a standardized interface and a protocol, etc.) and a transceiver antenna in practical applications.
需要说明的是:上述实施例提供的OTN局端设备在进行地址获取处理时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将设备的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的OTN局端设备与地址获取方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the OTN central office device provided in the above embodiment performs address acquisition processing, only the division of the above program modules is used as an example for illustration. In actual applications, the above processing can be allocated to different program modules according to needs. Complete, that is, divide the internal structure of the device into different program modules to complete all or part of the processing described above. In addition, the OTN central office equipment provided in the foregoing embodiment belongs to the same concept as the address acquisition method embodiment, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
本申请实施例还提供了一种通讯设备,所述通讯设备具体可以是客户端OTN设备、管控系统或OTN局端设备。图14为本申请实施例的通讯设备的硬件组成结构示意图,如图14所示,所述通讯设备80包括存储器82、处理器81及存储在存储器82上并可在处理器81上运行的计算机程序,所述处理器81执行所述程序时实现本申请实施例中应用于客户端OTN设备、管控系统或OTN局端设备的所述地址获取方法的步骤。The embodiment of the present application also provides a communication device. The communication device may specifically be a client OTN device, a management and control system, or an OTN central office device. FIG. 14 is a schematic diagram of the hardware composition structure of a communication device according to an embodiment of the application. As shown in FIG. 14, the communication device 80 includes a memory 82, a processor 81, and a computer stored on the memory 82 and running on the processor 81 A program, when the processor 81 executes the program, the steps of the address obtaining method applied to the client OTN device, the management and control system, or the OTN central office device in the embodiment of the present application are implemented.
可以理解,通讯设备80中还包括通讯接口83。通讯设备80中的各个组件可通过总线系统84耦合在一起。可理解,总线系统84用于实现这些组件之间的连接通信。总线系统84除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图14中将各种总线都标为总线系统84。It can be understood that the communication device 80 also includes a communication interface 83. The various components in the communication device 80 can be coupled together through the bus system 84. It can be understood that the bus system 84 is used to implement connection and communication between these components. In addition to the data bus, the bus system 84 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are marked as the bus system 84 in FIG. 14.
可以理解,存储器82可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动 态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器82旨在包括但不限于这些和任意其它适合类型的存储器。It is understood that the memory 82 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), and erasable programmable read-only memory (EPROM, Erasable Programmable Read- Only Memory, Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage. The volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), and dynamic random access memory. Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Type synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous connection dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access Memory) ). The memory 82 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
上述本申请实施例揭示的方法可以应用于处理器81中,或者由处理器81实现。处理器81可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器81中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器81可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器81可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器82,处理器81读取存储器82中的信息,结合其硬件完成前述方法的步骤。The method disclosed in the foregoing embodiments of the present application may be applied to the processor 81 or implemented by the processor 81. The processor 81 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 81 or instructions in the form of software. The aforementioned processor 81 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The processor 81 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor or the like. Combining the steps of the method disclosed in the embodiments of the present application, it may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 82. The processor 81 reads the information in the memory 82 and completes the steps of the foregoing method in combination with its hardware.
在示例性实施例中,通讯设备80可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、FPGA、通用处理器、控制器、MCU、微处理器(Microprocessor)、或其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the communication device 80 may be configured by one or more Application Specific Integrated Circuits (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, Programmable Logic Device), and Complex Programmable Logic Device (CPLD). , Complex Programmable Logic Device, FPGA, general-purpose processor, controller, MCU, microprocessor (Microprocessor), or other electronic components to implement the foregoing method.
在示例性实施例中,本申请实施例还提供了一种计算机可读存储介质, 例如包括计算机程序的存储器82,上述计算机程序可由通讯设备80的处理器81执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。In an exemplary embodiment, the embodiment of the present application also provides a computer-readable storage medium, such as a memory 82 including a computer program, which can be executed by the processor 81 of the communication device 80 to complete the steps described in the foregoing method. . The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本申请实施例中应用于客户端OTN设备、管控系统或OTN局端设备的所述地址获取方法的步骤。The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it realizes the application of the client OTN equipment, the management and control system, or the OTN central office equipment in the embodiments of the present application. The steps of the address obtaining method.
本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the several method embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments.
本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the several product embodiments provided in this application can be combined arbitrarily without conflict to obtain new product embodiments.
本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。The features disclosed in the several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain a new method embodiment or device embodiment. In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they 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, the functional units in the embodiments of the present application can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can 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、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by a program instructing relevant hardware. The foregoing program can be stored in a computer readable storage medium. When the program is executed, it is executed. Including the steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, ROM, RAM, magnetic disk, or optical disk.
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product in essence or a part that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in the various embodiments of the present application. The aforementioned storage media include: removable storage devices, ROM, RAM, magnetic disks, or optical disks and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (28)

  1. 一种地址获取方法,所述方法包括:An address obtaining method, the method includes:
    第一客户端光传送网OTN设备通过第一OTN局端设备向管控系统发送请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;The OTN device of the first client optical transport network sends a request message to the management and control system through the first OTN central office device; the request message arriving at the management and control system includes the first address information of the first client OTN device and the The second address information of the first OTN central office device;
    所述第一客户端OTN设备通过所述第一OTN局端设备获得所述管控系统发送的响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。The first client OTN device obtains the response message sent by the management and control system through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control system is The fourth address information allocated by the first client OTN device.
  2. 根据权利要求1所述的方法,其中,所述第一客户端OTN设备通过第一OTN局端设备向管控系统发送请求报文,包括:The method according to claim 1, wherein the first client OTN device sending a request message to the management and control system through the first OTN central office device comprises:
    所述第一客户端OTN设备通过广播的方式发送第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;所述第一请求报文被所述第一OTN局端设备接收到,在所述第一请求报文中添加所述第二地址信息生成并向所述管控系统发送第二请求报文。The first client OTN device sends a first request message by broadcasting; the first request message includes the first address information of the first client OTN device; the first request message is The first OTN central office device receives, adds the second address information to the first request message, generates and sends a second request message to the management and control system.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    所述第一客户端OTN设备接入所述第一OTN局端设备,生成地址路由表;所述地址路由表用于指示报文由所述第一客户端OTN设备传输至所述管控系统的传输路径。The first client OTN device accesses the first OTN central office device to generate an address routing table; the address routing table is used to indicate that packets are transmitted from the first client OTN device to the management and control system Transmission path.
  4. 根据权利要求1至3任一项所述的方法,其中,所述请求报文和所述响应报文为动态主机设置协议DHCP报文;The method according to any one of claims 1 to 3, wherein the request message and the response message are dynamic host setting protocol DHCP messages;
    所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  5. 一种地址获取方法,所述方法包括:An address obtaining method, the method includes:
    管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文;所述请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;The management and control system obtains the request message sent by the first client OTN device through the first OTN central office device; the request message includes the first address information of the first client OTN device and the first OTN central office device The second address information of the device;
    所述管控系统通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。The management and control system sends a response message to the first client OTN device through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control system is The fourth address information allocated by the first client OTN device.
  6. 根据权利要求5所述的方法,其中,所述管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文,包括:The method according to claim 5, wherein the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, comprising:
    所述管控系统通过单播的方式获得所述第一OTN局端设备发送的第二请求报文;所述第二请求报文为所述第一OTN局端设备获得所述第一客户端OTN设备发送的第一请求报文后、在所述第一请求报文中添加所述第二地址信息而生成;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息。The management and control system obtains the second request message sent by the first OTN central office device through unicast; the second request message is that the first OTN central office device obtains the first client OTN After the first request message sent by the device, it is generated by adding the second address information to the first request message; the first request message includes the first address of the first client OTN device information.
  7. 根据权利要求5所述的方法,其中,所述管控系统通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文之前,所述方法还包括:The method according to claim 5, wherein before the management and control system obtains the request message sent by the first client OTN device through the first OTN central office device, the method further comprises:
    所述管控系统获得子网配置信息,所述子网配置信息中包括多组子网信息、对应的OTN局端设备以及多个地址信息;所述子网信息以及所述OTN局端设备一一对应;所述多个地址信息为与子网信息对应的、能够分配给客户端OTN设备的地址信息。The management and control system obtains subnet configuration information, and the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and multiple address information; the subnet information and the OTN central office equipment one by one Correspondence; the multiple address information is address information corresponding to the subnet information and that can be allocated to the client OTN device.
  8. 根据权利要求7所述的方法,其中,所述管控系统通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文之前,所述方法还包括:The method according to claim 7, wherein before the management and control system sends a response message to the first client OTN device through the first OTN central office device, the method further comprises:
    所述管控系统基于所述请求报文中的所述第二地址信息查询所述子网配置信息,确定所述第一客户端OTN设备对应的子网信息,从所述子网信息对应的多个地址信息中选择一个地址信息作为第四地址信息。The management and control system queries the subnet configuration information based on the second address information in the request message, determines the subnet information corresponding to the first client OTN device, and determines the subnet information corresponding to the subnet information. One piece of address information is selected as the fourth piece of address information.
  9. 根据权利要求5至8任一项所述的方法,其中,所述请求报文和所述响应报文为DHCP报文;The method according to any one of claims 5 to 8, wherein the request message and the response message are DHCP messages;
    所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  10. 一种地址获取方法,所述方法包括:An address obtaining method, the method includes:
    第一OTN局端设备转发第一客户端OTN设备发送至管控系统的请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;The first OTN central office device forwards the request message sent by the first client OTN device to the management and control system; the request message arriving at the management and control system includes the first address information of the first client OTN device and the first address information -The second address information of the OTN central office equipment;
    所述第一OTN局端设备转发所述管控系统发送至所述第一客户端OTN设备的响应报文;所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。The first OTN central office device forwards the response message sent by the management and control system to the first client OTN device; the response message includes the third address information of the management and control system and the management and control system is The fourth address information allocated by the first client OTN device.
  11. 根据权利要求10所述的方法,其中,所述第一OTN局端设备转发第一客户端OTN设备发送至管控系统的请求报文,包括:The method according to claim 10, wherein the forwarding of the request message sent by the first client OTN device to the management and control system by the first OTN central office device comprises:
    所述第一OTN局端设备获得所述第一客户端OTN设备通过广播的方式发送的第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;The first OTN central office device obtains the first request message sent by the first client OTN device by broadcasting; the first request message includes the first address of the first client OTN device information;
    所述第一OTN局端设备在所述第一请求报文中添加所述第二地址信息生成第二请求报文,通过单播的方式向所述管控系统发送所述第二请求报文。The first OTN central office device adds the second address information to the first request message to generate a second request message, and sends the second request message to the management and control system in a unicast manner.
  12. 根据权利要求10或11所述的方法,其中,所述方法还包括:The method according to claim 10 or 11, wherein the method further comprises:
    所述第一OTN局端设备获得路由配置信息;所述路由配置信息用于指示报文由所述管控系统传输至客户端OTN设备的传输路径;The first OTN central office device obtains routing configuration information; the routing configuration information is used to indicate the transmission path of the packet from the management and control system to the client OTN device;
    所述第一OTN局端设备转发第一客户端OTN设备发送至管控系统的 请求报文,包括:第一OTN局端设备基于所述路由配置信息转发第一客户端OTN设备发送至管控系统的请求报文。The forwarding of the request message sent by the first client OTN device to the management and control system by the first OTN central office device includes: the first OTN central office device forwards the request message sent by the first client OTN device to the management and control system based on the routing configuration information Request message.
  13. 根据权利要求12所述的方法,其中,所述请求报文和所述响应报文为DHCP报文;The method according to claim 12, wherein the request message and the response message are DHCP messages;
    所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  14. 一种客户端OTN设备,所述客户端OTN设备为第一客户端OTN设备;所述设备包括:第一发送单元和第一接收单元;其中,A client OTN device, the client OTN device is a first client OTN device; the device includes: a first sending unit and a first receiving unit; wherein,
    所述第一发送单元,配置为通过第一OTN局端设备向管控系统发送请求报文;到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;The first sending unit is configured to send a request message to the management and control system through a first OTN central office device; the request message arriving at the management and control system includes the first address information of the first client OTN device and all The second address information of the first OTN central office device;
    所述第一接收单元,配置为通过所述第一OTN局端设备获得所述管控系统发送的响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。The first receiving unit is configured to obtain a response message sent by the management and control system through the first OTN central office device, and the response message includes the third address information of the management and control system and the management and control system Fourth address information allocated to the first client OTN device.
  15. 根据权利要求14所述的设备,其中,所述第一发送单元,配置为通过广播的方式发送第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;所述第一请求报文被所述第一OTN局端设备接收到,在所述第一请求报文中添加所述第二地址信息生成并向所述管控系统发送第二请求报文。The device according to claim 14, wherein the first sending unit is configured to send the first request message by broadcasting; the first request message includes the first client OTN device An address information; the first request message is received by the first OTN central office device, and the second address information is added to the first request message to generate and send a second request to the management and control system Message.
  16. 根据权利要求14所述的设备,其中,所述设备还包括生成单元,配置为接入所述第一OTN局端设备,生成地址路由表;所述地址路由表用于指示报文由所述第一客户端OTN设备传输至所述管控系统的传输路径。The device according to claim 14, wherein the device further comprises a generating unit configured to access the first OTN central office device to generate an address routing table; the address routing table is used to indicate that packets are sent by the The first client OTN device is transmitted to the transmission path of the management and control system.
  17. 根据权利要求14至16任一项所述的设备,其中,所述请求报文 和所述响应报文为DHCP报文;The device according to any one of claims 14 to 16, wherein the request message and the response message are DHCP messages;
    所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  18. 一种管控系统,所述管控系统包括:第二接收单元和第二发送单元;其中,A management and control system, the management and control system includes: a second receiving unit and a second sending unit; wherein,
    所述第二接收单元,配置为通过第一OTN局端设备获得第一客户端OTN设备发送的请求报文;所述请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;The second receiving unit is configured to obtain the request message sent by the first client OTN device through the first OTN central office device; the request message includes the first address information of the first client OTN device and The second address information of the first OTN central office device;
    所述第二发送单元,配置为通过所述第一OTN局端设备向所述第一客户端OTN设备发送响应报文,所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。The second sending unit is configured to send a response message to the first client OTN device through the first OTN central office device, and the response message includes the third address information of the management and control system and the The fourth address information allocated by the management and control system to the first client OTN device.
  19. 根据权利要求18所述的管控系统,其中,所述第二接收单元,配置为通过单播的方式获得所述第一OTN局端设备发送的第二请求报文;所述第二请求报文为所述第一OTN局端设备获得所述第一客户端OTN设备发送的第一请求报文后、在所述第一请求报文中添加所述第二地址信息而生成;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息。The management and control system according to claim 18, wherein the second receiving unit is configured to obtain the second request message sent by the first OTN central office device in a unicast manner; the second request message It is generated by adding the second address information to the first request message after the first OTN central office device obtains the first request message sent by the first client OTN device; the first The request message includes the first address information of the first client OTN device.
  20. 根据权利要求18所述的管控系统,其中,所述管控系统还包括获取单元,配置为获得子网配置信息,所述子网配置信息中包括多组子网信息、对应的OTN局端设备以及多个地址信息;所述子网信息以及所述OTN局端设备一一对应;所述多个地址信息为与子网信息对应的、能够分配给客户端OTN设备的地址信息。The management and control system according to claim 18, wherein the management and control system further comprises an obtaining unit configured to obtain subnet configuration information, and the subnet configuration information includes multiple sets of subnet information, corresponding OTN central office equipment, and A plurality of address information; the subnet information and the OTN central office device have a one-to-one correspondence; the plurality of address information corresponds to the subnet information and can be allocated to the client OTN device.
  21. 根据权利要求20所述的管控系统,其中,所述管控系统还包括确定单元,配置为所述第二发送单元通过所述第一OTN局端设备向所述第一 客户端OTN设备发送响应报文之前,基于所述请求报文中的所述第二地址信息查询所述子网配置信息,确定所述第一客户端OTN设备对应的子网信息,从所述子网信息对应的多个地址信息中选择一个地址信息作为第四地址信息。The management and control system according to claim 20, wherein the management and control system further comprises a determining unit configured to send a response report to the first client OTN device through the first OTN central office device by the second sending unit Before the article, query the subnet configuration information based on the second address information in the request message, and determine the subnet information corresponding to the first client OTN device, from the multiple subnet information corresponding to the subnet information. One address information is selected as the fourth address information in the address information.
  22. 根据权利要求18至21任一项所述的管控系统,其中,所述请求报文和所述响应报文为DHCP报文;The management and control system according to any one of claims 18 to 21, wherein the request message and the response message are DHCP messages;
    所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  23. 一种OTN局端设备,所述OTN局端设备为第一OTN局端设备;所述设备包括:第一通讯单元和第二通讯单元;其中,An OTN central office equipment, the OTN central office equipment is a first OTN central office equipment; the equipment includes: a first communication unit and a second communication unit; wherein,
    所述第一通讯单元,配置为获得第一客户端OTN设备发送的请求报文;还用于将管控系统发送的响应报文转发至所述第一客户端OTN设备;The first communication unit is configured to obtain a request message sent by the first client OTN device; and is also configured to forward a response message sent by the management and control system to the first client OTN device;
    所述第二通讯单元,配置为转发所述请求报文至管控系统;还用于获得管控系统发送的响应报文;The second communication unit is configured to forward the request message to the management and control system; and is also used to obtain a response message sent by the management and control system;
    其中,到达所述管控系统的请求报文中包括所述第一客户端OTN设备的第一地址信息和所述第一OTN局端设备的第二地址信息;所述响应报文中包括所述管控系统的第三地址信息和所述管控系统为所述第一客户端OTN设备分配的第四地址信息。Wherein, the request message arriving at the management and control system includes the first address information of the first client OTN device and the second address information of the first OTN central office device; the response message includes the The third address information of the management and control system and the fourth address information allocated by the management and control system to the first client OTN device.
  24. 根据权利要求23所述的设备,其中,所述设备还包括处理单元;The device according to claim 23, wherein the device further comprises a processing unit;
    所述第一通讯单元,配置为获得所述第一客户端OTN设备通过广播的方式发送的第一请求报文;所述第一请求报文中包括所述第一客户端OTN设备的第一地址信息;The first communication unit is configured to obtain a first request message sent by the first client OTN device by broadcasting; the first request message includes the first request message of the first client OTN device Address information;
    所述处理单元,配置为在所述第一请求报文中添加所述第二地址信息 生成第二请求报文;The processing unit is configured to add the second address information to the first request message to generate a second request message;
    所述第二通讯单元,配置为通过单播的方式向所述管控系统发送所述第二请求报文。The second communication unit is configured to send the second request message to the management and control system in a unicast manner.
  25. 根据权利要求23或24所述的设备,其中,所述设备还包括获取单元,配置为获得路由配置信息;所述路由配置信息用于指示报文由所述管控系统传输至客户端OTN设备的传输路径;The device according to claim 23 or 24, wherein the device further comprises an obtaining unit configured to obtain routing configuration information; the routing configuration information is used to indicate that the message is transmitted from the management and control system to the client OTN device Transmission path
    所述第二通讯单元,配置为基于所述获取单元获得的所述路由配置信息转发第一客户端OTN设备发送至管控系统的请求报文。The second communication unit is configured to forward a request message sent by the first client OTN device to the management and control system based on the routing configuration information obtained by the obtaining unit.
  26. 根据权利要求25所述的设备,其中,所述请求报文和所述响应报文为DHCP报文;The device according to claim 25, wherein the request message and the response message are DHCP messages;
    所述DHCP报文包括第一特定字段、第二特定字段和第三特定字段;所述第一特定字段用于添加所述第一地址信息和所述第四地址信息,所述第二特定字段用于添加所述第二地址信息,所述第三特定字段用于添加所述第三地址信息。The DHCP message includes a first specific field, a second specific field, and a third specific field; the first specific field is used to add the first address information and the fourth address information, and the second specific field Is used to add the second address information, and the third specific field is used to add the third address information.
  27. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1至4任一项所述方法的步骤;或者,该程序被处理器执行时实现权利要求5至9任一项所述方法的步骤;或者,该程序被处理器执行时实现权利要求10至13任一项所述方法的步骤。A computer-readable storage medium with a computer program stored thereon, which implements the steps of any one of claims 1 to 4 when the program is executed by a processor; or, implements claim 5 when the program is executed by a processor Steps of the method described in any one of claims 10 to 13; or, the program is executed by a processor to implement the steps of the method described in any one of claims 10 to 13.
  28. 一种通信设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1至4任一项所述方法的步骤;或者,所述处理器执行所述程序时实现权利要求5至9任一项所述方法的步骤;或者,所述处理器执行所述程序时实现权利要求10至13任一项所述方法的步骤。A communication device, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor implements the steps of the method according to any one of claims 1 to 4 when the processor executes the program; Or, when the processor executes the program, the steps of the method according to any one of claims 5 to 9 are implemented; or, when the processor executes the program, the steps of the method according to any one of claims 10 to 13 are implemented. step.
PCT/CN2020/114552 2019-09-20 2020-09-10 Address acquisition method and related device WO2021052241A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910894845.2A CN112543386B (en) 2019-09-20 2019-09-20 Address acquisition method and related equipment
CN201910894845.2 2019-09-20

Publications (1)

Publication Number Publication Date
WO2021052241A1 true WO2021052241A1 (en) 2021-03-25

Family

ID=74883674

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/114552 WO2021052241A1 (en) 2019-09-20 2020-09-10 Address acquisition method and related device

Country Status (2)

Country Link
CN (1) CN112543386B (en)
WO (1) WO2021052241A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US20090213763A1 (en) * 2008-02-22 2009-08-27 Dunsmore Richard J Method and system for dynamic assignment of network addresses in a communications network
CN102355510A (en) * 2011-10-17 2012-02-15 中兴通讯股份有限公司 Medium/media access control (MAC) address allocation method, device and system
CN104580029A (en) * 2015-01-26 2015-04-29 杭州华三通信技术有限公司 Address distribution method and device
US20170012933A1 (en) * 2015-07-08 2017-01-12 Infinera Corporation Systems, methods, and apparatus for arp mediation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763671A (en) * 2016-04-27 2016-07-13 杭州华三通信技术有限公司 IP address distribution method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090213763A1 (en) * 2008-02-22 2009-08-27 Dunsmore Richard J Method and system for dynamic assignment of network addresses in a communications network
CN102355510A (en) * 2011-10-17 2012-02-15 中兴通讯股份有限公司 Medium/media access control (MAC) address allocation method, device and system
CN104580029A (en) * 2015-01-26 2015-04-29 杭州华三通信技术有限公司 Address distribution method and device
US20170012933A1 (en) * 2015-07-08 2017-01-12 Infinera Corporation Systems, methods, and apparatus for arp mediation

Also Published As

Publication number Publication date
CN112543386B (en) 2022-04-15
CN112543386A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
US8631100B2 (en) Automatic assignment of hardware addresses within computer networks
US8122113B2 (en) Dynamic host configuration protocol (DHCP) message interception and modification
US9210034B2 (en) Client addressing and roaming in a wireless network
US9380020B2 (en) Method for mobile node to dynamically acquire location identifier, and LISP network
US8681695B1 (en) Single address prefix allocation within computer networks
EP2267984B1 (en) Address configuring method, apparatus and system
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
KR20110060895A (en) A method and a gateway for providing multiple internet access
CN109150638A (en) A kind of route management method and device
US7739394B2 (en) Bi-level addressing for internet protocol broadband access
WO2020132984A1 (en) Ipv6 address configuration method and router device
US20200274948A1 (en) Service flow configuration method and apparatus
WO2021052241A1 (en) Address acquisition method and related device
US7836182B1 (en) Network device having universal address pool manager and a multi-protocol network address pool
EP3048756B1 (en) Management method and apparatus for dynamic host configuration protocol server and relay
CN106878479B (en) Address allocation method and device
US20060015595A1 (en) Method and apparatus for obtaining addresses for multiple interfaces in a device
WO2016187783A1 (en) Data transmission method and device
CN107172229B (en) Router configuration method and device
JP2001308909A (en) Method for assigning logical network address and terminal
WO2021218232A1 (en) Address allocation method and system, and electronic device and computer-readable storage medium
US20230171226A1 (en) Method for configuring a communication network and node implementing said configuration method
CN113992629B (en) Address allocation method and device
WO2022160982A1 (en) Ipv6 address configuration method and routing device
WO2024037198A1 (en) Routing method for home network, and access device and 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: 20866239

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20866239

Country of ref document: EP

Kind code of ref document: A1