WO2016082335A1 - Ip address allocation method, coaxial cable intermediate converter and system - Google Patents

Ip address allocation method, coaxial cable intermediate converter and system Download PDF

Info

Publication number
WO2016082335A1
WO2016082335A1 PCT/CN2015/072444 CN2015072444W WO2016082335A1 WO 2016082335 A1 WO2016082335 A1 WO 2016082335A1 CN 2015072444 W CN2015072444 W CN 2015072444W WO 2016082335 A1 WO2016082335 A1 WO 2016082335A1
Authority
WO
WIPO (PCT)
Prior art keywords
dhcp
address
discovery message
coaxial
client device
Prior art date
Application number
PCT/CN2015/072444
Other languages
French (fr)
Chinese (zh)
Inventor
邱海啸
吴晓东
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016082335A1 publication Critical patent/WO2016082335A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • the present invention relates to the field of communications, and in particular, to an IP address allocation method, a coaxial cable intermediate converter, and a system.
  • CMC - Coaxial Media Converter a DoCSIS EoC central office device, DoCSIS coaxial cable broadband access head, plays a role in the entire network, is the end of the PON network protocol, and is also DoCSIS The starting point of the network protocol, the OLT (Optical Line Terminal) PON network, and the CM (Cable Modem) DoCSIS network.
  • the product adopts the DoCSIS 3.0 technology standard and serves operators of HFC networks around the world, providing broadband access services to help them complete the transition from a single TV program service provider to an integrated service operator. Users provide rich and better value-added services.
  • DHCP Dynamic Host Configuration Protocol
  • CMC Coaxial Mediation
  • the embodiment of the invention provides an IP address allocation method, a coaxial cable intermediate converter and a system, and solves the problem of unified allocation management of IP addresses of CMs and CPEs under the same service.
  • An IP address allocation method includes:
  • the coaxial cable intermediate converter is configured with an IP port, which is bound with a coaxial modem and a client device of the same service, and is configured with a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server. ;
  • IP port which is bound with a coaxial modem and a client device of the same service, and is configured with a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server.
  • DHCP coaxial modem dynamic host configuration protocol
  • the coaxial cable intermediate converter receives the DHCP discovery message sent by the coaxial modem under the IP port, and sends the DHCP discovery message to the DHCP discovery message when the DHCP discovery message is initiated by the coaxial modem.
  • the coaxial modem DHCP server sends the DHCP discovery message to the client device DHCP server when the DHCP discovery message is initiated by the user equipment.
  • the IP port is further configured with a coaxial modem proxy IP address and a client device proxy IP address;
  • Sending, by the coaxial cable intermediate converter, the DHCP discovery message to the coaxial modem DHCP server includes:
  • the coaxial cable intermediate converter determines an IP port where the coaxial modem that sends the DHCP discovery message is located, and selects a corresponding client device proxy IP address under the IP port, and the proxy device IP address is used by the client device
  • the DHCP discovery packet is sent to the corresponding client device DHCP server.
  • the coaxial cable intermediate converter is configured with an IP port, which is bound with a coaxial modem and a client device of the same service, and is configured with a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server. ;
  • IP port which is bound with a coaxial modem and a client device of the same service, and is configured with a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server.
  • DHCP coaxial modem dynamic host configuration protocol
  • the user terminal device DHCP server allocates an IP address to the user equipment according to the received DHCP discovery message, including:
  • the coaxial port and the client device of the same service are bound to the IP port, and the coaxial modem DHCP server and the client device DHCP server are configured;
  • the receiving module is configured to receive a DHCP discovery message sent by the coaxial modem under the IP port;
  • the processing module is configured to send the DHCP discovery message to the client device DHCP server in the following manner:
  • the processing module is configured to select a corresponding client device proxy IP address in the following manner: selecting a first one of the plurality of client device proxy IP addresses or proxying from the plurality of client device devices in a rotating manner Select one of the IP addresses.
  • the coaxial cable intermediate converter is configured to receive a DHCP discovery message sent by the coaxial modem under the IP port, and when the DHCP discovery message is initiated by the coaxial modem, the DHCP discovery message is sent Sending to the coaxial modem DHCP server; when the DHCP discovery message is initiated by the user equipment, sending the DHCP discovery message to the client device DHCP server;
  • the embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
  • FIG. 2 is a schematic structural diagram of a coaxial cable intermediate converter according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic flowchart of an IP address allocation method according to Embodiment 2 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the IP address distribution system includes a coaxial cable intermediate converter (CMC) and a DHCP server; wherein the DHCP server includes a coaxial modem (CM) DHCP server and a customer premises equipment (CPE) DHCP.
  • the server is configured with an IP port (that is, an IP Bundle).
  • the CM and CPE of the same service are bound to the IP port.
  • the IP port is configured with a CM DHCP server for CM IP address allocation and CPE IP address allocation, respectively.
  • the CPE DHCP server in this embodiment, the IP address network segment can be used to determine whether it is the same service.
  • the IP address system also includes a CM that is connected to the CMC and a CPE that is connected to each CM.
  • the CPE in this embodiment may be an STB (Set Top Box), a Host (Host), an IAD (Integrated Access Device), or the like.
  • the CPE DHCP server is configured to allocate an IP address to the CPE that initiates the DHCP Discovery message according to the received DHCP Discovery message.
  • the CMC obtains the MAC address of the CM that sends the DHCP discovery packet, and extracts the source MAC address from the DHCP discovery packet, and compares the MAC address of the CM with the extracted source MAC address. If yes, the DHCP discovery packet is If the CM initiates; if not, it determines that the DHCP discovery message is initiated by the CPE under the CM.
  • the DHCP discovery message includes an initiator field for characterizing the initiator; the CMC acquires an initiator field of the received DHCP discovery message, and determines, according to the initiator field, whether the initiator is a CM.
  • the initiator field in this embodiment may specifically be an Option 60 field of a DHCP discovery packet, where the DHCP Option 60 field is set as follows:
  • the initiator of the DHCP discovery message can be determined as Cable-modem (ie CM);
  • the DHCP discovery packet in this embodiment further includes an Option 43 field, where the Option 43 field includes: VSI (Vendor Specific Information), which is used to exchange vendor specific information between the DHCP server and the client, and when the DHCP server receives the request Option 43 information.
  • Option 43 is carried in the reply packet to assign the vendor-specified information to the DHCP client.
  • the DHCP message initiated by the CPE eMTA/PC/stb, etc.
  • the CM as long as it conforms to the CableLabs standard, it must carry Option 60 and Option 43 at the same time.
  • the CM DHCP server After receiving the DHCP discovery packet, the CM DHCP server extracts the MAC address of the CM that sends the DHCP discovery packet from the DHCP discovery packet, and matches the CM to the corresponding IP address from the address pool according to the MAC address.
  • the CPE DHCP server After receiving the DHCP Discovery message, the CPE DHCP server is The process of assigning an IP address to a CPE can be:
  • the coaxial cable intermediate converter (CMC) in this embodiment includes an IP port, a receiving module, and a processing module: the coaxial port and the client device with the same service are bound to the IP port, and Configured with a coaxial modem DHCP server and a client device DHCP server;
  • the receiving module is configured to receive a DHCP discovery packet sent by the CM under the IP port;
  • the processing module is configured to: when the DHCP discovery message received by the receiving module is initiated by the CM, send the DHCP discovery message to the coaxial modem DHCP server; when the DHCP discovery message is initiated by the CPE, the DHCP discovery message is sent. Send to the client device DHCP server.
  • the DHCP discovery packet in this embodiment includes the source MAC address, and the source MAC address is the MAC address of the initiator of the DHCP discovery packet.
  • the processing module determines whether the source MAC address in the DHCP discovery packet is initiated by the CM.
  • the module obtains the MAC address of the CM that sends the DHCP discovery packet, and extracts the source MAC address from the DHCP discovery packet, and compares the MAC address of the CM with the extracted source MAC address. If yes, the DHCP discovery packet is The CM initiates; if not, it determines that the DHCP discovery message is initiated by the CPE under the CM.
  • the DHCP discovery message includes an initiator field for characterizing the initiator; the processing module extracts an initiator field from the DHCP discovery message, and determines, according to the initiator field, whether the initiator is initiated by the CM.
  • the IP port in this embodiment is further configured with a coaxial modem proxy IP address and a client device proxy IP address;
  • the processing module sends the DHCP discovery message to the coaxial modem DHCP server, including:
  • the processing module selects a corresponding coaxial modem proxy IP address, and sends the DHCP discovery message to the coaxial modem DHCP server through the coaxial modem proxy IP address;
  • the processing module sends the DHCP discovery packet to the client device DHCP server, including:
  • the IP port in this embodiment is configured with multiple client device proxy IP addresses
  • the processing module selects the corresponding client device proxy IP address, select the first one of the plurality of client device proxy IP addresses or select one of the plurality of client device proxy IP addresses in a round-robin manner.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 3 includes:
  • Step 201 Configure an IP port on the CMC, and bind the CM and CPE of the same service to the IP port.
  • Step 202 Configure a CM DHCP server and a CPE DHCP server for the CM IP address allocation and CPE IP address allocation for the IP port respectively.
  • Step 203 The CMC receives the DHCP discovery packet sent by the CM under the IP port.
  • Step 205 The CMC sends the DHCP discovery packet to the CM DHCP server.
  • Step 207 The DHCP discovery packet is initiated by the CPE, and the DHCP discovery packet is sent to the CPE DHCP server.
  • DHCP servers are used to allocate IP addresses to the CM and the CPE, which can share the load and is more conducive to resource utilization.
  • the same DHCP can also be used to assign IP addresses to CMs and CPEs.
  • the CMC determines whether the DHCP discovery packet is initiated by the CM, and may adopt at least one of the following two methods:
  • the DHCP discovery packet contains the source MAC address (that is, the medium access control address), and the source MAC address is the MAC address of the initiator of the DHCP discovery packet.
  • the CMC obtains the MAC address of the CM that sends the DHCP discovery packet, and extracts the source MAC address from the DHCP discovery packet, and compares the MAC address of the CM with the extracted source MAC address. If yes, the DHCP discovery packet is The CM initiates; if not, it determines that the DHCP discovery message is initiated by the CPE under the CM.
  • the CMC can also insert the MAC address of the obtained CM into the DHCP discovery message, so that the CM DHCP server can perform the autonomous judgment.
  • the Option 82 field of the DHCP Discovery message can be inserted, and the DHCP Relay Agent Information Option (82): insert the MAC address of the CM in the sub-option 2:Remote ID; the CM DHCP server can be based on whether the MAC address in the Remote ID is It is equal to the original MAC in the DHCP discovery message to determine whether the application is from the CM or from the CPE under the CM (such as stb/PC/eMTA, etc.).
  • the first three of the OP60 strings are STBs, and the initiator of the DHCP discovery message is determined to be stb.
  • the first four of the OP60 strings are MSFT, and the initiator of the DHCP discovery message is determined to be a PC.
  • the DHCP discovery packet in this embodiment further includes an Option 43 field, where the Option 43 field includes: VSI (Vendor Specific Information), which is used to exchange vendor specific information between the DHCP server and the client, and when the DHCP server receives the request Option 43 information.
  • Option 43 is carried in the reply packet, which is DHCP.
  • the client assigns information specified by the vendor.
  • the DHCP message initiated by the CPE eMTA/PC/stb, etc.
  • the CM as long as it conforms to the CableLabs standard, it must carry Option 60 and Option 43 at the same time.
  • the CM DHCP server After receiving the DHCP discovery packet, the CM DHCP server extracts the MAC address of the CM that sends the DHCP discovery packet from the DHCP discovery packet, and matches the CM to the corresponding IP address from the address pool according to the MAC address. After receiving a DHCP Discovery message, the CPE DHCP server assigns an IP address to the CPE as follows:
  • the OLT is connected to the OLT.
  • the OLT only needs to support VLAN Layer 2 transparent transmission.
  • the process of assigning IP addresses to CMs and CPEs includes:

