CN112543386B - Address acquisition method and related equipment - Google Patents

Address acquisition method and related equipment Download PDF

Info

Publication number
CN112543386B
CN112543386B CN201910894845.2A CN201910894845A CN112543386B CN 112543386 B CN112543386 B CN 112543386B CN 201910894845 A CN201910894845 A CN 201910894845A CN 112543386 B CN112543386 B CN 112543386B
Authority
CN
China
Prior art keywords
otn
address information
management
control system
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910894845.2A
Other languages
Chinese (zh)
Other versions
CN112543386A (en
Inventor
赵阳
李允博
王东
张德朝
李晗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910894845.2A priority Critical patent/CN112543386B/en
Priority to PCT/CN2020/114552 priority patent/WO2021052241A1/en
Publication of CN112543386A publication Critical patent/CN112543386A/en
Application granted granted Critical
Publication of CN112543386B publication Critical patent/CN112543386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

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

Abstract

The embodiment of the invention discloses an address acquisition method and related equipment. The method comprises the following steps: a first client Optical Transport Network (OTN) device sends a request message to a management and control system through a first OTN local side device; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN; the first client OTN device obtains a response packet sent by the management and control system through the first OTN local side device, where the response packet includes 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.

Description

Address acquisition method and related equipment
Technical Field
The invention relates to the technical field of optical transport networks, in particular to an address acquisition method and related equipment.
Background
An Optical Transport Network (OTN) device (also referred to as a CPE OTN device) at a client is used as a client side device, and needs to have a good plug and play function (i.e., an IP address of a management and control system is automatically obtained after power-on, thereby implementing management and control message intercommunication), so as to improve user experience.
At present, part of manufacturers can realize that CPE OTN equipment automatically acquires the IP address of the management and control system, but the industry does not have a uniform implementation scheme. This causes that, in a scenario where the CPE OTN device is docked with the metro OTN of the different manufacturer, the CPE OTN device must manually configure parameters such as an IP address of the management and control system, and can be docked with the management and control system. Therefore, no effective solution exists at present how to realize automatic acquisition of the IP address of the management and control device under the condition of inter-manufacturer networking.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide an address obtaining method and related devices.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides an address acquisition method, which comprises the following steps:
a first client OTN device sends a request message to a management and control system through a first OTN local side device; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN;
the first client OTN device obtains a response packet sent by the management and control system through the first OTN local side device, where the response packet includes 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.
In the foregoing solution, the sending, by the first client OTN device, the request packet to the management and control system through the first OTN local side device includes:
the first client OTN equipment sends a first request message in a broadcasting mode; the first request message comprises first address information of the first client OTN equipment; the first request message is received by the first OTN local side device, and the second address information is added to the first request message to generate and send a second request message to the management and control system.
In the above scheme, the method further comprises: the first client OTN equipment is accessed to the first OTN local side equipment to generate an address routing table; the address routing table is used for indicating a transmission path of a message transmitted to the management and control system by the first client OTN device.
In the above scheme, the request message and the response message are Dynamic Host Configuration Protocol (DHCP) messages; the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
The embodiment of the invention also provides an address acquisition method, which comprises the following steps:
the management and control system obtains a request message sent by a first client OTN device through a first OTN local side device; the request message includes first address information of the first client OTN device and second address information of the first OTN local side device;
the management and control system sends a response message to the first client OTN device through the first OTN local side device, where the response message includes 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.
In the foregoing solution, the acquiring, by the management and control system, the request packet sent by the first client OTN device through the first OTN central office device includes:
the management and control system obtains a second request message sent by the first OTN local side device in a unicast mode; the second request message is generated by adding the second address information to the first request message after the first OTN local side device obtains the first request message sent by the first client OTN device; the first request message includes first address information of the first client OTN device.
In the foregoing solution, before the management and control system obtains the request packet sent by the first client OTN device through the first OTN central office device, the method further includes:
the management and control system obtains subnet configuration information, wherein the subnet configuration information comprises a plurality of groups of subnet information, corresponding OTN local side equipment and a plurality of address information; the subnet information and the OTN local side equipment are in one-to-one correspondence; the plurality of address information are address information which corresponds to the subnet information and can be allocated to the client OTN equipment.
In the foregoing solution, before the management and control system sends the response packet to the first client OTN device through the first OTN central office device, the method further includes:
the management and control system queries the subnet configuration information based on the second address information in the request message, determines subnet information corresponding to the first client OTN device, and selects one address information from a plurality of address information corresponding to the subnet information as fourth address information.
In the above scheme, the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
The embodiment of the invention also provides an address acquisition method, which comprises the following steps:
the method comprises the steps that a first OTN local side device forwards a request message sent by a first client OTN device to a management and control system; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN;
the first OTN local side equipment forwards a response message sent to the first client OTN equipment by the management and control system; the response message includes 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.
In the foregoing solution, the forwarding, by the first OTN local side device, the request packet sent by the first client OTN device to the management and control system includes: the first OTN local side equipment acquires a first request message sent by the first client OTN equipment in a broadcasting mode; the first request message comprises first address information of the first client OTN equipment;
and the first OTN local side equipment adds the second address information in 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 mode.
In the above scheme, the method further comprises:
the first OTN local side equipment acquires routing configuration information; the routing configuration information is used for indicating a transmission path of a message transmitted to the client OTN equipment by the management and control system;
the forwarding, by the first OTN local side device, the request packet sent by the first client OTN device to the management and control system includes: and the first OTN local side equipment forwards a request message sent to the management and control system by the first client OTN equipment based on the routing configuration information.
In the above scheme, the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
The embodiment of the invention also provides a client OTN device, which is a first client OTN device; the apparatus comprises: a first transmitting unit and a first receiving unit; wherein the content of the first and second substances,
the first sending unit is configured to send a request message to the management and control system through the first OTN local side device; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN;
the first receiving unit is configured to obtain, through the first OTN local side device, a response packet sent by the management and control system, where the response packet includes 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.
In the above scheme, the first sending unit is configured to send a first request packet in a broadcast manner; the first request message comprises first address information of the first client OTN equipment; the first request message is received by the first OTN local side device, and the second address information is added to the first request message to generate and send a second request message to the management and control system.
In the above solution, the device further includes a generating unit, configured to access the first OTN local side device, and generate an address routing table; the address routing table is used for indicating a transmission path of a message transmitted to the management and control system by the first client OTN device.
In the above scheme, the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
The embodiment of the invention also provides a management and control system, which comprises: a second receiving unit and a second transmitting unit; wherein the content of the first and second substances,
the second receiving unit is configured to obtain, through the first OTN central office device, a request packet sent by the first client OTN device; the request message includes first address information of the first client OTN device and second address information of the first OTN local side device;
the second sending unit is configured to send a response packet to the first client OTN device through the first OTN local side device, where the response packet includes 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.
In the foregoing solution, the second receiving unit is configured to obtain, in a unicast manner, a second request packet sent by the first OTN central office device; the second request message is generated by adding the second address information to the first request message after the first OTN local side device obtains the first request message sent by the first client OTN device; the first request message includes first address information of the first client OTN device.
In the above scheme, the management and control system further includes an obtaining unit, configured to obtain subnet configuration information, where the subnet configuration information includes multiple sets of subnet information, corresponding OTN local side devices, and multiple sets of address information; the subnet information and the OTN local side equipment are in one-to-one correspondence; the plurality of address information are address information which corresponds to the subnet information and can be allocated to the client OTN equipment.
In the foregoing solution, the management and control system further includes a determining unit, configured to, before the second sending unit sends the response packet to the first client OTN device through the first OTN central office device, query the subnet configuration information based on the second address information in the request packet, determine subnet information corresponding to the first client OTN device, and select one address information from multiple address information corresponding to the subnet information as fourth address information.
In the above scheme, the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
The embodiment of the invention also provides an OTN local side device, wherein the OTN local side device is a first OTN local side device; the apparatus comprises: a first communication unit and a second communication unit; wherein the content of the first and second substances,
the first communication unit is used for acquiring a request message sent by a first client OTN device; the OTN equipment is also used for forwarding a response message sent by the management and control system to the first client OTN equipment;
the second communication unit is used for forwarding the request message to a management and control system; the system is also used for obtaining a response message sent by the management and control system;
the request message reaching the management and control system comprises first address information of the first client OTN equipment and second address information of the first OTN local side equipment; the response message includes 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.
In the above scheme, the apparatus further comprises a processing unit;
the first communication unit is configured to obtain a first request packet sent by the first client OTN device in a broadcast manner; the first request message comprises first address information of the first client OTN equipment;
the processing unit is configured to add the second address information to the first request packet to generate a second request packet;
and the second communication unit is configured to send the second request packet to the management and control system in a unicast manner.
In the above solution, the device further includes an obtaining unit, configured to obtain the route configuration information; the routing configuration information is used for indicating a transmission path of a message transmitted to the client OTN equipment by the management and control system;
the second communication unit is configured to forward, based on the routing configuration information obtained by the obtaining unit, a request packet sent by the OTN device of the first client to the management and control system.
In the above scheme, the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the address acquisition method applied to the client OTN device described in the embodiment of the invention are realized; or, when executed by the processor, the program implements the steps of the address obtaining method applied to the management and control system according to the embodiment of the present invention; or, the program implements, when executed by the processor, the steps of the address obtaining method applied to the OTN central office device according to the embodiment of the present invention.
The embodiment of the invention also provides communication equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the address acquisition method applied to the client OTN equipment in the embodiment of the invention; or, when executing the program, the processor implements the address obtaining method applied to the management and control system according to the embodiment of the present invention; or, when executing the program, the processor implements the steps of the address obtaining method applied to the OTN local side device according to the embodiment of the present invention.
The address acquisition method and the related equipment provided by the embodiment of the invention comprise the following steps: a first client OTN device sends a request message to a management and control system through a first OTN local side device; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN; the first client OTN device obtains a response packet sent by the management and control system through the first OTN local side device, where the response packet includes 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. By adopting the technical scheme of the embodiment of the invention, the message is forwarded through the first OTN local side equipment, parameters such as the IP address of the management and control system do not need to be manually configured by the client OTN equipment, and the IP address of the management and control system is automatically obtained by the client OTN equipment, so that the client OTN equipment is automatically butted with the management and control system, and the user experience is greatly improved on the other hand.
Drawings
Fig. 1 is a schematic diagram of a system architecture applied to an address obtaining method according to an embodiment of the present invention;
FIG. 2 is a first flowchart illustrating an address obtaining method according to an embodiment of the present invention;
FIG. 3 is a second flowchart illustrating an address obtaining method according to an embodiment of the present invention;
FIG. 4 is a third flowchart illustrating an address obtaining method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a message format according to an embodiment of the present invention;
FIG. 6 is a fourth flowchart illustrating an address obtaining method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a client OTN device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another composition of the client OTN device according to the embodiment of the present invention;
fig. 9 is a first schematic structural diagram illustrating a control system according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a second exemplary embodiment of a management and control system;
fig. 11 is a schematic structural diagram of a third embodiment of the management and control system of the present invention;
fig. 12 is a first schematic structural diagram of a component of an OTN local side device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a composition structure of an OTN local side device according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram three of the components of the OTN local side device according to the embodiment of the present invention;
fig. 15 is a schematic diagram of a hardware configuration of a communication device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic diagram of a system architecture applied to an address obtaining method according to an embodiment of the present invention; as shown in fig. 1, the system includes: the system comprises a management and control system, local side equipment and client OTN equipment, wherein the local side equipment and the client OTN equipment are positioned in a Data Communication Network (DCN). And the gateway is in data communication with the management and control system through the external DCN.
The client side OTN equipment, which can also be called CPE OTN equipment, is OTN equipment which is mainly deployed below a metropolitan area network/local area network integrated service access node, is directly connected with various group private line client equipment, and is mainly placed in a client machine room or an office end at the edge to be connected with an incoming station. The device mainly provides access and bearing of larger bandwidth services of 100Mbit/s or more, and also considers access of small-particle services of 100Mbit/s or less (such as E1 and the like) under special requirements. The CPE OTN device may be connected to an OTN device of a local side integrated service access node (i.e., an OTN device in a DCN intranet) through an OTN Interface in a line side standard format, and an Inter-Domain Interface (IrDI) of a white OTUk Interface should be used for interfacing with transmission devices of different manufacturers, so as to implement convergence, integration, and mediation of access services.
The address acquisition method of the embodiment can be implemented based on DHCP. The management and control system is integrated with a DHCP server function, has the IP address planning capability and can allocate IP addresses to the client OTN equipment based on a certain strategy.
In this embodiment, some devices in the OTN device located in the internal DCN may be used as a central office device, and the central office device has a DHCP Relay (DHCP Relay) function; the DHCP relay function may be implemented in the main control board of the device. The Client OTN device serves as a DHCP Client (DHCP Client), and a default IP address is configured when the Client OTN device leaves a factory. The client OTN equipment and the local side equipment can communicate signaling.
In this embodiment, in the network planning stage, the closest OTN device connected to the client OTN device, which is capable of communicating with the management and control system and is located in the internal DCN, may be used as a local side device (also referred to as a DHCP relay), the client OTN device may be directly connected to the local side device through an optical fiber, and other devices may also be located between the client OTN device and the local side device.
Based on the system architecture example shown in fig. 1, the following embodiments of the present invention are proposed.
The embodiment of the invention provides an address acquisition method. FIG. 2 is a first flowchart illustrating an address obtaining method according to an embodiment of the present invention; as shown in fig. 2, the method includes:
step 101: a first client OTN device sends a request message to a management and control system through a first OTN local side device; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN;
step 102: the first client OTN device obtains a response packet sent by the management and control system through the first OTN local side device, where the response packet includes 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.
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 address information of the management and control system through forwarding of the OTN local side device before the OTN device of the first client accesses the OTN local side device.
In this embodiment, the first OTN local side device may be a local side device closest to the first client OTN device in an intranet DCN.
In an optional embodiment of the present invention, the sending, by the first client OTN device, the request packet to the management and control system through the first OTN local side device includes: the first client OTN equipment sends a first request message in a broadcasting mode; the first request message comprises first address information of the first client OTN equipment; the first request message is received by the first OTN local side device, and the second address information is added to the first request message to generate and send a second request message to the management and control system.
In this embodiment, a first client OTN device sends a first request packet in a broadcast manner; the OTN central office device that receives the first request packet may be used as the first OTN central office device. The first client OTN device adds first address information of the first client OTN device itself to the first request packet, where the first address information may be a default IP address configured when the first client OTN device leaves a factory.
After receiving a first request message, a first OTN local side device adds second address information of the first OTN local side device in the first request message to generate a second request message, and sends the second request message to a management and control system in a unicast mode. The advantage of setting the OTN local side device is that if the OTN local side device is not set, the message still needs to be sent in a broadcast manner in the DCN, which greatly increases the network pressure; and the OTN local side equipment is arranged, so that the message can be transmitted in a unicast (namely point-to-point transmission) mode, and the network pressure can be greatly reduced.
In this embodiment, after obtaining a request packet of a first client OTN device, a management and control system sends a response packet to the first client OTN device, where the response packet includes 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.
In this embodiment, the client OTN device (for example, the first client OTN device) and the OTN device (which may include an OTN central office device) in the DCN intranet may be OTN devices shipped from the same manufacturer, or may be OTN devices shipped from different manufacturers.
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 be an IP address.
Based on this, in this embodiment, the first OTN local side device forwards the packet, and parameters such as the IP address of the management and control system do not need to be manually configured by the client OTN device, so that the client OTN device automatically acquires the IP address of the management and control system, thereby achieving automatic docking between the client OTN device and the management and control system, and greatly improving user experience from another aspect.
In an optional embodiment of the invention, the method further comprises: the first client OTN equipment is accessed to the first OTN local side equipment to generate an address routing table; the address routing table is used for indicating a transmission path of a message transmitted to the management and control system by the first client OTN device.
In this embodiment, after obtaining the response packet of the management and control system, the first client OTN device accesses the management and control system based on the obtained third address information and fourth address information, thereby implementing that the first client OTN device accesses the first OTN local side device and generates the address routing table.
Based on the foregoing embodiments, the embodiment of the present invention further provides an address obtaining method. FIG. 3 is a second flowchart illustrating an address obtaining method according to an embodiment of the present invention; as shown in fig. 3, the method includes:
step 201: the management and control system obtains a request message sent by a first client OTN device through a first OTN local side device; the request message includes first address information of the first client OTN device and second address information of the first OTN local side device;
step 202: the management and control system sends a response message to the first client OTN device through the first OTN local side device, where the response message includes 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.
In an optional embodiment of the present invention, the obtaining, by the management and control system through the first OTN central office device, the request packet sent by the first client OTN device includes: the management and control system obtains a second request message sent by the first OTN local side device in a unicast mode; the second request message is generated by adding the second address information to the first request message after the first OTN local side device obtains the first request message sent by the first client OTN device; the first request message includes first address information of the first client OTN device.
In this embodiment, a first client OTN device sends a first request packet in a broadcast manner; the OTN central office device that receives the first request packet may be used as the first OTN central office device. The first client OTN device adds first address information of the first client OTN device itself to the first request packet, where the first address information may be a default IP address configured when the first client OTN device leaves a factory. After receiving a first request message, a first OTN local side device adds second address information of the first OTN local side device in the first request message to generate a second request message, and sends the second request message to a management and control system in a unicast mode.
In an optional embodiment of the present invention, before the management and control system obtains, through the first OTN central office device, the request packet sent by the first client OTN device, the method further includes: the management and control system obtains subnet configuration information, wherein the subnet configuration information comprises a plurality of groups of subnet information, corresponding OTN local side equipment and a plurality of address information; the subnet information and the OTN local side equipment are in one-to-one correspondence; the plurality of address information are address information which corresponds to the subnet information and can be allocated to the client OTN equipment.
In this embodiment, in a network deployment phase, the OTN local side device is planned first, and for example, the OTN local side device may be deployed according to a position (or an estimated position) of the client OTN device. The OTN local side equipment can be deployed in a close area provided with the client OTN equipment. In this embodiment, different subnets are configured for each OTN local side device, and different OTN local side devices correspond to different subnets. For example, two OTN central office devices shown in fig. 1 may respectively correspond to different subnets.
In this embodiment, the management and control system stores subnet configuration information, where the subnet configuration information includes multiple sets of subnet information, corresponding OTN local side devices, and multiple sets of address information. It can be understood that a plurality of address information corresponding to different subnets are stored in the management and control system, and the management and control system needs to allocate address information corresponding to a subnet (i.e., a corresponding OTN local side device) to a client OTN device according to the subnet (i.e., the corresponding OTN local side device) where the client OTN device is located.
As an implementation manner, before the management and control system sends a response packet to the first client OTN device through the first OTN local side device, the method further includes: the management and control system queries the subnet configuration information based on the second address information in the request message, determines subnet information corresponding to the first client OTN device, and selects one address information from a plurality of address information corresponding to the subnet information as fourth address information.
Based on the foregoing embodiments, the embodiment of the present invention further provides an address obtaining method. FIG. 4 is a third flowchart illustrating an address obtaining method according to an embodiment of the present invention; as shown in fig. 4, the method includes:
step 301: the method comprises the steps that a first OTN local side device forwards a request message sent by a first client OTN device to a management and control system; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN;
step 302: the first OTN local side equipment forwards a response message sent to the first client OTN equipment by the management and control system; the response message includes 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.
In an optional embodiment of the present invention, the forwarding, by the first OTN local side device, the request packet sent by the first client OTN device to the management and control system includes: the first OTN local side equipment acquires a first request message sent by the first client OTN equipment in a broadcasting mode; the first request message comprises first address information of the first client OTN equipment; and the first OTN local side equipment adds the second address information in 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 mode.
In this embodiment, a first client OTN device sends a first request packet in a broadcast manner; the OTN central office device that receives the first request packet may be used as the first OTN central office device. The first client OTN device adds first address information of the first client OTN device itself to the first request packet, where the first address information may be a default IP address configured when the first client OTN device leaves a factory. After receiving a first request message, a first OTN local side device adds second address information of the first OTN local side device in the first request message to generate a second request message, and sends the second request message to a management and control system in a unicast mode.
In this embodiment, in a network deployment phase, the OTN local side device is planned first, and for example, the OTN local side device may be deployed according to a position (or an estimated position) of the client OTN device. The OTN local side equipment can be deployed in a close area provided with the client OTN equipment. In this embodiment, different subnets are configured for each OTN local side device, and different OTN local side devices correspond to different subnets. For example, two OTN central office devices shown in fig. 1 may respectively correspond to different subnets.
Secondly, configuring routing configuration information (also called a DCN routing table) for each OTN local side device, where the routing configuration information includes a subnet forwarding policy, that is, a forwarding policy of a message between the OTN local side device and a management and control system is configured in advance. Since the OTN local side device is pre-deployed at the network deployment stage, the forwarding policy of the packet is determined by configuring the routing configuration information, and there is no need to configure the forwarding policy at each client OTN device, so that the number of routing tables is greatly reduced, and the routing table lookup and packet forwarding speed are increased (if the OTN local side device or subnet is not set, a complete packet forwarding policy needs to be configured for each client OTN device); in addition, even if the client OTN device is subsequently added, the routing configuration information in the OTN local side device does not need to be updated, and compared with the case that a complete message forwarding policy is configured in the client OTN device, the case that the message forwarding policy on the path needs to be updated each time the client OTN device is newly added, the technical scheme of the embodiment of the present invention also greatly reduces the human resource consumption to a certain extent.
Based on this, as an embodiment, the method further comprises: the first OTN local side equipment acquires routing configuration information; the routing configuration information is used for indicating a transmission path of a message transmitted to the client OTN equipment by the management and control system; the forwarding, by the first OTN local side device, the request packet sent by the first client OTN device to the management and control system includes: and the first OTN local side equipment forwards a request message sent to the management and control system by the first client OTN equipment based on the routing configuration information.
In this embodiment, the request message and the response message are DHCP messages; the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
FIG. 5 is a diagram illustrating a message format according to an embodiment of the present invention; specifically, the message format schematic diagram of the DHCP is shown; as shown in fig. 5, the definition of each field in the message is:
1. op, message type, wherein 1 represents a request message, and 2 represents a response message;
2. htype, hardware address type, 1 represents the hardware address of 10Mb/s Ethernet;
3. hlen, hardware address length, value of this field in ethernet is 6;
4. hops, hop count; the client is set to 0, and can also be set by a proxy server;
5. xid, the transaction ID, a random number chosen by the client, is 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, filled by the client, representing the number of seconds used after the client starts to obtain the IP address or the IP address is lent;
7. flags, flags field; the bit is 16 bits, only the leftmost bit is defined at present, the bit is 0 to indicate unicast, and 1 to indicate broadcast;
8. ciaddr, the IP address of the client. The client can be filled only if the client is in Bound, Renew and binding states and can respond to the ARP request;
9. yiaddr, the IP address of the device itself or the IP address of the client;
10. siaddr, which indicates the IP address of the server to be used in the next stage of the DHCP protocol flow;
11. giaddr, the IP address of the DHCP relay;
12. chaddr, client hardware address;
13. name, optional server hostname, this field is a string of empty endings, filled in by the server;
14. file, start filename, is a string of empty endings. The DHCP Discover message is a generic name or a null character, and the DHCP Offer message provides an effective directory path full name;
15. options, optional parameter fields, in the format "code + length + data".
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 fourth address information are filled in through some specific fields in the DHCP messages.
As an example, filling positions of the first address information, the second address information, the third address information, and the fourth address information may refer to table 1, for example, the first address information (a default IP address allocated when the first client OTN device leaves the factory) is filled in a request message phase through a yiaddr field, and the fourth address information (an IP address allocated to the first client OTN device by the management and control system) is filled in a response message phase through the yiaddr field; filling the second address information (namely the IP address of the OTN local side equipment) through the giaddr field; and filling the third address information (namely the IP address of the management and control system) through the name field.
TABLE 1
Figure BDA0002209890090000151
Figure BDA0002209890090000161
The address acquisition method according to the embodiment of the present invention is described in detail below with reference to a specific example.
FIG. 6 is a fourth flowchart illustrating an address obtaining method according to an embodiment of the present invention; as shown in fig. 6, the method includes:
step 401: a first client OTN device sends a first request message in a broadcasting mode, wherein a yiaddr field in the first request message fills a default IP address of the first client OTN device;
step 402: the first OTN local side equipment receives the first request message, fills the IP address of the first OTN local side equipment in the giaddr field in the first request message, generates a second request message, and sends the second request message to a management and control system in a unicast mode;
step 403: the management and control system receives the second request message, determines first OTN local side equipment based on a giaddr field in the second request message, obtains a plurality of IP addresses corresponding to the first OTN local side equipment, selects one IP address to fill in a yiaddr field in a response message, fills the IP address of the management and control system in a name field, and sends the response message to the first OTN local side equipment;
step 404: the first OTN local side equipment forwards the response message to the first client OTN equipment;
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 allocated to the management and control system, and the like from the response message.
By adopting the technical scheme of the embodiment of the invention, the message is forwarded through the first OTN local side equipment, parameters such as the IP address of the management and control system do not need to be manually configured by the client OTN equipment, and the IP address of the management and control system is automatically obtained by the client OTN equipment, so that the client OTN equipment is automatically butted with the management and control system, and the user experience is greatly improved on the other hand.
The embodiment of the invention also provides the client OTN equipment, which is the first client OTN equipment. Fig. 7 is a schematic structural diagram of a client OTN device according to an embodiment of the present invention; as shown in fig. 7, the apparatus includes: a first transmitting unit 51 and a first receiving unit 52; wherein the content of the first and second substances,
the first sending unit 51 is configured to send a request message to the management and control system through the first OTN local side device; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN;
the first receiving unit 52 is configured to obtain, through the first OTN local side device, a response packet sent by the management and control system, where the response packet includes 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.
In an optional embodiment of the present invention, the first sending unit 51 is configured to send the first request packet in a broadcast manner; the first request message comprises first address information of the first client OTN equipment; the first request message is received by the first OTN local side device, and the second address information is added to the first request message to generate and send a second request message to the management and control system.
In an optional embodiment of the present invention, as shown in fig. 8, the device further includes a generating unit 53, configured to access the first OTN local side device, and generate an address routing table; the address routing table is used for indicating a transmission path of a message transmitted to the management and control system by the first client OTN device.
In the embodiment of the invention, the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
In the embodiment of the present invention, the generating Unit 53 in the client OTN device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA) in the device in practical application; the first sending unit 51 and the first receiving unit 52 in the client OTN device can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiving antenna in practical application.
It should be noted that: in the above embodiment, when performing the address obtaining processing, the client OTN device is exemplified by only the division of each program module, and in practical applications, the processing may be allocated to be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the processing described above. In addition, the embodiments of the client OTN device and the address obtaining method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the embodiments of the methods and are not described herein again.
The embodiment of the invention also provides a management and control system. Fig. 9 is a first schematic structural diagram illustrating a control system according to an embodiment of the present invention; as shown in fig. 9, the management and control system includes: a second receiving unit 61 and a second transmitting unit 62; wherein the content of the first and second substances,
the second receiving unit 61 is configured to obtain, through the first OTN central office device, a request packet sent by the first client OTN device; the request message includes first address information of the first client OTN device and second address information of the first OTN local side device;
the second sending unit 62 is configured to send a response packet to the first client OTN device through the first OTN local side device, where the response packet includes 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.
In an optional embodiment of the present invention, the second receiving unit 61 is configured to obtain, in a unicast manner, a second request packet sent by the first OTN central office device; the second request message is generated by adding the second address information to the first request message after the first OTN local side device obtains the first request message sent by the first client OTN device; the first request message includes first address information of the first client OTN device.
In an optional embodiment of the present invention, as shown in fig. 10, the management and control system further includes an obtaining unit 63, configured to obtain subnet configuration information, where the subnet configuration information includes multiple sets of subnet information, corresponding OTN local side devices, and multiple sets of address information; the subnet information and the OTN local side equipment are in one-to-one correspondence; the plurality of address information are address information which corresponds to the subnet information and can be allocated to the client OTN equipment.
In an optional embodiment of the present invention, as shown in fig. 11, the management and control system further includes a determining unit 64, configured to, before the second sending unit 62 sends the response packet to the first client OTN device through the first OTN central office device, query the subnet configuration information based on the second address information in the request packet, determine subnet information corresponding to the first client OTN device, and select one address information from a plurality of address information corresponding to the subnet information as fourth address information.
In the embodiment of the invention, the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
In the embodiment of the present invention, the obtaining unit 63 and the determining unit 64 in the management and control system may be implemented by a CPU, a DSP, an MCU, or an FPGA in the management and control system in practical application; the second sending unit 62 and the second receiving unit 61 in the management and control system can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a standardized protocol, and the like) and a transceiver antenna in practical application.
It should be noted that: in the above embodiment, when the management and control system performs the address obtaining processing, only the division of each program module is exemplified, and in practical applications, the processing allocation may be completed by different program modules according to needs, 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 by the above embodiments and the address acquisition method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and will not be described herein again.
The embodiment of the invention also provides an OTN local side device, wherein the OTN local side device is a first OTN local side device; fig. 12 is a first schematic structural diagram of a component of an OTN local side device according to an embodiment of the present invention; as shown in fig. 12, the apparatus includes: a first communication unit 71 and a second communication unit 72; wherein the content of the first and second substances,
the first communication unit 71 is configured to obtain a request message sent by a first client OTN device; the OTN equipment is also used for forwarding a response message sent by the management and control system to the first client OTN equipment;
the second communication unit 72 is configured to forward the request packet to a management and control system; the system is also used for obtaining a response message sent by the management and control system;
the request message reaching the management and control system comprises first address information of the first client OTN equipment and second address information of the first OTN local side equipment; the response message includes 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.
In an alternative embodiment of the invention, as shown in fig. 13, the apparatus further comprises a processing unit 73;
the first communication unit 71 is configured to obtain a first request packet sent by the first client OTN device in a broadcast manner; the first request message comprises first address information of the first client OTN equipment;
the processing unit 73 is configured to add the second address information to the first request packet to generate a second request packet;
the second communication unit 72 is configured to send the second request packet to the management and control system in a unicast manner.
In an alternative embodiment of the present invention, as shown in fig. 14, the apparatus further includes an obtaining unit 74, configured to obtain the routing configuration information; the routing configuration information is used for indicating a transmission path of a message transmitted to the client OTN equipment by the management and control system;
the second communication unit 72 is configured to forward, based on the routing configuration information obtained by the obtaining unit 74, a request packet sent by the OTN device of the first client to the management and control system.
In the embodiment of the invention, the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
In the embodiment of the present invention, the processing unit 73 and the obtaining unit 74 in the OTN local side device may be implemented by a CPU, a DSP, an MCU, or an FPGA in the device in practical application; the first communication unit 71 and the second communication unit 72 in the OTN local side device can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiver antenna in practical application.
It should be noted that: in the above embodiment, when performing the address obtaining processing, the OTN central office device is exemplified by only the division of each program module, and in practical applications, the processing may be allocated to be completed by different program modules according to needs, that is, the internal structure of the OTN central office device is divided into different program modules, so as to complete all or part of the processing described above. In addition, the OTN local side device and the address obtaining method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The embodiment of the invention also provides a communication device, which can be specifically a client OTN device, a management and control system or an OTN local side device. Fig. 15 is a schematic diagram of a hardware structure of a communication device according to an embodiment of the present invention, as shown in fig. 15, the communication device 80 includes a memory 82, a processor 81, and a computer program stored in the memory 82 and capable of running on the processor 81, and when the processor 81 executes the computer program, the steps of the address obtaining method applied to an OTN device, a management and control system, or an OTN central office device according to an embodiment of the present invention are implemented.
It is to be understood that the communication device 80 also includes a communication interface 83. The various components of the communication device 80 may be coupled together by a bus system 84. It will be appreciated that the bus system 84 is used to enable communications among the components. The bus system 84 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 84 in fig. 15.
It will be appreciated that the memory 82 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 82 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 81, or implemented by the processor 81. The processor 81 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 81. The processor 81 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 81 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 82, and the processor 81 reads the information in the memory 82 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the communication Device 80 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, MCUs, microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory 82, comprising a computer program, which is executable by a processor 81 of a communication device 80 to perform the steps of the aforementioned method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the address obtaining method applied to the client OTN device, the management and control system, or the OTN local side device in the embodiment of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (28)