Landscapes

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

Abstract

Provided are an IP address allocation method, a coaxial cable intermediate converter and a system. The method comprises: configuring an IP port on a CMC, binding a CM and a CPE which have an identical service under the IP port, and configuring for the IP port a CM DHCP server and a CPE DHCP server which are used for CM IP address allocation and CPE IP address allocation respectively; the CMC receiving a DHCP discovery packet sent from the CM under the IP port, judging whether the DHCP discovery packet is initiated by the CM, and if so, sending the DHCP discovery packet to the CM DHCP server, and the CM DHCP server allocating an IP address to the coaxial modem according to the received DHCP discovery packet; and if not, the DHCP discovery packet being initiated by the CPE, sending the DHCP discovery packet to the CPE DHCP server, and the CPE DHCP server allocating an IP address to the CPE according to the received DHCP discovery packet.

Description

IP地址分配方法、同轴电缆中间转换器及系统IP address allocation method, coaxial cable intermediate converter and system 技术领域Technical field
本发明涉及通信领域,具体涉及一种IP地址分配方法、同轴电缆中间转换器及系统。The present invention relates to the field of communications, and in particular, to an IP address allocation method, a coaxial cable intermediate converter, and a system.
背景技术Background technique
PON(Passive Optical Network:无源光纤网络)+DoCSIS(Data Over Cable Service Interface Specification:有线传输数据业务接口规范)EoC(Ethernet Over Coax:以太数据通过同轴电缆传输)二级组网技术专门针对当前国内广电双向网改和国外MSO CMTS(Cable Modem Termination System:有线调制解调器局端系统)网络升级改造需求,提出由HFC(Hybrid Fiber-Coaxial:混合光纤同轴电缆网)网络向FTTx(Fiber-to-the-x:光纤接入)演进的整体解决方案。该解决方案基于PON网络和DoCSIS网络结合,既可以保护现有CMTS网络投资,同时又可以符合光进铜退、光纤下移的网络发展趋势。CMC——同轴媒介转换器,是一款DoCSIS EoC局端设备,DoCSIS同轴电缆宽带接入头端,在整个网络中起到承上启下的作用,既是PON网络协议的终结点,同时又是DoCSIS网络协议的起点,上联OLT(Optical Line Terminal:光线路终端)PON网络,下联CM(Cable Modem:同轴调制解调器)DoCSIS网络。该产品采用DoCSIS 3.0技术标准,服务于全球拥有HFC网络的运营商,为其提供宽带接入服务,协助其完成从单一的电视节目服务提供者向综合服务运营商的角色转变,为广大的覆盖用户提供丰富、体验更好的增值服务。PON (Passive Optical Network) + DoCSIS (Data Over Cable Service Interface Specification) EoC (Ethernet Over Coax: Ethernet data transmission over coaxial cable) secondary networking technology specifically for the current Domestic radio and television two-way network modification and foreign MSO CMTS (Cable Modem Termination System) network upgrade requirements, proposed by HFC (Hybrid Fiber-Coaxial: Hybrid Fiber Coaxial Network) network to FTTx (Fiber-to- The-x: fiber access) evolution of the overall solution. The solution is based on the combination of PON network and DoCSIS network, which can protect the existing CMTS network investment, and at the same time, it can meet the network development trend of optical access and optical fiber migration. CMC - Coaxial Media Converter, a DoCSIS EoC central office device, DoCSIS coaxial cable broadband access head, plays a role in the entire network, is the end of the PON network protocol, and is also DoCSIS The starting point of the network protocol, the OLT (Optical Line Terminal) PON network, and the CM (Cable Modem) DoCSIS network. The product adopts the DoCSIS 3.0 technology standard and serves operators of HFC networks around the world, providing broadband access services to help them complete the transition from a single TV program service provider to an integrated service operator. Users provide rich and better value-added services.
传统DOCSIS系统中DHCP(Dynamic Host Configuration Protocol:动态主机配置协议)Server地址分配策略有多种,在C-DOCSIS(China Data Over Cable Service Interface Specification:中国有线传输数据业务接口规范)系统中,DHCP Relay可以在OLT上实现,也可以在CMC(Coaxial Mediation  Converter:同轴电缆中间转换器)上实现,但如果要实现由若干台DHCP Server对同种业务下的CM和CPE(Customer Premise Equipment:用户端设备)进行统一分配和管理,则需要一个有效的分配IP地址的策略。There are many DHCP (Dynamic Host Configuration Protocol) Server address allocation strategies in the traditional DOCSIS system. In the C-DOCSIS (China Data Over Cable Service Interface Specification) system, the DHCP Relay Can be implemented on the OLT or in CMC (Coaxial Mediation) Converter: Coaxial cable intermediate converter), but if you want to implement a unified allocation and management of CM and CPE (Customer Premise Equipment) in the same service by several DHCP servers, you need an effective one. The policy for assigning an IP address.
发明内容Summary of the invention
本发明实施例提供一种IP地址分配方法、同轴电缆中间转换器及系统,解决对同种业务下的CM和CPE的IP地址进行统一分配管理的问题。The embodiment of the invention provides an IP address allocation method, a coaxial cable intermediate converter and a system, and solves the problem of unified allocation management of IP addresses of CMs and CPEs under the same service.
一种IP地址分配方法,包括:An IP address allocation method includes:
同轴电缆中间转换器上配置有IP端口,该IP端口下绑定有相同业务的同轴调制解调器和用户端设备,并配置有同轴调制解调器动态主机配置协议(DHCP)服务器和用户端设备DHCP服务器;The coaxial cable intermediate converter is configured with an IP port, which is bound with a coaxial modem and a client device of the same service, and is configured with a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server. ;
同轴电缆中间转换器接收所述IP端口下的同轴调制解调器发送的DHCP发现报文,当所述DHCP发现报文是该同轴调制解调器发起的时,将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;当所述DHCP发现报文为用户端设备发起的时,将所述DHCP发现报文发给所述用户端设备DHCP服务器。The coaxial cable intermediate converter receives the DHCP discovery message sent by the coaxial modem under the IP port, and sends the DHCP discovery message to the DHCP discovery message when the DHCP discovery message is initiated by the coaxial modem. The coaxial modem DHCP server sends the DHCP discovery message to the client device DHCP server when the DHCP discovery message is initiated by the user equipment.
可选地,,所述DHCP发现报文包含源介质访问控制地址,所述源介质访问控制地址为所述DHCP发现报文发起者的介质访问控制地址;所述同轴电缆中间转换器根据所述DHCP发现报文中的源介质访问控制地址判断所述DHCP发现报文是否是所述同轴调制解调器发起的;Optionally, the DHCP discovery message includes a source media access control address, where the source media access control address is a media access control address of the DHCP discovery message initiator; Determining, by the source medium access control address in the DHCP discovery packet, whether the DHCP discovery message is initiated by the coaxial modem;
或所述DHCP发现报文包含用于表征发起者的发起者字段;所述同轴电缆中间转换器从所述DHCP发现报文中提取发起者字段,根据该发起者字段判断所述DHCP发现报文的发起者是否是所述同轴调制解调器。Or the DHCP discovery message includes an initiator field for characterizing the initiator; the coaxial cable intermediate converter extracts an initiator field from the DHCP discovery message, and determines the DHCP discovery report according to the initiator field. Whether the originator of the text is the coaxial modem.
可选地,所述IP端口还配置有同轴调制解调器代理IP地址和用户端设备代理IP地址;Optionally, the IP port is further configured with a coaxial modem proxy IP address and a client device proxy IP address;
所述同轴电缆中间转换器将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器包括: Sending, by the coaxial cable intermediate converter, the DHCP discovery message to the coaxial modem DHCP server includes:
所述同轴电缆中间转换器选择对应的同轴调制解调器代理IP地址,通过该同轴调制解调器代理IP地址将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;The coaxial cable intermediate converter selects a corresponding coaxial modem proxy IP address, and sends the DHCP discovery message to the coaxial modem DHCP server through the coaxial modem proxy IP address;
所述同轴电缆中间转换器将所述DHCP发现报文发给所述用户端设备DHCP服务器包括:Sending, by the coaxial cable intermediate converter, the DHCP discovery message to the client device DHCP server includes:
所述同轴电缆中间转换器确定发送所述DHCP发现报文的同轴调制解调器所在的IP端口,在该IP端口下选择对应的用户端设备代理IP地址,通过该用户端设备代理IP地址将所述DHCP发现报文发送给对应的用户端设备DHCP服务器。The coaxial cable intermediate converter determines an IP port where the coaxial modem that sends the DHCP discovery message is located, and selects a corresponding client device proxy IP address under the IP port, and the proxy device IP address is used by the client device The DHCP discovery packet is sent to the corresponding client device DHCP server.
可选地,所述IP端口配置有多个用户端设备代理IP地址;Optionally, the IP port is configured with multiple client device proxy IP addresses;
所述同轴电缆中间转换器选择对应的用户端设备代理IP地址时,选择所述多个用户端设备代理IP地址中的第一个或按照轮流的方式从所述多个用户端设备代理IP地址中选择一个。When the coaxial cable intermediate converter selects a corresponding client device proxy IP address, select the first one of the plurality of client device proxy IP addresses or proxy IP from the plurality of client devices in a rotating manner Select one of the addresses.
一种IP地址分配方法,包括:An IP address allocation method includes:
同轴电缆中间转换器上配置有IP端口,该IP端口下绑定有相同业务的同轴调制解调器和用户端设备,并配置有同轴调制解调器动态主机配置协议(DHCP)服务器和用户端设备DHCP服务器;The coaxial cable intermediate converter is configured with an IP port, which is bound with a coaxial modem and a client device of the same service, and is configured with a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server. ;
同轴电缆中间转换器接收所述IP端口下的同轴调制解调器发送的DHCP发现报文,当所述DHCP发现报文是该同轴调制解调器发起的时,将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器,所述同轴调制解调器DHCP服务器根据收到的DHCP发现报文为该同轴调制解调器分配IP地址;当所述DHCP发现报文为用户端设备发起的时,将所述DHCP发现报文发给所述用户端设备DHCP服务器,所述用户端设备DHCP服务器根据接收到的DHCP发现报文为所述用户端设备分配IP地址。The coaxial cable intermediate converter receives the DHCP discovery message sent by the coaxial modem under the IP port, and sends the DHCP discovery message to the DHCP discovery message when the DHCP discovery message is initiated by the coaxial modem. a coaxial modem DHCP server, the coaxial modem DHCP server assigns an IP address to the coaxial modem according to the received DHCP discovery message; and when the DHCP discovery message is initiated by the user equipment, the DHCP discovery The packet is sent to the client device DHCP server, and the client device DHCP server allocates an IP address to the client device according to the received DHCP discovery message.
可选地,所述同轴调制解调器DHCP服务器根据收到的DHCP发现报文为同轴调制解调器分配IP地址包括:Optionally, the coaxial modem DHCP server allocates an IP address to the coaxial modem according to the received DHCP discovery message, including:
所述同轴调制解调器DHCP服务器获取所述同轴调制解调器的介质访问控制地址,根据所述介质访问控制地址为所述同轴调制解调器分配IP地址; The coaxial modem DHCP server acquires a medium access control address of the coaxial modem, and allocates an IP address to the coaxial modem according to the medium access control address;
所述用户端设备DHCP服务器根据接收到的DHCP发现报文为用户端设备分配IP地址包括:The user terminal device DHCP server allocates an IP address to the user equipment according to the received DHCP discovery message, including:
所述用户端设备DHCP服务器根据所述用户端设备所属的同轴调制解调器为所述用户端设备分配IP地址。The client device DHCP server allocates an IP address to the client device according to the coaxial modem to which the client device belongs.
一种同轴电缆中间转换器,包括IP端口、接收模块和处理模块:A coaxial cable intermediate converter comprising an IP port, a receiving module and a processing module:
所述IP端口下绑定有相同业务的同轴调制解调器和用户端设备,并配置有同轴调制解调器DHCP服务器和用户端设备DHCP服务器;The coaxial port and the client device of the same service are bound to the IP port, and the coaxial modem DHCP server and the client device DHCP server are configured;
所述接收模块设置为接收所述IP端口下的同轴调制解调器发送的DHCP发现报文;The receiving module is configured to receive a DHCP discovery message sent by the coaxial modem under the IP port;
所述处理模块设置为当所述DHCP发现报文是该同轴调制解调器发起的时,将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;当所述DHCP发现报文为用户端设备发起的时,将所述DHCP发现报文发给所述用户端设备DHCP服务器。The processing module is configured to send the DHCP discovery message to the coaxial modem DHCP server when the DHCP discovery message is initiated by the coaxial modem; and when the DHCP discovery message is a user equipment When the device initiates, the DHCP discovery packet is sent to the client device DHCP server.
可选地,所述DHCP发现报文包含源介质访问控制地址,所述源介质访问控制地址为所述DHCP发现报文发起者的介质访问控制地址;所述处理模块还设置为根据所述DHCP发现报文中的源介质访问控制地址判断所述DHCP发现报文是否是所述同轴调制解调器发起的;Optionally, the DHCP discovery message includes a source media access control address, where the source media access control address is a media access control address of the DHCP discovery message initiator; and the processing module is further configured to be according to the DHCP The source medium access control address in the discovery packet determines whether the DHCP discovery message is initiated by the coaxial modem;
或所述DHCP发现报文包含用于表征发起者的发起者字段;所述处理模块还设置为从所述DHCP发现报文中提取发起者字段,根据该发起者字段判断所述DHCP发现报文的发起者是否是所述同轴调制解调器。Or the DHCP discovery message includes an initiator field for characterizing the initiator; the processing module is further configured to: extract an initiator field from the DHCP discovery message, and determine the DHCP discovery message according to the initiator field. Whether the initiator is the coaxial modem.
可选地,所述IP端口还配置有同轴调制解调器代理IP地址和用户端设备代理IP地址;Optionally, the IP port is further configured with a coaxial modem proxy IP address and a client device proxy IP address;
所述处理模块是设置为以如下方式将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器:The processing module is configured to send the DHCP discovery message to the coaxial modem DHCP server in the following manner:
选择对应的同轴调制解调器代理IP地址,通过该同轴调制解调器代理IP地址将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;Selecting a corresponding coaxial modem proxy IP address, and sending the DHCP discover message to the coaxial modem DHCP server through the coaxial modem proxy IP address;
所述处理模块是设置为以如下方式将所述DHCP发现报文发给所述用户端设备DHCP服务器: The processing module is configured to send the DHCP discovery message to the client device DHCP server in the following manner:
确定发送所述DHCP发现报文的同轴调制解调器所在的IP端口,在该IP端口下选择对应的用户端设备代理IP地址,通过该用户端设备代理IP地址将所述DHCP发现报文发送给对应的用户端设备DHCP服务器。Determining an IP port of the coaxial modem that sends the DHCP discovery message, selecting a corresponding client device proxy IP address under the IP port, and sending the DHCP discovery packet to the corresponding device through the proxy device IP address. Client device DHCP server.
可选地,所述IP端口配置有多个用户端设备代理IP地址;Optionally, the IP port is configured with multiple client device proxy IP addresses;
所述处理模块是设置为以如下方式选择对应的用户端设备代理IP地址:选择所述多个用户端设备代理IP地址中的第一个或按照轮流的方式从所述多个用户端设备代理IP地址中选择一个。The processing module is configured to select a corresponding client device proxy IP address in the following manner: selecting a first one of the plurality of client device proxy IP addresses or proxying from the plurality of client device devices in a rotating manner Select one of the IP addresses.
一种IP地址分配系统,包括同轴电缆中间转换器、同轴调制解调器DHCP服务器和用户端设备DHCP服务器;所述同轴电缆中间转换器上配置有IP端口,相同业务的同轴调制解调器和用户端设备绑定在该IP端口下,该IP端口配置有同轴调制解调器DHCP服务器和用户端设备DHCP服务器;An IP address distribution system includes a coaxial cable intermediate converter, a coaxial modem DHCP server, and a client device DHCP server; the coaxial cable intermediate converter is configured with an IP port, a coaxial modem and a client for the same service The device is bound to the IP port, and the IP port is configured with a coaxial modem DHCP server and a client device DHCP server;
所述同轴电缆中间转换器设置为接收所述IP端口下的同轴调制解调器发送的DHCP发现报文,在所述DHCP发现报文是该同轴调制解调器发起的时,将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;当所述DHCP发现报文为用户端设备发起的时,将所述DHCP发现报文发给所述用户端设备DHCP服务器;The coaxial cable intermediate converter is configured to receive a DHCP discovery message sent by the coaxial modem under the IP port, and when the DHCP discovery message is initiated by the coaxial modem, the DHCP discovery message is sent Sending to the coaxial modem DHCP server; when the DHCP discovery message is initiated by the user equipment, sending the DHCP discovery message to the client device DHCP server;
所述同轴调制解调器DHCP服务器设置为根据收到的DHCP发现报文为该同轴调制解调器分配IP地址;The coaxial modem DHCP server is configured to allocate an IP address to the coaxial modem according to the received DHCP discovery message;
所述用户端设备DHCP服务器设置为根据接收到的DHCP发现报文为所述用户端设备分配IP地址。The client device DHCP server is configured to allocate an IP address to the client device according to the received DHCP discovery message.
可选地,所述同轴调制解调器DHCP服务器是设置为以如下方式根据收到的DHCP发现报文为同轴调制解调器分配IP地址:Optionally, the coaxial modem DHCP server is configured to assign an IP address to the coaxial modem according to the received DHCP discovery message in the following manner:
获取所述同轴调制解调器的介质访问控制地址,根据所述介质访问控制地址为所述同轴调制解调器分配IP地址;Obtaining a media access control address of the coaxial modem, and assigning an IP address to the coaxial modem according to the media access control address;
所述用户端设备DHCP服务器是设置为以如下方式根据接收到的DHCP发现报文为用户端设备分配IP地址:The client device DHCP server is configured to allocate an IP address to the user equipment according to the received DHCP discovery message in the following manner:
根据所述用户端设备所属的同轴调制解调器为所述用户端设备分配IP地址。 Assigning an IP address to the client device according to the coaxial modem to which the client device belongs.
本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现上面所述的方法。The embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
通过本发明实施例提供的方案实现了对CMC下挂的相同业务的CM和CPE的IP地址进行统一分配和管理。The solution provided by the embodiment of the present invention implements unified allocation and management of IP addresses of CMs and CPEs of the same service that are connected to the CMC.
附图概述BRIEF abstract
图1为本发明实施例一提供的IP地址分配系统结构示意图;1 is a schematic structural diagram of an IP address allocation system according to Embodiment 1 of the present invention;
图2为本发明实施例一提供的同轴电缆中间转换器结构示意图;2 is a schematic structural diagram of a coaxial cable intermediate converter according to Embodiment 1 of the present invention;
图3为本发明实施例二提供的IP地址分配方法流程示意图;3 is a schematic flowchart of an IP address allocation method according to Embodiment 2 of the present invention;
图4为本发明实施例三提供的IP地址分配方法流程示意图。FIG. 4 is a schematic flowchart of an IP address allocation method according to Embodiment 3 of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面结合附图对本发明的实施例作详细说明。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
请参见图1所示,本实施例提供的IP地址分配系统包括同轴电缆中间转换器(CMC)和DHCP服务器;其中DHCP服务器包括同轴调制解调器(CM)DHCP服务器和用户端设备(CPE)DHCP服务器;CMC上配置有IP端口(即IP Bundle),相同业务的CM和CPE绑定在该IP端口下,该IP端口配置有分别用于CM IP地址分配和CPE IP地址分配的CM DHCP服务器和CPE DHCP服务器;本实施例可通过IP地址网段来判断是否为相同业务。IP地址系统还包括下挂在CMC上的CM以及下挂在各CM下的CPE,本实施例中的CPE可以是STB(机顶盒)、Host(主机)、IAD(综合接入设备)等等。Referring to FIG. 1, the IP address distribution system provided in this embodiment includes a coaxial cable intermediate converter (CMC) and a DHCP server; wherein the DHCP server includes a coaxial modem (CM) DHCP server and a customer premises equipment (CPE) DHCP. The server is configured with an IP port (that is, an IP Bundle). The CM and CPE of the same service are bound to the IP port. The IP port is configured with a CM DHCP server for CM IP address allocation and CPE IP address allocation, respectively. The CPE DHCP server; in this embodiment, the IP address network segment can be used to determine whether it is the same service. The IP address system also includes a CM that is connected to the CMC and a CPE that is connected to each CM. The CPE in this embodiment may be an STB (Set Top Box), a Host (Host), an IAD (Integrated Access Device), or the like.
CMC设置为接收其配置的IP端口下的CM发送的DHCP发现报文(具体可以是DHCP DISCOVER报文或DHCP REQUEST报文),判断该DHCP发现报文是否是发送该DHCP发现报文的CM发起的,如是,将DHCP发现报文发给对应的CM DHCP服务器;如不是,则表明该DHCP发现报文为该 CM下的CPE发起的,将该DHCP发现报文发给对应的CPE DHCP服务器;The CMC is configured to receive the DHCP discovery packet (which may be a DHCP DISCOVER packet or a DHCP REQUEST packet) sent by the CM on the configured IP port, and determine whether the DHCP discovery packet is the CM that sends the DHCP discovery packet. If yes, the DHCP discovery packet is sent to the corresponding CM DHCP server; if not, the DHCP discovery packet is the The CPE initiated by the CPE sends the DHCP discovery packet to the corresponding CPE DHCP server.
CM DHCP服务器设置为根据收到的DHCP发现报文为发起DHCP发现报文的CM分配IP地址;The CM DHCP server is configured to allocate an IP address to the CM that initiates the DHCP discovery message according to the received DHCP discovery message.
CPE DHCP服务器设置为根据接收到的DHCP发现报文为发起DHCP发现报文的CPE分配IP地址。The CPE DHCP server is configured to allocate an IP address to the CPE that initiates the DHCP Discovery message according to the received DHCP Discovery message.
本实施例中采用不同的DHCP服务器为CM和CPE分配IP地址,可以分担负载,更利于资源的利用。当然在一些应用场景中也可采用相同的DHCP为CM和CPE分配IP地址。In this embodiment, different DHCP servers are used to allocate IP addresses to the CM and the CPE, which can share the load and is more conducive to resource utilization. Of course, in some application scenarios, the same DHCP can also be used to assign IP addresses to CMs and CPEs.
本实施例中,CMC判断DHCP发现报文是否是CM发起的可以采用以下两种方式中的至少一种:In this embodiment, the CMC determines whether the DHCP discovery packet is initiated by the CM, and may adopt at least one of the following two methods:
方式一:DHCP发现报文包含源介质访问控制(MAC)地址,该源MAC地址为DHCP发现报文发起者的MAC地址;Manner 1: The DHCP discovery packet includes a source media access control (MAC) address, where the source MAC address is the MAC address of the initiator of the DHCP discovery packet.
CMC获取发送DHCP发现报文的CM的MAC地址,并从该DHCP发现报文中提取源MAC地址,比较CM的MAC地址与提取出的源MAC地址是否相同,如是,则表明DHCP发现报文是CM发起的;如否,判定DHCP发现报文是CM下的CPE发起的。The CMC obtains the MAC address of the CM that sends the DHCP discovery packet, and extracts the source MAC address from the DHCP discovery packet, and compares the MAC address of the CM with the extracted source MAC address. If yes, the DHCP discovery packet is If the CM initiates; if not, it determines that the DHCP discovery message is initiated by the CPE under the CM.
本实施例中,CMC在判断完成之后,或在判断之前,还可将获取的CM的MAC地址插入DHCP发现报文,以供CM DHCP服务器可以进行自主的判断。可选地,可插入DHCP发现报文的Option 82字段,DHCP Relay Agent Information Option(82):在sub-option 2:Remote ID中插入CM的MAC地址;CM DHCP服务器可根据Remote ID中的MAC地址是否等于该DHCP发现报文中原MAC来判断本次申请来自于CM还是来自于CM下面的CPE(如stb/PC/eMTA等)。In this embodiment, after the judgment is completed, or before the judgment, the CMC can also insert the MAC address of the obtained CM into the DHCP discovery message, so that the CM DHCP server can perform the autonomous judgment. Optionally, the Option 82 field of the DHCP Discovery message can be inserted, and the DHCP Relay Agent Information Option (82): insert the MAC address of the CM in the sub-option 2:Remote ID; the CM DHCP server can be based on the MAC address in the Remote ID. Whether it is equal to the original MAC in the DHCP discovery message to determine whether the application is from the CM or from the CPE under the CM (such as stb/PC/eMTA, etc.).
方式二:或DHCP发现报文包含用于表征发起者的发起者字段;CMC获取接收到的DHCP发现报文的发起者字段,根据该发起者字段判断发起者是否是CM。本实施例中的发起者字段具体可是DHCP发现报文的Option 60字段,其中,DHCP Option 60字段的设置如下:Manner 2: The DHCP discovery message includes an initiator field for characterizing the initiator; the CMC acquires an initiator field of the received DHCP discovery message, and determines, according to the initiator field, whether the initiator is a CM. The initiator field in this embodiment may specifically be an Option 60 field of a DHCP discovery packet, where the DHCP Option 60 field is set as follows:
OP60字符串的前6个为docsis时,即可确定DHCP发现报文发起者为 cable-modem(即CM);When the first six strings of the OP60 string are docsis, the initiator of the DHCP discovery message can be determined as Cable-modem (ie CM);
OP60字符串的前4个为pktc,即可确定DHCP发现报文发起者为eMTA;The first four of the OP60 strings are pktc, and the initiator of the DHCP discovery message is determined to be the eMTA.
OP60字符串的前3个为STB,即可确定DHCP发现报文发起者为stb;The first three of the OP60 strings are STBs, and the initiator of the DHCP discovery message is determined to be stb.
OP60字符串的前4个为MSFT,即可确定DHCP发现报文发起者为PC。The first four of the OP60 strings are MSFT, and the initiator of the DHCP discovery message is determined to be a PC.
本实施例中的DHCP发现报文的还包括Option43字段,其中,Option43字段包括:VSI(供应商特定信息),用于DHCP服务器与client之间交换厂商特定信息,当DHCP服务器收到请求Option43信息的DHCP请求报文(Option55中带有43参数)后,将在回复报文中携带Option43,为DHCP客户端分配厂商指定的信息。本实施例中对于CPE(eMTA/PC/stb等)发起的DHCP报文可以只携带Option60,不携带Option43;对于CM只要符合CableLabs标准的,要求必须同时携带Option60和Option43。The DHCP discovery packet in this embodiment further includes an Option 43 field, where the Option 43 field includes: VSI (Vendor Specific Information), which is used to exchange vendor specific information between the DHCP server and the client, and when the DHCP server receives the request Option 43 information. After the DHCP request packet (with parameter 43 in Option 55), Option 43 is carried in the reply packet to assign the vendor-specified information to the DHCP client. In this embodiment, the DHCP message initiated by the CPE (eMTA/PC/stb, etc.) can carry only Option 60 and does not carry Option 43. For the CM, as long as it conforms to the CableLabs standard, it must carry Option 60 and Option 43 at the same time.
本实施例中的CMC还支持DHCP Relay(即DHCP代理)功能,上联OLT,OLT为二层透传设备。CMC接收配置的IP端口下的CM发送的DHCP发现报文之前,还包括为该IP端口配置CM代理IP地址和CPE代理IP地址;CMC将DHCP发现报文发给CM DHCP服务器时,可选择对应的CM代理IP地址,通过该CM代理IP将DHCP发现报文发给CM DHCP服务器。CMC将所DHCP发现报文发给CPEDHCP服务器包括:CMC确定发送DHCP发现报文的CM所在的IP端口,在该IP端口下选择对应的CPE代理IP地址,通过该CPE代理IP地址将DHCP发现报文发送给对应的CPE DHCP服务器。The CMC in this embodiment also supports the function of the DHCP relay (DHCP proxy), which is connected to the OLT and the OLT is a Layer 2 transparent transmission device. Before receiving the DHCP discovery packet sent by the CM under the configured IP port, the CMC also includes configuring the CM proxy IP address and the CPE proxy IP address for the IP port. When the CMC sends the DHCP discovery packet to the CM DHCP server, the CMC can select the corresponding The CM proxy IP address, through which the DHCP discovery packet is sent to the CM DHCP server. The CMC sends the DHCP discovery packet to the CPEDHCP server. The CMC determines the IP port of the CM that sends the DHCP discovery packet, selects the corresponding CPE proxy IP address under the IP port, and sends the DHCP discovery packet through the CPE proxy IP address. The text is sent to the corresponding CPE DHCP server.
本实施例中的CMC为IP端口配置CPE代理IP地址和CM代理IP地址时,可以根据需要配置一个或多个;当配置多个时,可以选择第一个作为默认的CPE代理IP地址和CM代理IP地址,或者在选用时按照轮流的方式进行选择,当然也可采用其他优化算法进行选择。例如,当配置的CPE代理IP地址包括多个时,CMC选择对应的CPE代理IP地址时,选择多个CPE代理IP地址中的第一个或按照轮流的方式从多个CPE代理IP地址中选择一个。When the CMC in this embodiment configures the CPE proxy IP address and the CM proxy IP address for the IP port, you can configure one or more as needed. When multiple configurations are configured, you can select the first one as the default CPE proxy IP address and CM. Proxy IP address, or choose in turn when selected, of course, other optimization algorithms can also be used for selection. For example, when the configured CPE proxy IP address includes multiple, when the CMC selects the corresponding CPE proxy IP address, select the first one of the multiple CPE proxy IP addresses or select from multiple CPE proxy IP addresses in a round robin manner. One.
CM DHCP服务器收到DHCP发现报文后,从DHCP发现报文提取出发送该DHCP发现报文的CM的MAC地址,根据该MAC地址从地址池中为CM匹配到对应的IP地址。CPE DHCP服务器接收到DHCP发现报文后,为 CPE分配IP地址的过程可以为:After receiving the DHCP discovery packet, the CM DHCP server extracts the MAC address of the CM that sends the DHCP discovery packet from the DHCP discovery packet, and matches the CM to the corresponding IP address from the address pool according to the MAC address. After receiving the DHCP Discovery message, the CPE DHCP server is The process of assigning an IP address to a CPE can be:
CPE DHCP服务器根据该CPE所属的CM为CPE分配IP地址。具体的,CPE发起DHCP发现报文时,CMC根据此CPE所接CM的IP来判断自己应该选择哪一个IP端口下的CPE代理IP作为自己的中继IP,CPE DHCP服务器也会根据此CPE代理IP来进行同子网地址分配。The CPE DHCP server assigns an IP address to the CPE according to the CM to which the CPE belongs. Specifically, when the CPE initiates a DHCP discovery packet, the CMC determines which CPE proxy IP under the IP port should be selected as its own relay IP according to the IP of the CM connected to the CPE, and the CPE DHCP server also uses the CPE proxy according to the CPE proxy. IP to perform the same subnet address assignment.
请参见图2所示,本实施例中的同轴电缆中间转换器(CMC)包括IP端口、接收模块和处理模块:该IP端口下绑定有相同业务的同轴调制解调器和用户端设备,并配置有同轴调制解调器DHCP服务器和用户端设备DHCP服务器;Referring to FIG. 2, the coaxial cable intermediate converter (CMC) in this embodiment includes an IP port, a receiving module, and a processing module: the coaxial port and the client device with the same service are bound to the IP port, and Configured with a coaxial modem DHCP server and a client device DHCP server;
接收模块设置为接收该IP端口下的CM发送的DHCP发现报文;The receiving module is configured to receive a DHCP discovery packet sent by the CM under the IP port;
处理模块设置为当接收模块接收到的DHCP发现报文是该CM发起的时,将DHCP发现报文发给同轴调制解调器DHCP服务器;当DHCP发现报文为CPE发起的时,将DHCP发现报文发给用户端设备DHCP服务器。The processing module is configured to: when the DHCP discovery message received by the receiving module is initiated by the CM, send the DHCP discovery message to the coaxial modem DHCP server; when the DHCP discovery message is initiated by the CPE, the DHCP discovery message is sent. Send to the client device DHCP server.
本实施例中的DHCP发现报文包含源MAC地址,源MAC地址为DHCP发现报文发起者的MAC地址;处理模块根据DHCP发现报文中的源MAC地址判断是否是CM发起的;包括:处理模块获取发送DHCP发现报文的CM的MAC地址,并从该DHCP发现报文中提取源MAC地址,比较CM的MAC地址与提取出的源MAC地址是否相同,如是,则表明DHCP发现报文是CM发起的;如否,则判定DHCP发现报文是CM下的CPE发起的。The DHCP discovery packet in this embodiment includes the source MAC address, and the source MAC address is the MAC address of the initiator of the DHCP discovery packet. The processing module determines whether the source MAC address in the DHCP discovery packet is initiated by the CM. The module obtains the MAC address of the CM that sends the DHCP discovery packet, and extracts the source MAC address from the DHCP discovery packet, and compares the MAC address of the CM with the extracted source MAC address. If yes, the DHCP discovery packet is The CM initiates; if not, it determines that the DHCP discovery message is initiated by the CPE under the CM.
或DHCP发现报文包含用于表征发起者的发起者字段;处理模块从DHCP发现报文中提取发起者字段,根据该发起者字段判断发起者是否是CM发起的。Or the DHCP discovery message includes an initiator field for characterizing the initiator; the processing module extracts an initiator field from the DHCP discovery message, and determines, according to the initiator field, whether the initiator is initiated by the CM.
本实施例中的IP端口还配置有同轴调制解调器代理IP地址和用户端设备代理IP地址;The IP port in this embodiment is further configured with a coaxial modem proxy IP address and a client device proxy IP address;
处理模块将DHCP发现报文发给同轴调制解调器DHCP服务器包括:The processing module sends the DHCP discovery message to the coaxial modem DHCP server, including:
处理模块选择对应的同轴调制解调器代理IP地址,通过该同轴调制解调器代理IP地址将DHCP发现报文发给同轴调制解调器DHCP服务器;The processing module selects a corresponding coaxial modem proxy IP address, and sends the DHCP discovery message to the coaxial modem DHCP server through the coaxial modem proxy IP address;
处理模块将DHCP发现报文发给用户端设备DHCP服务器包括: The processing module sends the DHCP discovery packet to the client device DHCP server, including:
处理模块确定发送DHCP发现报文的同轴调制解调器所在的IP端口,在该IP端口下选择对应的用户端设备代理IP地址,通过该用户端设备代理IP地址将DHCP发现报文发送给对应的用户端设备DHCP服务器。The processing module determines the IP port of the coaxial modem that sends the DHCP discovery message, selects the corresponding client device proxy IP address under the IP port, and sends the DHCP discovery packet to the corresponding user through the proxy device IP address of the client device. End device DHCP server.
本实施例中的IP端口配置有多个用户端设备代理IP地址;The IP port in this embodiment is configured with multiple client device proxy IP addresses;
处理模块选择对应的用户端设备代理IP地址时,选择多个用户端设备代理IP地址中的第一个或按照轮流的方式从所述多个用户端设备代理IP地址中选择一个。When the processing module selects the corresponding client device proxy IP address, select the first one of the plurality of client device proxy IP addresses or select one of the plurality of client device proxy IP addresses in a round-robin manner.
实施例二:Embodiment 2:
本实施例提供的IP地址分配方法请参见图3所示,包括:For the IP address allocation method provided in this embodiment, refer to FIG. 3, which includes:
步骤201:在CMC上配置IP端口,将相同业务的CM和CPE绑定在该IP端口下;Step 201: Configure an IP port on the CMC, and bind the CM and CPE of the same service to the IP port.
步骤202:为该IP端口配置分别用于CM IP地址分配和CPE IP地址分配的CM DHCP服务器和CPE DHCP服务器;Step 202: Configure a CM DHCP server and a CPE DHCP server for the CM IP address allocation and CPE IP address allocation for the IP port respectively.
步骤203:CMC接收IP端口下的CM发送的DHCP发现报文;Step 203: The CMC receives the DHCP discovery packet sent by the CM under the IP port.
步骤204:CMC判断DHCP发现报文是否是该CM发起的,如是,转至步骤205;如果否,转至步骤207;Step 204: The CMC determines whether the DHCP discovery message is initiated by the CM, if yes, go to step 205; if no, go to step 207;
步骤205:CMC将DHCP发现报文发给CM DHCP服务器;Step 205: The CMC sends the DHCP discovery packet to the CM DHCP server.
步骤206:CM DHCP服务器根据收到的DHCP发现报文为该CM分配IP地址。Step 206: The CM DHCP server allocates an IP address to the CM according to the received DHCP discovery message.
步骤207:DHCP发现报文为CPE发起,将DHCP发现报文发给CPE DHCP服务器;Step 207: The DHCP discovery packet is initiated by the CPE, and the DHCP discovery packet is sent to the CPE DHCP server.
步骤208:CPE DHCP服务器根据接收到的DHCP发现报文为CPE分配IP地址。Step 208: The CPE DHCP server allocates an IP address to the CPE according to the received DHCP discovery message.
本实施例中采用不同的DHCP服务器为CM和CPE分配IP地址,可以分担负载,更利于资源的利用。当然在一些应用场景中也可采用相同的DHCP为CM和CPE分配IP地址。 In this embodiment, different DHCP servers are used to allocate IP addresses to the CM and the CPE, which can share the load and is more conducive to resource utilization. Of course, in some application scenarios, the same DHCP can also be used to assign IP addresses to CMs and CPEs.
本实施例中,CMC判断DHCP发现报文是否是CM发起的可以采用以下两种方式中的至少一种:In this embodiment, the CMC determines whether the DHCP discovery packet is initiated by the CM, and may adopt at least one of the following two methods:
方式一:DHCP发现报文包含源MAC地址(即介质访问控制地址),该源MAC地址为DHCP发现报文发起者的MAC地址;Manner 1: The DHCP discovery packet contains the source MAC address (that is, the medium access control address), and the source MAC address is the MAC address of the initiator of the DHCP discovery packet.
CMC获取发送DHCP发现报文的CM的MAC地址,并从该DHCP发现报文中提取源MAC地址,比较CM的MAC地址与提取出的源MAC地址是否相同,如是,则表明DHCP发现报文是CM发起的;如果否,判定DHCP发现报文是CM下的CPE发起的。The CMC obtains the MAC address of the CM that sends the DHCP discovery packet, and extracts the source MAC address from the DHCP discovery packet, and compares the MAC address of the CM with the extracted source MAC address. If yes, the DHCP discovery packet is The CM initiates; if not, it determines that the DHCP discovery message is initiated by the CPE under the CM.
本实施例中,CMC在判断完成之后,或在判断之前,还可将获取的CM的MAC地址插入DHCP发现报文,以供CM DHCP服务器可以进行自主的判断。具体的,可插入DHCP发现报文的Option 82字段,DHCP Relay Agent Information Option(82):在sub-option 2:Remote ID中插入CM的MAC地址;CM DHCP服务器可根据Remote ID中的MAC地址是否等于该DHCP发现报文中原MAC来判断本次申请来自于CM还是来自于CM下面的CPE(如stb/PC/eMTA等)。In this embodiment, after the judgment is completed, or before the judgment, the CMC can also insert the MAC address of the obtained CM into the DHCP discovery message, so that the CM DHCP server can perform the autonomous judgment. Specifically, the Option 82 field of the DHCP Discovery message can be inserted, and the DHCP Relay Agent Information Option (82): insert the MAC address of the CM in the sub-option 2:Remote ID; the CM DHCP server can be based on whether the MAC address in the Remote ID is It is equal to the original MAC in the DHCP discovery message to determine whether the application is from the CM or from the CPE under the CM (such as stb/PC/eMTA, etc.).
方式二:或DHCP发现报文包含用于表征发起者的发起者字段;CMC获取接收到的DHCP发现报文的发起者字段,根据该发起者字段判断发起者是否是CM。本实施例中的发起者字段可以是DHCP发现报文的Option 60字段,其中,DHCP Option 60字段的设置如下:Manner 2: The DHCP discovery message includes an initiator field for characterizing the initiator; the CMC acquires an initiator field of the received DHCP discovery message, and determines, according to the initiator field, whether the initiator is a CM. The initiator field in this embodiment may be an Option 60 field of a DHCP discovery packet, where the DHCP Option 60 field is set as follows:
OP60字符串的前6个为docsis时,即可确定DHCP发现报文发起者为cable-modem(即CM);When the first six strings of the OP60 string are docsis, the initiator of the DHCP discovery message is determined to be a cable-modem (ie, CM);
OP60字符串的前4个为pktc,即可确定DHCP发现报文发起者为eMTA;The first four of the OP60 strings are pktc, and the initiator of the DHCP discovery message is determined to be the eMTA.
OP60字符串的前3个为STB,即可确定DHCP发现报文发起者为stb;The first three of the OP60 strings are STBs, and the initiator of the DHCP discovery message is determined to be stb.
OP60字符串的前4个为MSFT,即可确定DHCP发现报文发起者为PC。The first four of the OP60 strings are MSFT, and the initiator of the DHCP discovery message is determined to be a PC.
本实施例中的DHCP发现报文的还包括Option43字段,其中,Option43字段包括:VSI(供应商特定信息),用于DHCP服务器与client之间交换厂商特定信息,当DHCP服务器收到请求Option43信息的DHCP请求报文(Option55中带有43参数)后,将在回复报文中携带Option43,为DHCP客 户端分配厂商指定的信息。本实施例中对于CPE(eMTA/PC/stb等)发起的DHCP报文可以只携带Option60,不携带Option43;对于CM只要符合CableLabs标准的,要求必须同时携带Option60和Option43。The DHCP discovery packet in this embodiment further includes an Option 43 field, where the Option 43 field includes: VSI (Vendor Specific Information), which is used to exchange vendor specific information between the DHCP server and the client, and when the DHCP server receives the request Option 43 information. After the DHCP request packet (with parameter 43 in Option 55), Option 43 is carried in the reply packet, which is DHCP. The client assigns information specified by the vendor. In this embodiment, the DHCP message initiated by the CPE (eMTA/PC/stb, etc.) can carry only Option 60 and does not carry Option 43. For the CM, as long as it conforms to the CableLabs standard, it must carry Option 60 and Option 43 at the same time.
本实施例中的CMC还支持DHCP Relay(即DHCP代理)功能,上联OLT,OLT为二层透传设备。CMC接收配置的IP端口下的CM发送的DHCP发现报文之前,还包括为该IP端口配置CM代理IP地址和CPE代理IP地址;CMC将DHCP发现报文发给CM DHCP服务器时,可选择对应的CM代理IP地址,通过该CM代理IP地址将DHCP发现报文发给CM DHCP服务器。CMC将所DHCP发现报文发给CPEDHCP服务器包括:CMC确定发送DHCP发现报文的CM所在的IP端口,在该IP端口下选择对应的CPE代理IP地址,通过该CPE代理IP地址将DHCP发现报文发送给对应的CPE DHCP服务器。The CMC in this embodiment also supports the function of the DHCP relay (DHCP proxy), which is connected to the OLT and the OLT is a Layer 2 transparent transmission device. Before receiving the DHCP discovery packet sent by the CM under the configured IP port, the CMC also includes configuring the CM proxy IP address and the CPE proxy IP address for the IP port. When the CMC sends the DHCP discovery packet to the CM DHCP server, the CMC can select the corresponding The CM proxy IP address is sent to the CM DHCP server through the CM proxy IP address. The CMC sends the DHCP discovery packet to the CPEDHCP server. The CMC determines the IP port of the CM that sends the DHCP discovery packet, selects the corresponding CPE proxy IP address under the IP port, and sends the DHCP discovery packet through the CPE proxy IP address. The text is sent to the corresponding CPE DHCP server.
本实施例中的CMC为IP端口配置CPE代理IP地址和CM代理IP地址时,可以根据需要配置一个或多个;当配置多个时,可以选择第一个作为默认的CPE代理IP地址和CM代理IP地址,或者在选用时按照轮流的方式进行选择,当然也可采用其他优化算法进行选择。例如,当配置的CPE代理IP地址包括多个时,CMC选择对应的CPE代理IP地址时,选择多个CPE代理IP地址中的第一个或按照轮流的方式从多个CPE代理IP地址中选择一个。When the CMC in this embodiment configures the CPE proxy IP address and the CM proxy IP address for the IP port, you can configure one or more as needed. When multiple configurations are configured, you can select the first one as the default CPE proxy IP address and CM. Proxy IP address, or choose in turn when selected, of course, other optimization algorithms can also be used for selection. For example, when the configured CPE proxy IP address includes multiple, when the CMC selects the corresponding CPE proxy IP address, select the first one of the multiple CPE proxy IP addresses or select from multiple CPE proxy IP addresses in a round robin manner. One.
CM DHCP服务器收到DHCP发现报文后,从DHCP发现报文提取出发送该DHCP发现报文的CM的MAC地址,根据该MAC地址从地址池中为CM匹配到对应的IP地址。CPE DHCP服务器接收到DHCP发现报文后,为CPE分配IP地址的过程为:After receiving the DHCP discovery packet, the CM DHCP server extracts the MAC address of the CM that sends the DHCP discovery packet from the DHCP discovery packet, and matches the CM to the corresponding IP address from the address pool according to the MAC address. After receiving a DHCP Discovery message, the CPE DHCP server assigns an IP address to the CPE as follows:
CPE DHCP服务器根据该CPE所属的CM为CPE分配IP地址。具体的,CPE发起DHCP发现报文时,CMC根据此CPE所接CM的IP地址来判断自己应该选择哪一个IP端口下的CPE代理IP地址作为自己的中继IP地址,CPE DHCP服务器也会根据此CPE代理IP地址来进行同子网地址分配。The CPE DHCP server assigns an IP address to the CPE according to the CM to which the CPE belongs. Specifically, when the CPE initiates a DHCP discovery message, the CMC determines, according to the IP address of the CM that the CPE receives, which CPE proxy IP address should be selected as its own relay IP address, and the CPE DHCP server also This CPE proxy IP address is used for the same subnet address assignment.
实施例三:Embodiment 3:
为了更好的理解本发明,本实施例中以一种具体的应用场景为例对本发 明做进一步示例性的说明。CMC上实现DHCP Relay时,采用OLT上联,OLT只需支持VLAN二层透传。请参见图4所示,为CM和CPE分配IP地址的过程包括:For a better understanding of the present invention, in this embodiment, a specific application scenario is taken as an example for the present invention. A further illustrative illustration will be made. When the DHCP relay is implemented on the CMC, the OLT is connected to the OLT. The OLT only needs to support VLAN Layer 2 transparent transmission. Referring to Figure 4, the process of assigning IP addresses to CMs and CPEs includes:
步骤301:在CMC上配置IP Bundle(即IP端口),并将相同业务的CM和CPE作为同类IP Bundle子网,即绑定在一个IP Bundle;Step 301: Configure an IP Bundle (ie, an IP port) on the CMC, and configure the CM and the CPE of the same service as the same IP Bundle subnet, that is, bound to an IP Bundle;
步骤302:为该IP Bundle配置CM DHCP服务器、CPE DHCP服务器以及相应的代理IP地址;本实施例中分别为CM何CPE分配单独配置CM DHCP服务器、CPE DHCP服务器,其配置如下:Step 302: Configure the CM DHCP server, the CPE DHCP server, and the corresponding proxy IP address for the IP Bundle. In this embodiment, the CM DHCP server and the CPE DHCP server are separately configured for the CM and the CPE, and the configuration is as follows:
CMC上IP Bundle配置如下:The IP Bundle configuration on the CMC is as follows:
cmc(config)#interface bundle 1//配置bundle1Cmc(config)#interface bundle 1//configure bundle1
cmc(config-if)#ip address 191.168.3.3255.255.255.0//CM上线的relay ip地址Cmc(config-if)#ip address 191.168.3.3255.255.255.0//CM online relay ip address
cmc(config-if)#ip address 191.168.4.3255.255.255.0secondary//CPE上线的relay ip地址Cmc(config-if)#ip address 191.168.4.3255.255.255.0secondary//CPE online relay ip address
cmc(config-if)#ip address 191.168.5.3255.255.255.0secondary//CPE上线的relay ip地址Cmc(config-if)#ip address 191.168.5.3255.255.255.0secondary//CPE online relay ip address
cmc(config-if)#cable helper-address 172.16.1.144//CM DHCP server的ip地址,用于给CM分配ip地址Cmc(config-if)#cable helper-address 172.16.1.144//CM DHCP server ip address, used to assign ip address to CM
cmc(config-if)#cable helper-address 172.16.2.144cpe//CPE DHCP的ip地址,用于给CPE分配ip地址Cmc(config-if)#cable helper-address 172.16.2.144cpe//CPE DHCP ip address, used to assign IP address to CPE
cmc(config-if)#cable source-verify dhcp//支持DHCP方式获取CM/CPE的ip地址Cmc(config-if)#cable source-verify dhcp//Support DHCP to obtain ip address of CM/CPE
cmc(config-if)#cable dhcp-giaddr policy 1//从secondary型中选取第1个ip地址作为CPE上线的relay ip地址;Cmc(config-if)#cable dhcp-giaddr policy 1//Select the first ip address from the secondary type as the relay ip address of the CPE online;
步骤303:CM或者CPE发起DHCP发现报文(即发送DHCP discover报文或者DHCP request报文);Step 303: The CM or the CPE initiates a DHCP discovery message (that is, sends a DHCP discover message or a DHCP request message);
步骤304:CMC接收其下的CM发送的DHCP发现报文,提取该DHCP 发现报文中的源MAC地址,并获取该CM的MAC地址;Step 304: The CMC receives the DHCP discovery packet sent by the CM under it, and extracts the DHCP. Discover the source MAC address in the packet and obtain the MAC address of the CM.
步骤305:CMC判断提取的源MAC地址与获取的CM的MAC地址是否一致,如是,转至步骤306:如果否,转至步骤308;Step 305: The CMC determines whether the extracted source MAC address is consistent with the obtained MAC address of the CM, and if yes, go to step 306: If no, go to step 308;
步骤306:CMC通过默认CMC代理IP默认网关地址(比如191.168.3.3),向CM DHCP服务器分发DHCP发现报文(这里CM DHCP服务器只配了一台,所以只往172.16.1.144转发);Step 306: The CMC distributes the DHCP discovery message to the CM DHCP server by using the default CMC proxy IP default gateway address (such as 191.168.3.3) (where the CM DHCP server is only equipped with one, so only forwards to 172.16.1.144);
步骤307:CM DHCP服务器根据该DHCP发现报文中的源MAC地址到地址池中进行匹配,根据匹配结果向CMC分配该CM所属IP地址,后续协议与数据转发都走此所属的IP Relay Agent(作为网关)。Step 307: The CM DHCP server matches the source MAC address in the DHCP discovery packet to the address pool, and assigns the IP address of the CM to the CMC according to the matching result, and the subsequent protocol and data forwarding go to the IP Relay Agent to which it belongs ( As a gateway).
步骤308:CMC根据发起该DHCP发现报文的CPE所属的CM的IP地址确定选择哪个IP Bundle下的CPE代理IP地址;假设上述例子给CM分配了191.168.3.0网段的IP地址,CMC根据此IP地址判断应该选择bundle1下的二级默认网关转发,但由于配了2条二级Relay IP地址,这里有一个选择命令,供CMC选择该走哪一个二级Relay IP地址。CMC通过默认公有二级IP Relay Agent网关地址(比如191.168.4.3),向CPE DHCP服务器(172.16.2.144)分发DHCP发现报文;Step 308: The CMC determines the IP address of the CPE proxy under the IP Bundle according to the IP address of the CM to which the CPE that originated the DHCP discovery packet belongs. Assume that the above example assigns the IP address of the 191.168.3.0 network segment to the CM. The IP address judgment should select the secondary default gateway forwarding under bundle1, but because there are two secondary relay IP addresses, there is a selection command for the CMC to select which secondary relay IP address to take. The CMC distributes DHCP discovery packets to the CPE DHCP server (172.16.2.144) through the default public secondary IP Relay agent gateway address (for example, 191.168.4.3).
步骤309:由CPE DHCP服务器根据CPE所属CM或IP Bundle情况,分配对应的IP地址,后续协议与数据转发都走此所属的IP Relay Agent(作为网关)。Step 309: The CPE DHCP server allocates the corresponding IP address according to the CM or IP Bundle status of the CPE, and the subsequent protocol and data forwarding go to the IP Relay Agent (as the gateway).
以上内容是本发明的可选实施方式,不能认定本发明的实施只局限于这些说明。The above is an optional embodiment of the present invention, and the implementation of the present invention is not limited to the description.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或 步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Optionally, all or part of the steps of the foregoing embodiments may also be implemented by using an integrated circuit, and the steps may be separately fabricated into integrated circuit modules, or multiple modules thereof or The steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
通过本发明实施例提供的方案实现了对CMC下挂的相同业务的CM和CPE的IP地址进行统一分配和管理。 The solution provided by the embodiment of the present invention implements unified allocation and management of IP addresses of CMs and CPEs of the same service that are connected to the CMC.

Claims (13)

  1. 一种网络协议(IP)地址分配方法,包括:A network protocol (IP) address allocation method includes:
    同轴电缆中间转换器上配置有IP端口,该IP端口下绑定有相同业务的同轴调制解调器和用户端设备,并配置有同轴调制解调器动态主机配置协议(DHCP)服务器和用户端设备DHCP服务器;The coaxial cable intermediate converter is configured with an IP port, which is bound with a coaxial modem and a client device of the same service, and is configured with a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server. ;
    同轴电缆中间转换器接收所述IP端口下的同轴调制解调器发送的DHCP发现报文,当所述DHCP发现报文是该同轴调制解调器发起的时,将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;当所述DHCP发现报文为用户端设备发起的时,将所述DHCP发现报文发给所述用户端设备DHCP服务器。The coaxial cable intermediate converter receives the DHCP discovery message sent by the coaxial modem under the IP port, and sends the DHCP discovery message to the DHCP discovery message when the DHCP discovery message is initiated by the coaxial modem. The coaxial modem DHCP server sends the DHCP discovery message to the client device DHCP server when the DHCP discovery message is initiated by the user equipment.
  2. 如权利要求1所述的IP地址分配方法,其中,所述DHCP发现报文包含源介质访问控制地址,所述源介质访问控制地址为所述DHCP发现报文发起者的介质访问控制地址;所述同轴电缆中间转换器根据所述DHCP发现报文中的源介质访问控制地址判断所述DHCP发现报文是否是所述同轴调制解调器发起的;The method for allocating an IP address according to claim 1, wherein the DHCP discovery message includes a source medium access control address, and the source medium access control address is a medium access control address of the initiator of the DHCP discovery message; The coaxial cable intermediate converter determines, according to the source medium access control address in the DHCP discovery message, whether the DHCP discovery message is initiated by the coaxial modem;
    或所述DHCP发现报文包含用于表征发起者的发起者字段;所述同轴电缆中间转换器从所述DHCP发现报文中提取发起者字段,根据该发起者字段判断所述DHCP发现报文的发起者是否是所述同轴调制解调器。Or the DHCP discovery message includes an initiator field for characterizing the initiator; the coaxial cable intermediate converter extracts an initiator field from the DHCP discovery message, and determines the DHCP discovery report according to the initiator field. Whether the originator of the text is the coaxial modem.
  3. 如权利要求1或2所述的IP地址分配方法,其中,所述IP端口还配置有同轴调制解调器代理IP地址和用户端设备代理IP地址;The IP address allocation method according to claim 1 or 2, wherein the IP port is further configured with a coaxial modem proxy IP address and a client device proxy IP address;
    所述同轴电缆中间转换器将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器包括:Sending, by the coaxial cable intermediate converter, the DHCP discovery message to the coaxial modem DHCP server includes:
    所述同轴电缆中间转换器选择对应的同轴调制解调器代理IP地址,通过该同轴调制解调器代理IP地址将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;The coaxial cable intermediate converter selects a corresponding coaxial modem proxy IP address, and sends the DHCP discovery message to the coaxial modem DHCP server through the coaxial modem proxy IP address;
    所述同轴电缆中间转换器将所述DHCP发现报文发给所述用户端设备DHCP服务器包括: Sending, by the coaxial cable intermediate converter, the DHCP discovery message to the client device DHCP server includes:
    所述同轴电缆中间转换器确定发送所述DHCP发现报文的同轴调制解调器所在的IP端口,在该IP端口下选择对应的用户端设备代理IP地址,通过该用户端设备代理IP地址将所述DHCP发现报文发送给对应的用户端设备DHCP服务器。The coaxial cable intermediate converter determines an IP port where the coaxial modem that sends the DHCP discovery message is located, and selects a corresponding client device proxy IP address under the IP port, and the proxy device IP address is used by the client device The DHCP discovery packet is sent to the corresponding client device DHCP server.
  4. 如权利要求3所述的IP地址分配方法,其中,所述IP端口配置有多个用户端设备代理IP地址;The IP address allocation method according to claim 3, wherein said IP port is configured with a plurality of client device proxy IP addresses;
    所述同轴电缆中间转换器选择对应的用户端设备代理IP地址时,选择所述多个用户端设备代理IP地址中的第一个或按照轮流的方式从所述多个用户端设备代理IP地址中选择一个。When the coaxial cable intermediate converter selects a corresponding client device proxy IP address, select the first one of the plurality of client device proxy IP addresses or proxy IP from the plurality of client devices in a rotating manner Select one of the addresses.
  5. 一种网络协议(IP)地址分配方法,包括:A network protocol (IP) address allocation method includes:
    同轴电缆中间转换器上配置有IP端口,该IP端口下绑定有相同业务的同轴调制解调器和用户端设备,并配置有同轴调制解调器动态主机配置协议(DHCP)服务器和用户端设备DHCP服务器;The coaxial cable intermediate converter is configured with an IP port, which is bound with a coaxial modem and a client device of the same service, and is configured with a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server. ;
    同轴电缆中间转换器接收所述IP端口下的同轴调制解调器发送的DHCP发现报文,当所述DHCP发现报文是该同轴调制解调器发起的时,将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器,所述同轴调制解调器DHCP服务器根据收到的DHCP发现报文为该同轴调制解调器分配IP地址;当所述DHCP发现报文为用户端设备发起的时,将所述DHCP发现报文发给所述用户端设备DHCP服务器,所述用户端设备DHCP服务器根据接收到的DHCP发现报文为所述用户端设备分配IP地址。The coaxial cable intermediate converter receives the DHCP discovery message sent by the coaxial modem under the IP port, and sends the DHCP discovery message to the DHCP discovery message when the DHCP discovery message is initiated by the coaxial modem. a coaxial modem DHCP server, the coaxial modem DHCP server assigns an IP address to the coaxial modem according to the received DHCP discovery message; and when the DHCP discovery message is initiated by the user equipment, the DHCP discovery The packet is sent to the client device DHCP server, and the client device DHCP server allocates an IP address to the client device according to the received DHCP discovery message.
  6. 如权利要求5所述的IP地址分配方法,其中,所述同轴调制解调器DHCP服务器根据收到的DHCP发现报文为同轴调制解调器分配IP地址包括:The IP address allocation method according to claim 5, wherein the coaxial modem DHCP server assigns an IP address to the coaxial modem according to the received DHCP discovery message, including:
    所述同轴调制解调器DHCP服务器获取所述同轴调制解调器的介质访问控制地址,根据所述介质访问控制地址为所述同轴调制解调器分配IP地址;The coaxial modem DHCP server acquires a medium access control address of the coaxial modem, and allocates an IP address to the coaxial modem according to the medium access control address;
    所述用户端设备DHCP服务器根据接收到的DHCP发现报文为用户端设备分配IP地址包括: The user terminal device DHCP server allocates an IP address to the user equipment according to the received DHCP discovery message, including:
    所述用户端设备DHCP服务器根据所述用户端设备所属的同轴调制解调器为所述用户端设备分配IP地址。The client device DHCP server allocates an IP address to the client device according to the coaxial modem to which the client device belongs.
  7. 一种同轴电缆中间转换器,包括网络协议(IP)端口、接收模块和处理模块:A coaxial cable intermediate converter comprising a network protocol (IP) port, a receiving module and a processing module:
    所述IP端口下绑定有相同业务的同轴调制解调器和用户端设备,并配置有同轴调制解调器动态主机配置协议(DHCP)服务器和用户端设备DHCP服务器;The coaxial port and the client device of the same service are bound to the IP port, and a coaxial modem dynamic host configuration protocol (DHCP) server and a client device DHCP server are configured;
    所述接收模块设置为接收所述IP端口下的同轴调制解调器发送的DHCP发现报文;The receiving module is configured to receive a DHCP discovery message sent by the coaxial modem under the IP port;
    所述处理模块设置为当所述DHCP发现报文是该同轴调制解调器发起的时,将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;当所述DHCP发现报文为用户端设备发起的时,将所述DHCP发现报文发给所述用户端设备DHCP服务器。The processing module is configured to send the DHCP discovery message to the coaxial modem DHCP server when the DHCP discovery message is initiated by the coaxial modem; and when the DHCP discovery message is a user equipment When the device initiates, the DHCP discovery packet is sent to the client device DHCP server.
  8. 如权利要求7所述的同轴电缆中间转换器,其中,所述DHCP发现报文包含源介质访问控制地址,所述源介质访问控制地址为所述DHCP发现报文发起者的介质访问控制地址;所述处理模块还设置为根据所述DHCP发现报文中的源介质访问控制地址判断所述DHCP发现报文是否是所述同轴调制解调器发起的;The coaxial cable intermediate converter according to claim 7, wherein said DHCP discovery message includes a source medium access control address, and said source medium access control address is a medium access control address of said DHCP discovery message initiator The processing module is further configured to determine, according to the source medium access control address in the DHCP discovery message, whether the DHCP discovery message is initiated by the coaxial modem;
    或所述DHCP发现报文包含用于表征发起者的发起者字段;所述处理模块还设置为从所述DHCP发现报文中提取发起者字段,根据该发起者字段判断所述DHCP发现报文的发起者是否是所述同轴调制解调器。Or the DHCP discovery message includes an initiator field for characterizing the initiator; the processing module is further configured to: extract an initiator field from the DHCP discovery message, and determine the DHCP discovery message according to the initiator field. Whether the initiator is the coaxial modem.
  9. 如权利要求7或8所述的同轴电缆中间转换器,其中,所述IP端口还配置有同轴调制解调器代理IP地址和用户端设备代理IP地址;The coaxial cable intermediate converter according to claim 7 or 8, wherein said IP port is further configured with a coaxial modem proxy IP address and a client device proxy IP address;
    所述处理模块是设置为以如下方式将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器:The processing module is configured to send the DHCP discovery message to the coaxial modem DHCP server in the following manner:
    选择对应的同轴调制解调器代理IP地址,通过该同轴调制解调器代理IP地址将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器; Selecting a corresponding coaxial modem proxy IP address, and sending the DHCP discover message to the coaxial modem DHCP server through the coaxial modem proxy IP address;
    所述处理模块是设置为以如下方式将所述DHCP发现报文发给所述用户端设备DHCP服务器:The processing module is configured to send the DHCP discovery message to the client device DHCP server in the following manner:
    确定发送所述DHCP发现报文的同轴调制解调器所在的IP端口,在该IP端口下选择对应的用户端设备代理IP地址,通过该用户端设备代理IP地址将所述DHCP发现报文发送给对应的用户端设备DHCP服务器。Determining an IP port of the coaxial modem that sends the DHCP discovery message, selecting a corresponding client device proxy IP address under the IP port, and sending the DHCP discovery packet to the corresponding device through the proxy device IP address. Client device DHCP server.
  10. 如权利要求9所述的同轴电缆中间转换器,其中,所述IP端口配置有多个用户端设备代理IP地址;The coaxial cable intermediate converter of claim 9 wherein said IP port is configured with a plurality of client device proxy IP addresses;
    所述处理模块是设置为以如下方式选择对应的用户端设备代理IP地址:选择所述多个用户端设备代理IP地址中的第一个或按照轮流的方式从所述多个用户端设备代理IP地址中选择一个。The processing module is configured to select a corresponding client device proxy IP address in the following manner: selecting a first one of the plurality of client device proxy IP addresses or proxying from the plurality of client device devices in a rotating manner Select one of the IP addresses.
  11. 一种网络协议(IP)地址分配系统,包括同轴电缆中间转换器、同轴调制解调器动态主机配置协议(DHCP)服务器和用户端设备DHCP服务器;所述同轴电缆中间转换器上配置有IP端口,相同业务的同轴调制解调器和用户端设备绑定在该IP端口下,该IP端口配置有同轴调制解调器DHCP服务器和用户端设备DHCP服务器;A network protocol (IP) address allocation system includes a coaxial cable intermediate converter, a coaxial modem dynamic host configuration protocol (DHCP) server, and a client device DHCP server; the coaxial cable intermediate converter is configured with an IP port The coaxial modem and the client device of the same service are bound to the IP port, and the IP port is configured with a coaxial modem DHCP server and a client device DHCP server;
    所述同轴电缆中间转换器设置为接收所述IP端口下的同轴调制解调器发送的DHCP发现报文,在所述DHCP发现报文是该同轴调制解调器发起的时,将所述DHCP发现报文发给所述同轴调制解调器DHCP服务器;当所述DHCP发现报文为用户端设备发起的时,将所述DHCP发现报文发给所述用户端设备DHCP服务器;The coaxial cable intermediate converter is configured to receive a DHCP discovery message sent by the coaxial modem under the IP port, and when the DHCP discovery message is initiated by the coaxial modem, the DHCP discovery message is sent Sending to the coaxial modem DHCP server; when the DHCP discovery message is initiated by the user equipment, sending the DHCP discovery message to the client device DHCP server;
    所述同轴调制解调器DHCP服务器设置为根据收到的DHCP发现报文为该同轴调制解调器分配IP地址;The coaxial modem DHCP server is configured to allocate an IP address to the coaxial modem according to the received DHCP discovery message;
    所述用户端设备DHCP服务器设置为根据接收到的DHCP发现报文为所述用户端设备分配IP地址。The client device DHCP server is configured to allocate an IP address to the client device according to the received DHCP discovery message.
  12. 如权利要求11所述的IP地址分配系统,其中,所述同轴调制解调器DHCP服务器是设置为以如下方式根据收到的DHCP发现报文为同轴调制解调器分配IP地址: The IP address distribution system of claim 11 wherein said coaxial modem DHCP server is configured to assign an IP address to the coaxial modem based on the received DHCP discovery message in the following manner:
    获取所述同轴调制解调器的介质访问控制地址,根据所述介质访问控制地址为所述同轴调制解调器分配IP地址;Obtaining a media access control address of the coaxial modem, and assigning an IP address to the coaxial modem according to the media access control address;
    所述用户端设备DHCP服务器是设置为以如下方式根据接收到的DHCP发现报文为用户端设备分配IP地址:The client device DHCP server is configured to allocate an IP address to the user equipment according to the received DHCP discovery message in the following manner:
    根据所述用户端设备所属的同轴调制解调器为所述用户端设备分配IP地址。Assigning an IP address to the client device according to the coaxial modem to which the client device belongs.
  13. 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现权利要求1-6任一项所述的方法。 A computer readable storage medium storing program instructions that, when executed, can implement the method of any of claims 1-6.
PCT/CN2015/072444 2014-11-25 2015-02-06 Ip address allocation method, coaxial cable intermediate converter and system WO2016082335A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410689892.0A CN105610994B (en) 2014-11-25 2014-11-25 IP address allocation method, coaxial cable intermediate converter and system
CN201410689892.0 2014-11-25

Publications (1)

Publication Number Publication Date
WO2016082335A1 true WO2016082335A1 (en) 2016-06-02

Family

ID=55990528

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072444 WO2016082335A1 (en) 2014-11-25 2015-02-06 Ip address allocation method, coaxial cable intermediate converter and system

Country Status (2)

Country Link
CN (1) CN105610994B (en)
WO (1) WO2016082335A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112648197A (en) * 2020-11-30 2021-04-13 三联泵业股份有限公司 Water pump capable of changing motion state

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302013B (en) * 2016-08-12 2019-06-18 成都广达新网科技股份有限公司 A kind of desktop system and working method for testing CMC basic service
CN106330969B (en) * 2016-10-31 2019-07-02 成都广达新网科技股份有限公司 A kind of packet identification method during CM is online in CMC system
CN109640199B (en) * 2019-01-04 2021-10-26 烽火通信科技股份有限公司 CBAT management method and system
CN112615943B (en) * 2020-12-11 2022-02-22 深圳金信诺高新技术股份有限公司 Address translation method and system for multi-CPE (customer premise equipment) test

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110058491A1 (en) * 2009-09-09 2011-03-10 Hon Hai Precision Industry Co., Ltd. System and method for managing network connectivity of a cpe using a cmts
CN103888383A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Resource reservation method and system and gathering device
CN104158920A (en) * 2014-08-28 2014-11-19 上海斐讯数据通信技术有限公司 A DHCP management system of a CMC apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812398B (en) * 2005-01-26 2010-08-18 华为技术有限公司 Method for realizing DHCP server loading sharing based on DHCP relay
CN101227356A (en) * 2007-12-12 2008-07-23 深圳市同洲电子股份有限公司 Equipment, system and method for network access based on dynamic state host computer collocation protocol
CN103957142B (en) * 2014-04-11 2017-04-12 烽火通信科技股份有限公司 System, method and device for achieving three-network integration of PON system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110058491A1 (en) * 2009-09-09 2011-03-10 Hon Hai Precision Industry Co., Ltd. System and method for managing network connectivity of a cpe using a cmts
CN103888383A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Resource reservation method and system and gathering device
CN104158920A (en) * 2014-08-28 2014-11-19 上海斐讯数据通信技术有限公司 A DHCP management system of a CMC apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112648197A (en) * 2020-11-30 2021-04-13 三联泵业股份有限公司 Water pump capable of changing motion state

Also Published As

Publication number Publication date
CN105610994B (en) 2020-06-26
CN105610994A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
US11038751B2 (en) Information processing method, network node, authentication method, and server
US10103982B2 (en) System and method for automatic routing of dynamic host configuration protocol (DHCP) traffic
US10880196B2 (en) Bi-directional speed test method and system for customer premises equipment (CPE) devices
EP2532182B1 (en) Dynamic service groups based on session attributes
WO2016082335A1 (en) Ip address allocation method, coaxial cable intermediate converter and system
US8005083B1 (en) Applying differentiated services within a cable network using customer-aware network router
CN110830333A (en) Intelligent household equipment access authentication method, device, gateway and storage medium
US9742634B2 (en) System and method for automatically learning and maintaining IP address allocation topology
WO2015070681A1 (en) Method for virtualizing access network, and proxy node
CN107666419B (en) Virtual broadband access method, controller and system
JP5424007B2 (en) Method for providing information, home gateway and home network system
WO2012100716A1 (en) Method and apparatus for realizing residential gateway function in passive optical network
CN110855809B (en) Message processing method and device
US10673692B2 (en) Method, apparatus, and system for acquiring configuration file
JP2013534767A (en) Telecommunications network, method and system for efficiently using a connection between the telecommunications network and customer premises equipment
WO2016086544A1 (en) Network interface configuration method and apparatus for network device and storage medium
CN107645556B (en) It is a kind of to realize that SDN turns the isolated broadband access of control and keepalive method and device
WO2017219856A1 (en) Circuit verification processing method and system, controller, and computer storage medium
US11394577B2 (en) Expandable network device
US11700228B2 (en) Hardware address consistency management
EP3515048B1 (en) Cable media converter management method, apparatus and system
KR102343908B1 (en) service function chaining control method for network services of virtual customer premises equipment
WO2019114510A1 (en) Load sharing method, device, and system and computer readable storage medium
US20230362152A1 (en) Mobile dynamic application packet kit (apk)

Legal Events

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

Ref document number: 15864133

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15864133

Country of ref document: EP

Kind code of ref document: A1