1. An address acquisition method, characterized in that the method comprises:
a first client Optical Transport Network (OTN) device sends a request message to a management and control system through a first OTN local side device; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN; the second address information is used for the management and control system to allocate fourth address information corresponding to a subnet where the first OTN local side device is located to the first client OTN device;
the first client OTN device obtains a response packet sent by the management and control system through the first OTN local side device, where the response packet includes 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.
2. The method according to claim 1, wherein the sending, by the first client OTN device, the request packet to the management and control system through the first OTN local side device includes:
the first client OTN equipment sends a first request message in a broadcasting mode; the first request message comprises first address information of the first client OTN equipment; the first request message is received by the first OTN local side device, and the second address information is added to the first request message to generate and send a second request message to the management and control system.
3. The method of claim 1, further comprising:
the first client OTN equipment is accessed to the first OTN local side equipment to generate an address routing table; the address routing table is used for indicating a transmission path of a message transmitted to the management and control system by the first client OTN device.
4. The method according to any of claims 1 to 3, wherein the request message and the response message are dynamic host configuration protocol, DHCP, messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
5. An address acquisition method, characterized in that the method comprises:
the management and control system obtains a request message sent by a first client OTN device through a first OTN local side device; the request message includes first address information of the first client OTN device and second address information of the first OTN local side device; the second address information is used for the management and control system to allocate fourth address information corresponding to a subnet where the first OTN local side device is located to the first client OTN device;
the management and control system sends a response message to the first client OTN device through the first OTN local side device, where the response message includes 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.
6. The method according to claim 5, wherein the acquiring, by the management and control system, the request packet sent by the first client OTN device through the first OTN local side device includes:
the management and control system obtains a second request message sent by the first OTN local side device in a unicast mode; the second request message is generated by adding the second address information to the first request message after the first OTN local side device obtains the first request message sent by the first client OTN device; the first request message includes first address information of the first client OTN device.
7. The method according to claim 5, wherein before the management and control system obtains the request packet sent by the first client OTN device through the first OTN central office device, the method further comprises:
the management and control system obtains subnet configuration information, wherein the subnet configuration information comprises a plurality of groups of subnet information, corresponding OTN local side equipment and a plurality of address information; the subnet information and the OTN local side equipment are in one-to-one correspondence; the plurality of address information are address information which corresponds to the subnet information and can be allocated to the client OTN equipment.
8. The method according to claim 7, wherein before the management and control system sends a response packet to the first client OTN device through the first OTN local side device, the method further includes:
the management and control system queries the subnet configuration information based on the second address information in the request message, determines subnet information corresponding to the first client OTN device, and selects one address information from a plurality of address information corresponding to the subnet information as fourth address information.
9. The method according to any of claims 5 to 8, characterized in that the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
10. An address acquisition method, characterized in that the method comprises:
the method comprises the steps that a first OTN local side device forwards a request message sent by a first client OTN device to a management and control system; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN; the second address information is used for the management and control system to allocate fourth address information corresponding to a subnet where the first OTN local side device is located to the first client OTN device;
the first OTN local side equipment forwards a response message sent to the first client OTN equipment by the management and control system; the response message includes 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.
11. The method according to claim 10, wherein the forwarding, by the first OTN local side device, the request packet sent by the first client OTN device to the management and control system includes:
the first OTN local side equipment acquires a first request message sent by the first client OTN equipment in a broadcasting mode; the first request message comprises first address information of the first client OTN equipment;
and the first OTN local side equipment adds the second address information in 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 mode.
12. The method according to claim 10 or 11, characterized in that the method further comprises:
the first OTN local side equipment acquires routing configuration information; the routing configuration information is used for indicating a transmission path of a message transmitted to the client OTN equipment by the management and control system;
the forwarding, by the first OTN local side device, the request packet sent by the first client OTN device to the management and control system includes: and the first OTN local side equipment forwards a request message sent to the management and control system by the first client OTN equipment based on the routing configuration information.
13. The method of claim 12, wherein the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
14. A client OTN device is a first client OTN device; characterized in that the device comprises: a first transmitting unit and a first receiving unit; wherein the content of the first and second substances,
the first sending unit is configured to send a request message to the management and control system through the first OTN local side device; the request message reaching the management and control system comprises first address information of the OTN equipment of the first client and second address information of the local side equipment of the first OTN; the second address information is used for the management and control system to allocate fourth address information corresponding to a subnet where the first OTN local side device is located to the first client OTN device;
the first receiving unit is configured to obtain, through the first OTN local side device, a response packet sent by the management and control system, where the response packet includes 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.
15. The apparatus according to claim 14, wherein the first sending unit is configured to send the first request packet in a broadcast manner; the first request message comprises first address information of the first client OTN equipment; the first request message is received by the first OTN local side device, and the second address information is added to the first request message to generate and send a second request message to the management and control system.
16. The device according to claim 14, wherein the device further comprises a generating unit, configured to access the first OTN local side device, and generate an address routing table; the address routing table is used for indicating a transmission path of a message transmitted to the management and control system by the first client OTN device.
17. The apparatus according to any of claims 14 to 16, wherein the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
18. A management and control system, characterized in that, the management and control system includes: a second receiving unit and a second transmitting unit; wherein the content of the first and second substances,
the second receiving unit is configured to obtain, through the first OTN central office device, a request packet sent by the first client OTN device; the request message includes first address information of the first client OTN device and second address information of the first OTN local side device; the second address information is used for the management and control system to allocate fourth address information corresponding to a subnet where the first OTN local side device is located to the first client OTN device;
the second sending unit is configured to send a response packet to the first client OTN device through the first OTN local side device, where the response packet includes 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.
19. The management and control system according to claim 18, wherein the second receiving unit is configured to obtain, in a unicast manner, a second request packet sent by the first OTN local side device; the second request message is generated by adding the second address information to the first request message after the first OTN local side device obtains the first request message sent by the first client OTN device; the first request message includes first address information of the first client OTN device.
20. The management and control system according to claim 18, wherein the management and control system further includes an obtaining unit, configured to obtain subnet configuration information, where the subnet configuration information includes multiple sets of subnet information, corresponding OTN local side devices, and multiple sets of address information; the subnet information and the OTN local side equipment are in one-to-one correspondence; the plurality of address information are address information which corresponds to the subnet information and can be allocated to the client OTN equipment.
21. The management and control system according to claim 20, wherein the management and control system further includes a determining unit, configured to query the subnet configuration information based on the second address information in the request message before the second sending unit sends a response packet to the first client OTN device through the first OTN central office device, determine subnet information corresponding to the first client OTN device, and select one address information from a plurality of address information corresponding to the subnet information as fourth address information.
22. 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;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
23. An OTN local side device, wherein the OTN local side device is a first OTN local side device; characterized in that the device comprises: a first communication unit and a second communication unit; wherein the content of the first and second substances,
the first communication unit is used for acquiring a request message sent by a first client OTN device; the OTN equipment is also used for forwarding a response message sent by the management and control system to the first client OTN equipment;
the second communication unit is used for forwarding the request message to a management and control system; the system is also used for obtaining a response message sent by the management and control system;
the request message reaching the management and control system comprises first address information of the first client OTN equipment and second address information of the first OTN local side equipment; the second address information is used for the management and control system to allocate fourth address information corresponding to a subnet where the first OTN local side device is located to the first client OTN device; the response message includes 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. The apparatus of claim 23, further comprising a processing unit;
the first communication unit is configured to obtain a first request packet sent by the first client OTN device in a broadcast manner; the first request message comprises first address information of the first client OTN equipment;
the processing unit is configured to add the second address information to the first request packet to generate a second request packet;
and the second communication unit is configured to send the second request packet to the management and control system in a unicast manner.
25. The apparatus according to claim 23 or 24, wherein the apparatus further comprises an obtaining unit configured to obtain routing configuration information; the routing configuration information is used for indicating a transmission path of a message transmitted to the client OTN equipment by the management and control system;
the second communication unit is configured to forward, based on the routing configuration information obtained by the obtaining unit, a request packet sent by the OTN device of the first client to the management and control system.
26. The apparatus of claim 25, wherein the request message and the response message are DHCP messages;
the DHCP message comprises a first specific field, a second specific field and a third specific field; the first specific field is used for adding the first address information and the fourth address information, the second specific field is used for adding the second address information, and the third specific field is used for adding the third address information.
27. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4; or the program, when executed by a processor, implements the steps of the method of any one of claims 5 to 9; alternatively, the program is adapted to carry out the steps of the method of any one of claims 10 to 13 when executed by a processor.
28. A communication device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 4 are implemented when the program is executed by the processor; or the processor, when executing the program, performs the steps of the method of any one of claims 5 to 9; alternatively, the processor implements the steps of the method of any one of claims 10 to 13 when executing the program.
CN201910894845.2A 2019-09-20 2019-09-20 Address acquisition method and related equipment Active CN112543386B (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN112543386A CN112543386A (en) 2021-03-23
CN112543386B true CN112543386B (en) 2022-04-15

Family

ID=74883674

Family Applications (1)

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

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 (3)

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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8295204B2 (en) * 2008-02-22 2012-10-23 Fujitsu Limited Method and system for dynamic assignment of network addresses in a communications network
US9813358B2 (en) * 2015-07-08 2017-11-07 Infinera Corporation Systems, methods, and apparatus for ARP mediation

Patent Citations (3)

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

Also Published As

Publication number Publication date
CN112543386A (en) 2021-03-23
WO2021052241A1 (en) 2021-03-25

Similar Documents

Publication Publication Date Title
EP2919444B1 (en) Method, relay device, and system for acquiring internet protocol address in network
US9380020B2 (en) Method for mobile node to dynamically acquire location identifier, and LISP network
US9781234B2 (en) Electronic device, network relay device, and non-transitory computer readable storage medium
US11343224B2 (en) Method for renewing IP address and apparatus
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
US8706908B2 (en) System, method and apparatus for media access control (MAC) address proxying
US8582449B2 (en) Apparatus and method for setting a default gateway address in a mobile communication system
EP1430695A2 (en) Addressing scheme for wireless mobile clients
KR20110060895A (en) A method and a gateway for providing multiple internet access
JP5907239B2 (en) Network relay device, method for setting operation mode of packet relay processing unit included in network relay device, and computer program
CN110365557B (en) Network interconnection method and device
CN101150517A (en) Packet transmission method and device
US20140313933A1 (en) Method, apparatus, and system for layer 2 interworking based on ipv6
US8909787B2 (en) Method, device, and system for allocating address in IP network
CN112449752A (en) IPv6 address configuration method and routing equipment
EP2675117A1 (en) Routing method and device for host in multi-homing site
US11929851B2 (en) Gateway selection method, device, and system
US9503418B2 (en) Method and apparatus for obtaining remote IP address
CN112543386B (en) Address acquisition method and related equipment
EP3048756B1 (en) Management method and apparatus for dynamic host configuration protocol server and relay
US7085836B1 (en) System and method for automatic private IP address selection
CN107172229B (en) Router configuration method and device
JP5845964B2 (en) Communication apparatus and program
US20030093561A1 (en) Allocating internet protocol (IP) addresses to nodes in communications networks which use integrated IS-IS
JP6406712B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant