[go: up one dir, main page]

WO2017031650A1 - Online configuration method, system, and apparatus for cable modem - Google Patents

Online configuration method, system, and apparatus for cable modem Download PDF

Info

Publication number
WO2017031650A1
WO2017031650A1 PCT/CN2015/087868 CN2015087868W WO2017031650A1 WO 2017031650 A1 WO2017031650 A1 WO 2017031650A1 CN 2015087868 W CN2015087868 W CN 2015087868W WO 2017031650 A1 WO2017031650 A1 WO 2017031650A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
configuration
configuration file
dhcp
sent
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.)
Ceased
Application number
PCT/CN2015/087868
Other languages
French (fr)
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2015/087868 priority Critical patent/WO2017031650A1/en
Publication of WO2017031650A1 publication Critical patent/WO2017031650A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, system, and apparatus for configuring a cable modem.
  • Cable Modem is a device used on the cable TV network to access the Internet.
  • Cable refers to cable TV network
  • Modem is modem.
  • TFTP Trivial File Transfer Protocol
  • the process includes the CM configuration file request, the CM configuration file is delivered, and the CM parses the configuration file and returns it.
  • Registered Coax Medium Converter (CMC), and CMC to parse CM return messages and other stages.
  • CMC Registered Coax Medium Converter
  • CMs In particular, in the case of regional power failure, voltage and line instability, there will be a scenario where large-capacity CMs go online at the same time. At this time, thousands of CMs are online or frequently registered, which will greatly increase network traffic and affect service recovery speed. System reliability. In addition, the simultaneous launch of thousands of CMs not only causes traffic impact at the service level, but also involves a large number of high-level protocol interactions, such as inter-board communication messages, that need to be performed during the internal analysis of the CMC system, which will further bring a lot of Necessary system implementation constraints and system resource consumption.
  • the CM can only know the file name of the CM configuration file through DHCP, and the CM itself cannot simply judge whether the CM configuration file changes from the file name. Therefore, each time the CM goes online, the TFTP request configuration process needs to be performed, which brings about a huge system resource consumption and network bandwidth consumption, and causes a problem that the service recovery speed is slow.
  • the embodiment of the invention provides a cable modem uplinking method, system and device, which are used to solve the problem of large system resource consumption and network bandwidth consumption caused by the TFTP request configuration process during the CM online process, and the service recovery speed is slow.
  • the problem is a cable modem uplinking method, system and device, which are used to solve the problem of large system resource consumption and network bandwidth consumption caused by the TFTP request configuration process during the CM online process, and the service recovery speed is slow. The problem.
  • a method for configuring a cable modem to go online includes:
  • the cable modem CM sends a DHCP request message to the dynamic host configuration protocol DHCP server;
  • DHCP server Receiving, by the DHCP server, a DHCP response message, where the DHCP response message carries at least one file identifier for uniquely identifying a configuration file of the CM request;
  • the CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier exists, and uses the locally saved configuration file to complete the configuration. ;
  • the locally saved configuration file is obtained by the CM from the simple file transfer protocol TFTP server and saved locally, and the file identifier corresponding to the locally saved configuration file is obtained by the CM from the DHCP server. Save it locally.
  • the method further includes:
  • the CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the configuration file request message is sent to the TFTP server when the same file identifier does not exist.
  • the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response packet;
  • the CM replaces the locally saved configuration file with the configuration file delivered by the TFTP server, and replaces the file corresponding to the locally saved configuration file by using the file identifier carried in the DHCP response packet.
  • the method further includes:
  • the CM sends a configuration file sent by the TFTP server to the coaxial media converter CMC, and receives a configuration success message sent by the CMC.
  • the option field in the DHCP response packet carries the file identifier of the at least one configuration file for uniquely identifying the CM request.
  • a cable modem uplink configuration system includes:
  • a CM configured to send a DHCP request message to the DHCP server, and receive a DHCP response message fed back by the DHCP server;
  • a DHCP server configured to receive the DHCP request message sent by the CM, and feed back the DHCP response message to the CM;
  • the DHCP response packet carries at least one file identifier for uniquely identifying a configuration file of the CM request, where the locally saved configuration file is obtained by the CM from the TFTP server and saved locally, the local The file identifier corresponding to the saved configuration file is obtained by the CM from the DHCP server and saved locally.
  • the CM is further configured to:
  • the method further includes:
  • a TFTP server configured to receive the configuration file request message sent by the CM, and send a configuration file according to the configuration file request message, where the configuration file request message is used to request the DHCP response message to be carried
  • the file identifies the corresponding configuration file.
  • the CM is further configured to:
  • the configuration file sent by the TFTP server is sent to the CMC.
  • the method further includes:
  • a CMC configured to receive a configuration file sent by the CM
  • CM configuration information is CM configuration information obtained after the CMC is configured based on the configuration file previously sent by the CM
  • the configuration is completed according to the configuration file sent by the CM, and a configuration success message is sent to the CM, and the locally saved CM configuration information is replaced by the CM configuration information obtained after the configuration.
  • a cable modem uplink configuration device includes:
  • a first sending unit configured to send a DHCP request message to the DHCP server
  • a first receiving unit configured to receive a DHCP response message that is sent by the DHCP server, where the DHCP response message carries at least one file identifier that is used to uniquely identify a configuration file of the CM request;
  • a first processing unit configured to receive the DHCP response packet received by the first receiving unit 51
  • the file identifier carried in the file is compared with the file identifier corresponding to the locally saved configuration file. When it is determined that the same file identifier exists, the local saved configuration file is used to complete the configuration.
  • the locally saved configuration file is obtained by the device from the simple file transfer protocol TFTP server and saved locally, and the file identifier corresponding to the locally saved configuration file is obtained by the device from the DHCP server. Save it locally.
  • the method further includes:
  • the second processing unit is configured to compare the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determine that the same file identifier does not exist, and send the configuration to the TFTP server. a file request message, where the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message;
  • the method further includes:
  • a second sending unit configured to send, to the CMC, a configuration file sent by the TFTP server
  • a second receiving unit configured to receive a configuration success message sent by the CMC.
  • the option field in the DHCP response packet carries the file identifier of the at least one configuration file for uniquely identifying the CM request.
  • An embodiment of the present invention provides a method, a system, and a device for configuring a cable modem.
  • the method is: the CM sends a DHCP request message to the DHCP server, and receives a DHCP response message fed back by the DHCP server, where the DHCP response message is sent. Carry at least one for the unique label
  • the DHCP response message here carries the file identifier of the configuration file for uniquely identifying the CM request, and not the file name of the single configuration file, so the configuration file is effectively marked.
  • the CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the configuration file and the locally saved configuration file are required to be used when the same file identifier exists. Consistently, the configuration is completed using a locally saved configuration file.
  • the CM does not need to go to the TFTP server to download the configuration file, so the TFTP request configuration process in the prior art is omitted, the network traffic and system resource consumption are greatly reduced, and the service recovery time is accelerated, and the effect is in multiple CMs. It is more remarkable during the online process.
  • FIG. 1 is a flow chart showing an outline of an online configuration of a cable modem according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a format of a DHCP response message according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an online line configuration system of a cable modem according to an embodiment of the present invention
  • FIG. 4 is a specific flowchart of a cable modem going online configuration according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for configuring an online modem of a cable modem according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an online configuration device of a cable modem.
  • the embodiment of the invention provides a method and a device for the cable modem to go online, which solves the problem of large system resource consumption, network bandwidth consumption and slow service recovery speed caused by the TFTP request configuration process during the CM online process.
  • the method and device are based on the same inventive concept Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description will not be repeated.
  • the invention is mainly directed to the non-first online process of the CM, and the first online process of the CM is unchanged.
  • Step 100 The CM sends a DHCP request message to the DHCP server.
  • the CM needs to perform the online registration process with the CMC first, and further optionally complete the CMC authentication process for the CM.
  • Step 110 The CM receives a DHCP response message fed back by the DHCP server.
  • the DHCP response packet carries at least one file identifier for identifying a configuration file of the CM request.
  • the option field in the DHCP response packet carries at least one file identifier of a configuration file for uniquely identifying the CM request.
  • the file identifier of the configuration file that uniquely identifies the CM request may be the file modification time of the configuration file, the Cyclic Redundancy Check (CRC) generated according to the configuration file, and other information that can be used to uniquely identify the CM request.
  • CRC Cyclic Redundancy Check
  • FIG. 2 it is a schematic diagram of a format of a DHCP response message, where the option field in the DHCP response message carries the file modification time of the configuration file and the CRC of the configuration file, and two files that uniquely identify the configuration file requested by the CM. logo.
  • Step 120 The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier exists, and uses the locally saved configuration file to complete the configuration.
  • the locally saved configuration file is obtained by the CM from the TFTP server and saved locally.
  • the file identifier corresponding to the locally saved configuration file is obtained by the CM from the DHCP server and saved locally.
  • the DHCP response packet may carry one or more file identifiers that uniquely identify the configuration file requested by the CM.
  • the CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that at least one file identifier carried in the DHCP response packet is associated with the file identifier corresponding to the locally saved configuration file.
  • the file identifier corresponding to the locally saved configuration file B includes the file modification time T B of the configuration file B.
  • the CM compares the file identifiers carried in the DHCP response packets with the file identifiers corresponding to the locally saved configuration files, and determines that the same file identifier exists, it indicates that the online application needs to be used.
  • the configuration file is consistent with the locally saved configuration file.
  • the CM does not need to go to the TFTP server to download the configuration file, but directly finds the locally saved configuration file from the local storage to complete the online configuration, so the TFTP request configuration process in the prior art is omitted, and the network is greatly reduced. Traffic and system resources are consumed, and business recovery time is accelerated, and this effect is more pronounced in the process of multiple CMs going online.
  • the CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier does not exist.
  • the CM sends a configuration file request message to the TFTP server, where the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message.
  • the CM receives the configuration file sent by the TFTP server according to the configuration file request message, and completes the configuration according to the configuration file sent by the TFTP server.
  • the CM uses the configuration file delivered by the TFTP server to replace the locally saved configuration file, and replaces the file identifier corresponding to the locally saved configuration file with the file identifier carried in the DHCP response packet, so that the CM can be guaranteed.
  • the second online process and the next DHCP response report The file identifiers carried in the text are compared.
  • the CM After the CM completes its configuration according to the configuration file sent by the TFTP server, the CM sends a configuration file sent by the TFTP server to the CMC, and the CMC side completes the corresponding configuration process, and receives the configuration success message sent by the CMC.
  • FIG. 3 is a schematic structural diagram of a cable modem uplink configuration system according to an embodiment of the present invention.
  • the cable modem uplink configuration system includes:
  • the CM 30 is configured to send a DHCP request message to the DHCP server 31, and receive a DHCP response message fed back by the DHCP server 31.
  • the file identifiers carried in the DHCP response packets are compared with the file identifiers corresponding to the locally saved configuration files. When it is determined that the same file identifier exists, the local configuration file is used to complete the configuration.
  • the DHCP server 31 is configured to receive the DHCP request message sent by the CM 30, and feed back the DHCP response message to the CM 30.
  • the DHCP response packet carries at least one file identifier for uniquely identifying the configuration file of the CM request.
  • the locally saved configuration file is obtained by the CM 30 from the TFTP server 32 and saved locally, and the locally saved configuration file corresponds to the file identifier.
  • the file identification is obtained by the CM 30 from the DHCP server 31 and saved locally.
  • the CM 30 is also used to:
  • the receiving TFTP server 32 completes the configuration according to the configuration file delivered by the configuration file request message and the configuration file sent by the TFTP server 32.
  • the configuration file sent by the TFTP server 32 is used to replace the locally saved configuration file, and the file identifier carried in the DHCP response packet is replaced with the file identifier corresponding to the locally saved configuration file.
  • system further includes:
  • the TFTP server 32 is configured to receive a configuration file request message sent by the CM 30, and send a configuration file according to the configuration file request message, where the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message.
  • the CM 30 is also used to:
  • the configuration file sent by the TFTP server 32 is sent to the CMC 33.
  • system further includes:
  • the CMC 33 is configured to receive a configuration file sent by the CM 30.
  • CM configuration information is the CM configuration information obtained by the CMC 33 based on the configuration file previously sent by the CM 30;
  • the configuration is completed according to the configuration file sent by the CM 30, and the configuration success message is sent to the CM30, and the locally saved CM configuration information is replaced by the CM configuration information obtained after the configuration.
  • the CMC 33 performs the process of deleting and building the first, first deleting the locally saved CM configuration information, and completing the configuration according to the configuration file received this time.
  • the above situation is the operation performed by the CMC 33 after receiving the current configuration file sent back by the CM 30, and the CM configuration information saved on the CMC 33 side when the CM 30 does not return the current configuration file to the CMC 33. No change, no action is required on the CMC33 side.
  • the cable modem online configuration process in the embodiment of the present invention is as follows:
  • Step 401 The CM goes online to register the process.
  • it includes: searching for a downlink channel, obtaining synchronization, searching for an uplink channel description information, and performing ranging.
  • Step 402 The CMC performs X.509 authentication on the CM. This step is an optional step.
  • Step 403 The CM obtains necessary information through DHCP, including acquiring an IP address of the CM, an address of the TFTP server, and the like.
  • Step 404 The CM sends a DHCP request message to the DHCP server.
  • Step 405 The DHCP server feeds back to the CM the DHCP for responding to the DHCP request message. Response message.
  • the DHCP response packet carries at least one file identifier for identifying a configuration file of the CM request.
  • Step 406 The CM acquires the current time through the TOD protocol server.
  • Step 407 The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier exists, and uses the locally saved configuration file to complete the configuration.
  • Step 408 The CM sends an online success message to the CMC.
  • the CM is successfully launched, and normal operation can be started. Since the CM configuration file usually does not change once the CM is powered on for the first time, the network traffic and system resource consumption are greatly reduced, and the service recovery is accelerated. time.
  • an embodiment of the present invention provides an apparatus for configuring a cable modem.
  • the apparatus includes:
  • the first sending unit 50 is configured to send a DHCP request message to the DHCP server.
  • the first receiving unit 51 is configured to receive a DHCP response message that is sent by the DHCP server, where the DHCP response message carries at least one file identifier that is used to uniquely identify the configuration file of the CM request.
  • the first processing unit 52 is configured to compare the file identifier carried in the DHCP response packet received by the first receiving unit 51 with the file identifier corresponding to the locally saved configuration file, and determine that the same file identifier exists when the local file identifier is used.
  • the saved configuration file completes its own configuration
  • the locally saved configuration file is obtained by the device from the simple file transfer protocol TFTP server and saved locally.
  • the file identifier corresponding to the locally saved configuration file is obtained by the device from the DHCP server and saved locally.
  • the device further includes:
  • the second processing unit 53 is configured to compare the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determine that the configuration file request message is sent to the TFTP server when the same file identifier does not exist.
  • the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response packet;
  • the configuration file sent by the TFTP server is used to replace the locally saved configuration file, and the file identifier carried in the DHCP response packet is replaced with the file identifier corresponding to the locally saved configuration file.
  • the method further includes:
  • the second sending unit 54 is configured to send, to the CMC, a configuration file sent by the TFTP server;
  • the second receiving unit 55 is configured to receive a configuration success message sent by the CMC.
  • the option field in the DHCP response packet carries at least one file identifier that is used to uniquely identify the configuration file of the CM request.
  • each functional module in each embodiment of the present application may be used. It can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • FIG. 6 is a schematic structural diagram of an online configuration device for a cable modem according to an embodiment of the present invention.
  • the device includes a transceiver 601, a processor 602, and a memory 603.
  • the transceiver 601, the processor 602, and the memory 603 are connected to each other.
  • the specific connecting medium between the above components is not limited in the embodiment of the present invention.
  • the memory 603, the processor 602, and the transceiver 601 are connected by a bus 604 in FIG. 6.
  • the bus is indicated by a thick line in FIG. 6, and the connection manner between other components is only schematically illustrated. , not limited to.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus.
  • the transceiver 601 is configured to send a DHCP request message to the DHCP server, and receive a DHCP response message fed back by the DHCP server, where the DHCP response message carries at least one configuration file for uniquely identifying the CM request. File identification.
  • the processor 602 is configured to compare the file identifiers carried in the DHCP response packets with the file identifiers corresponding to the locally saved configuration files, and determine that the same file identifiers exist, and use the locally saved configuration files to complete the configuration.
  • the locally saved configuration file is obtained by the device from the simple file transfer protocol TFTP server and saved locally.
  • the file identifier corresponding to the locally saved configuration file is obtained by the device from the DHCP server and saved locally.
  • the memory 603 is used to store the program code executed by the processor 602, and may be a volatile memory, such as a random access memory (English: random-access memory, abbreviation: RAM);
  • the memory 603 may also be a non-volatile memory (English: non-volatile memory), such as read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard Disk drive, abbreviated as: HDD) or solid state drive (English: solid-state drive, SSD), or memory 603 can be used to carry or store desired program code in the form of an instruction or data structure and can be accessed by a computer. Any other medium, but not limited to this.
  • the memory 603 may be a combination of the above memories.
  • the processor 602 in the embodiment of the present invention may be a central processing unit (English: central processing unit, CPU for short).
  • the embodiment of the present invention provides a method for configuring a cable modem to go online.
  • the system and the device are: the CM sends a DHCP request message to the DHCP server, and receives a DHCP response message fed back by the DHCP server, where the DHCP response message carries at least one file for uniquely identifying the configuration file of the CM request.
  • logo The DHCP response message here carries the file identifier of the configuration file for uniquely identifying the CM request, and not the file name of the single configuration file, so the configuration file is effectively marked.
  • the CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the configuration file and the locally saved configuration file are required to be used when the same file identifier exists. Consistently, the configuration is completed using a locally saved configuration file.
  • the CM does not need to go to the TFTP server to download the configuration file, so the TFTP request configuration process in the prior art is omitted, the network traffic and system resource consumption are greatly reduced, and the service recovery time is accelerated, and the effect is in multiple CMs. It is more remarkable during the online process.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the device is implemented in a flow chart or Multiple processes and/or block diagrams The functions specified in one or more boxes.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention relates to the technical field of communications, and in particular, to an online configuration method, system, and apparatus for a cable modem. The method comprises: a CM sends a DHCP request message to a DHCP server, and receives a DHCP response message fed back by the DHCP server, the DHCP response message carrying at least one file identifier for uniquely identifying a configuration file requested by the CM; and the CM compares the file identifier carried in the DHCP response message with file identifiers corresponding to locally saved configuration files, and when it is determined that an identical file identifier exists, completes configuration by using a locally saved configuration file. Therefore, a TFTP request configuration procedure is omitted, network traffic and system resource consumption are greatly reduced, and service recovery time is shortened.

Description

一种线缆调制解调器的上线配置方法、系统及装置Cable modem uplink configuration method, system and device 技术领域Technical field

本发明涉及通信技术领域,特别是涉及一种线缆调制解调器的上线配置方法、系统及装置。The present invention relates to the field of communications technologies, and in particular, to a method, system, and apparatus for configuring a cable modem.

背景技术Background technique

线缆调制解调器(Cable Modem,CM),是在有线电视网络上用来上互联网的设备。其中,Cable是指有线电视网络,Modem是调制解调器。从现网的应用过程中可知,CM作为家庭终端设备,存在较为频繁的掉电或掉线,而每次掉电或掉线之后,都需要发起重新上线过程。而在每次上线过程中,CM都必须执行简单文件传输协议(Trivial File Transfer Protocol,TFTP)请求配置流程,该流程包含了CM配置文件请求,CM配置文件下发,CM解析配置文件并回传注册同轴媒体转换器(Coax Medium Converter,CMC),以及CMC解析CM回传消息等多个阶段。而事实上,一旦CM首次开机之后,CM的配置文件通常不会发生变化,因此每次CM上线都需要进行TFTP请求配置流程将会给系统带来不必要的负担。Cable Modem (CM) is a device used on the cable TV network to access the Internet. Among them, Cable refers to cable TV network, Modem is modem. It can be seen from the application process of the existing network that the CM is a home terminal device, and there are frequent power failures or dropped calls, and each time after power failure or offline, it is necessary to initiate a re-launch process. In the process of going online, the CM must perform the Trivial File Transfer Protocol (TFTP) request configuration process. The process includes the CM configuration file request, the CM configuration file is delivered, and the CM parses the configuration file and returns it. Registered Coax Medium Converter (CMC), and CMC to parse CM return messages and other stages. In fact, once the CM is powered on for the first time, the CM configuration file usually does not change. Therefore, each time the CM goes online, the TFTP request configuration process will bring unnecessary burden to the system.

特别的,在区域性掉电、电压及线路不稳定时,将会出现大容量CM同时上线的场景,此时上千台CM同时上线或频繁注册,将大大增加网络流量,影响业务恢复速度以及系统可靠性。另外,上千台CM同时上线不仅造成业务层面的流量冲击,还包括CMC系统内部解析配置文件时需要进行的大量高层协议交互,如板间通信消息等,这样一来将进一步带来了很多不必要的系统实现约束和系统资源的消耗。In particular, in the case of regional power failure, voltage and line instability, there will be a scenario where large-capacity CMs go online at the same time. At this time, thousands of CMs are online or frequently registered, which will greatly increase network traffic and affect service recovery speed. System reliability. In addition, the simultaneous launch of thousands of CMs not only causes traffic impact at the service level, but also involves a large number of high-level protocol interactions, such as inter-board communication messages, that need to be performed during the internal analysis of the CMC system, which will further bring a lot of Necessary system implementation constraints and system resource consumption.

现有技术中,CM通过DHCP只能获知CM配置文件的文件名,而CM本身并不能单纯从文件名中判断出CM配置文件是否变化。因此,每次CM上线都需要执行TFTP请求配置流程,带来了极大的系统资源消耗和网络带宽消耗,并造成业务恢复速度较慢的问题。 In the prior art, the CM can only know the file name of the CM configuration file through DHCP, and the CM itself cannot simply judge whether the CM configuration file changes from the file name. Therefore, each time the CM goes online, the TFTP request configuration process needs to be performed, which brings about a huge system resource consumption and network bandwidth consumption, and causes a problem that the service recovery speed is slow.

发明内容Summary of the invention

本发明实施例提供一种线缆调制解调器的上线配置方法、系统及装置,用以解决在CM上线过程中TFTP请求配置流程带来的较大系统资源消耗和网络带宽消耗,以及业务恢复速度较慢的问题。The embodiment of the invention provides a cable modem uplinking method, system and device, which are used to solve the problem of large system resource consumption and network bandwidth consumption caused by the TFTP request configuration process during the CM online process, and the service recovery speed is slow. The problem.

本发明实施例提供的具体技术方案如下:The specific technical solutions provided by the embodiments of the present invention are as follows:

第一方面,一种线缆调制解调器的上线配置方法,包括:In a first aspect, a method for configuring a cable modem to go online includes:

线缆调制解调器CM向动态主机配置协议DHCP服务器发送DHCP请求报文;并The cable modem CM sends a DHCP request message to the dynamic host configuration protocol DHCP server;

接收所述DHCP服务器反馈的DHCP响应报文,所述DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识;Receiving, by the DHCP server, a DHCP response message, where the DHCP response message carries at least one file identifier for uniquely identifying a configuration file of the CM request;

所述CM将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用所述本地已保存的配置文件完成自身配置;The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier exists, and uses the locally saved configuration file to complete the configuration. ;

其中,所述本地已保存的配置文件为所述CM从简单文件传输协议TFTP服务器获取并保存在本地,所述本地已保存的配置文件对应的文件标识为所述CM从所述DHCP服务器获取并保存在本地。The locally saved configuration file is obtained by the CM from the simple file transfer protocol TFTP server and saved locally, and the file identifier corresponding to the locally saved configuration file is obtained by the CM from the DHCP server. Save it locally.

结合第一方面,在第一方面的第一种可能的实现方式中,还包括:In combination with the first aspect, in a first possible implementation manner of the first aspect, the method further includes:

所述CM将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识时,向所述TFTP服务器发送配置文件请求消息,所述配置文件请求消息用于请求所述DHCP响应报文中携带的文件标识对应的配置文件;并The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the configuration file request message is sent to the TFTP server when the same file identifier does not exist. The configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response packet;

接收所述TFTP服务器根据所述配置文件请求消息下发的配置文件,以及根据所述TFTP服务器下发的配置文件完成自身配置;Receiving a configuration file that is sent by the TFTP server according to the configuration file request message, and completing the configuration according to the configuration file sent by the TFTP server;

所述CM使用所述TFTP服务器下发的配置文件,替换所述本地已保存的配置文件,并使用所述DHCP响应报文中携带的文件标识,替换所述本地已保存的配置文件对应的文件标识。 The CM replaces the locally saved configuration file with the configuration file delivered by the TFTP server, and replaces the file corresponding to the locally saved configuration file by using the file identifier carried in the DHCP response packet. Logo.

结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述CM根据所述TFTP服务器下发的配置文件完成自身配置之后,进一步包括:With the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, after the CM completes its configuration according to the configuration file sent by the TFTP server, the method further includes:

所述CM向同轴媒体转换器CMC发送所述TFTP服务器下发的配置文件,并接收所述CMC发送的配置成功消息。The CM sends a configuration file sent by the TFTP server to the coaxial media converter CMC, and receives a configuration success message sent by the CMC.

结合第一方面,在第一方面的第三种可能的实现方式中,所述DHCP响应报文中的option字段中携带所述至少一个用于唯一标识CM请求的配置文件的文件标识。In conjunction with the first aspect, in a third possible implementation manner of the first aspect, the option field in the DHCP response packet carries the file identifier of the at least one configuration file for uniquely identifying the CM request.

第二方面,一种线缆调制解调器的上线配置系统,包括:In a second aspect, a cable modem uplink configuration system includes:

CM,用于向DHCP服务器发送DHCP请求报文,并接收所述DHCP服务器反馈的DHCP响应报文;a CM, configured to send a DHCP request message to the DHCP server, and receive a DHCP response message fed back by the DHCP server;

将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用所述本地已保存的配置文件完成自身配置;Comparing the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determining that the same file identifier exists, using the locally saved configuration file to complete the configuration;

DHCP服务器,用于接收所述CM发送的所述DHCP请求报文,并向所述CM反馈所述DHCP响应报文;a DHCP server, configured to receive the DHCP request message sent by the CM, and feed back the DHCP response message to the CM;

其中,所述DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识,所述本地已保存的配置文件为所述CM从TFTP服务器获取并保存在本地,所述本地已保存的配置文件对应的文件标识为所述CM从所述DHCP服务器获取并保存在本地。The DHCP response packet carries at least one file identifier for uniquely identifying a configuration file of the CM request, where the locally saved configuration file is obtained by the CM from the TFTP server and saved locally, the local The file identifier corresponding to the saved configuration file is obtained by the CM from the DHCP server and saved locally.

结合第二方面,在第二方面的第一种可能的实现方式中,所述CM还用于:In conjunction with the second aspect, in a first possible implementation of the second aspect, the CM is further configured to:

将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识时,向所述TFTP服务器发送配置文件请求消息,其中,所述配置文件请求消息用于请求所述DHCP响应报文中携带的文件标识对应的配置文件;并Comparing the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determining that the same file identifier does not exist, sending a configuration file request message to the TFTP server, where The configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message;

接收所述TFTP服务器根据所述配置文件请求消息下发的配置文件,以及 采用所述TFTP服务器下发的配置文件完成自身配置;Receiving a configuration file sent by the TFTP server according to the configuration file request message, and The configuration file delivered by the TFTP server is used to complete the configuration.

使用所述TFTP服务器下发的配置文件,替换所述本地已保存的配置文件,并使用所述DHCP响应报文中携带的文件标识,替换所述本地已保存的配置文件对应的文件标识。And replacing, by using the configuration file sent by the TFTP server, the locally saved configuration file, and replacing the file identifier corresponding to the locally saved configuration file by using the file identifier carried in the DHCP response packet.

结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,还包括:In conjunction with the first possible implementation of the second aspect, in a second possible implementation of the second aspect, the method further includes:

TFTP服务器,用于接收所述CM发送的所述配置文件请求消息,并根据所述配置文件请求消息下发配置文件,其中,所述配置文件请求消息用于请求所述DHCP响应报文中携带的文件标识对应的配置文件。a TFTP server, configured to receive the configuration file request message sent by the CM, and send a configuration file according to the configuration file request message, where the configuration file request message is used to request the DHCP response message to be carried The file identifies the corresponding configuration file.

结合第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,所述CM还用于:In conjunction with the first possible implementation of the second aspect, in a third possible implementation of the second aspect, the CM is further configured to:

向CMC发送所述TFTP服务器下发的配置文件。The configuration file sent by the TFTP server is sent to the CMC.

结合第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,还包括:In conjunction with the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the method further includes:

CMC,用于接收所述CM发送的配置文件;a CMC, configured to receive a configuration file sent by the CM;

删除本地已保存的CM配置信息,其中,所述本地已保存的CM配置信息为所述CMC基于所述CM以前发送的配置文件进行配置后得到的CM配置信息;Deleting the locally saved CM configuration information, where the locally saved CM configuration information is CM configuration information obtained after the CMC is configured based on the configuration file previously sent by the CM;

根据所述CM发送的配置文件完成自身配置,并发送配置成功消息至所述CM,使用配置后得到的CM配置信息替换所述本地已保存的CM配置信息。The configuration is completed according to the configuration file sent by the CM, and a configuration success message is sent to the CM, and the locally saved CM configuration information is replaced by the CM configuration information obtained after the configuration.

第三方面,一种线缆调制解调器的上线配置装置,包括:In a third aspect, a cable modem uplink configuration device includes:

第一发送单元,用于向DHCP服务器发送DHCP请求报文;a first sending unit, configured to send a DHCP request message to the DHCP server;

第一接收单元,用于接收所述DHCP服务器反馈的DHCP响应报文,所述DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识;a first receiving unit, configured to receive a DHCP response message that is sent by the DHCP server, where the DHCP response message carries at least one file identifier that is used to uniquely identify a configuration file of the CM request;

第一处理单元,用于将所述第一接收单元51接收的所述DHCP响应报文 中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用所述本地已保存的配置文件完成自身配置;a first processing unit, configured to receive the DHCP response packet received by the first receiving unit 51 The file identifier carried in the file is compared with the file identifier corresponding to the locally saved configuration file. When it is determined that the same file identifier exists, the local saved configuration file is used to complete the configuration.

其中,所述本地已保存的配置文件为所述装置从简单文件传输协议TFTP服务器获取并保存在本地,所述本地已保存的配置文件对应的文件标识为所述装置从所述DHCP服务器获取并保存在本地。The locally saved configuration file is obtained by the device from the simple file transfer protocol TFTP server and saved locally, and the file identifier corresponding to the locally saved configuration file is obtained by the device from the DHCP server. Save it locally.

结合第三方面,在第三方面的第一种可能的实现方式中,还包括:In combination with the third aspect, in a first possible implementation manner of the third aspect, the method further includes:

第二处理单元,用于将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识时,向所述TFTP服务器发送配置文件请求消息,所述配置文件请求消息用于请求所述DHCP响应报文中携带的文件标识对应的配置文件;并The second processing unit is configured to compare the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determine that the same file identifier does not exist, and send the configuration to the TFTP server. a file request message, where the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message;

接收所述TFTP服务器根据所述配置文件请求消息下发的配置文件,以及根据所述TFTP服务器下发的配置文件完成自身配置;Receiving a configuration file that is sent by the TFTP server according to the configuration file request message, and completing the configuration according to the configuration file sent by the TFTP server;

以及使用所述TFTP服务器下发的配置文件,替换所述本地已保存的配置文件,并使用所述DHCP响应报文中携带的文件标识,替换所述本地已保存的配置文件对应的文件标识。And replacing the locally saved configuration file with the configuration file sent by the TFTP server, and replacing the file identifier corresponding to the locally saved configuration file by using the file identifier carried in the DHCP response packet.

结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,根据所述TFTP服务器下发的配置文件完成自身配置之后,进一步包括:With the first possible implementation of the third aspect, in a second possible implementation manner of the third aspect, after the configuration is completed according to the configuration file sent by the TFTP server, the method further includes:

第二发送单元,用于向CMC发送所述TFTP服务器下发的配置文件;a second sending unit, configured to send, to the CMC, a configuration file sent by the TFTP server;

第二接收单元,用于接收所述CMC发送的配置成功消息。And a second receiving unit, configured to receive a configuration success message sent by the CMC.

结合第三方面,在第三方面的第三种可能的实现方式中,所述DHCP响应报文中的option字段中携带所述至少一个用于唯一标识CM请求的配置文件的文件标识。In conjunction with the third aspect, in a third possible implementation manner of the third aspect, the option field in the DHCP response packet carries the file identifier of the at least one configuration file for uniquely identifying the CM request.

本发明有益效果如下:The beneficial effects of the present invention are as follows:

本发明实施例提供了一种线缆调制解调器的上线配置方法、系统及装置,该方法为:CM向DHCP服务器发送DHCP请求报文;并接收DHCP服务器反馈的DHCP响应报文,其中,DHCP响应报文中携带至少一个用于唯一标 识CM请求的配置文件的文件标识。这里的DHCP响应报文中携带了用于唯一标识CM请求的配置文件的文件标识,而不单一的配置文件的文件名,因此对配置文件进行了有效地标记。CM将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,表明本次上线需要使用的配置文件与本地已保存的配置文件一致,此时使用本地已保存的配置文件完成自身配置。CM无需再去TFTP服务器下载本次配置文件,因此省略了现有技术中TFTP请求配置流程,极大地减少了网络流量和系统资源消耗,并加快了业务恢复时间,而且这种效果在多个CM上线过程中更为显著。An embodiment of the present invention provides a method, a system, and a device for configuring a cable modem. The method is: the CM sends a DHCP request message to the DHCP server, and receives a DHCP response message fed back by the DHCP server, where the DHCP response message is sent. Carry at least one for the unique label The file identifier of the configuration file that identifies the CM request. The DHCP response message here carries the file identifier of the configuration file for uniquely identifying the CM request, and not the file name of the single configuration file, so the configuration file is effectively marked. The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the configuration file and the locally saved configuration file are required to be used when the same file identifier exists. Consistently, the configuration is completed using a locally saved configuration file. The CM does not need to go to the TFTP server to download the configuration file, so the TFTP request configuration process in the prior art is omitted, the network traffic and system resource consumption are greatly reduced, and the service recovery time is accelerated, and the effect is in multiple CMs. It is more remarkable during the online process.

附图说明DRAWINGS

图1为本发明实施例中线缆调制解调器的上线配置概述流程图;1 is a flow chart showing an outline of an online configuration of a cable modem according to an embodiment of the present invention;

图2为本发明实施例中DHCP响应报文的格式简图;2 is a schematic diagram of a format of a DHCP response message according to an embodiment of the present invention;

图3为本发明实施例中线缆调制解调器的上线配置系统的结构示意图;3 is a schematic structural diagram of an online line configuration system of a cable modem according to an embodiment of the present invention;

图4为本发明实施例中线缆调制解调器上线配置具体流程图。FIG. 4 is a specific flowchart of a cable modem going online configuration according to an embodiment of the present invention.

图5为本发明实施例中线缆调制解调器的上线配置装置结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for configuring an online modem of a cable modem according to an embodiment of the present invention; FIG.

图6为线缆调制解调器的上线配置设备的结构示意图。FIG. 6 is a schematic structural diagram of an online configuration device of a cable modem.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

本发明实施例提供了一种线缆调制解调器上线的方法及装置,用以解决在CM上线过程中TFTP请求配置流程带来的较大系统资源消耗和网络带宽消耗,以及业务恢复速度较慢的问题。其中,方法和装置是基于同一发明构思 的,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。The embodiment of the invention provides a method and a device for the cable modem to go online, which solves the problem of large system resource consumption, network bandwidth consumption and slow service recovery speed caused by the TFTP request configuration process during the CM online process. . Wherein the method and device are based on the same inventive concept Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description will not be repeated.

下面结合附图对本发明优选的实施方式进行详细说明。Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

本发明主要针对CM的非首次上线流程,CM第一次上线流程不变。The invention is mainly directed to the non-first online process of the CM, and the first online process of the CM is unchanged.

参阅图1所示,为CM侧线缆调制解调器的上线配置流程图,图中所示CM侧CM上线配置的具体过程为:Refer to Figure 1 for the configuration of the CM-side cable modem. The specific process of the CM-side CM on-line configuration is as follows:

步骤100:CM向DHCP服务器发送DHCP请求报文。Step 100: The CM sends a DHCP request message to the DHCP server.

根据现有的CM上线流程,在CM向DHCP服务器发送DHCP请求报文之前,CM需要首先执行与CMC的上线注册过程,并进一步可选地完成CMC对CM的认证过程。According to the existing CM online process, before the CM sends a DHCP request message to the DHCP server, the CM needs to perform the online registration process with the CMC first, and further optionally complete the CMC authentication process for the CM.

步骤110:CM接收DHCP服务器反馈的DHCP响应报文。Step 110: The CM receives a DHCP response message fed back by the DHCP server.

其中,DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识。The DHCP response packet carries at least one file identifier for identifying a configuration file of the CM request.

具体的,DHCP响应报文中的option字段中携带至少一个用于唯一标识CM请求的配置文件的文件标识。Specifically, the option field in the DHCP response packet carries at least one file identifier of a configuration file for uniquely identifying the CM request.

这里的唯一标识CM请求的配置文件的文件标识可以为配置文件的文件修改时间,根据配置文件生成的循环冗余校验码(Cyclic Redundancy Check,CRC),以及其他可以用于唯一标识CM请求的配置文件的文件标识。The file identifier of the configuration file that uniquely identifies the CM request may be the file modification time of the configuration file, the Cyclic Redundancy Check (CRC) generated according to the configuration file, and other information that can be used to uniquely identify the CM request. The file identifier of the configuration file.

参阅图2所示,为DHCP响应报文的格式简图,其中,DHCP响应报文中的option字段中携带配置文件的文件修改时间和配置文件的CRC两个唯一标识CM请求的配置文件的文件标识。As shown in FIG. 2, it is a schematic diagram of a format of a DHCP response message, where the option field in the DHCP response message carries the file modification time of the configuration file and the CRC of the configuration file, and two files that uniquely identify the configuration file requested by the CM. Logo.

步骤120:CM将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用本地已保存的配置文件完成自身配置。Step 120: The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier exists, and uses the locally saved configuration file to complete the configuration.

其中,本地已保存的配置文件为CM从TFTP服务器获取并保存在本地,本地已保存的配置文件对应的文件标识为CM从DHCP服务器获取并保存在本地。 The locally saved configuration file is obtained by the CM from the TFTP server and saved locally. The file identifier corresponding to the locally saved configuration file is obtained by the CM from the DHCP server and saved locally.

具体的,DHCP响应报文中可以携带一个或多个唯一标识CM请求的配置文件的文件标识。CM将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定DHCP响应报文中携带的至少一个文件标识与本地已保存的配置文件对应的文件标识相同时,使用本地已保存的配置文件完成自身配置。例如,DHCP响应报文中携带配置文件A的文件修改时间TA作为唯一标识CM请求的配置文件的文件标识,本地已保存的配置文件B对应的文件标识包括配置文件B的文件修改时间TB以及配置文件B的循环冗余校验码,因此通过将两者进行比较,确定TA=TB,则进一步确定配置文件A与配置文件B为相同的配置文件,则CM采用本地已保存的配置文件B完成自身配置。Specifically, the DHCP response packet may carry one or more file identifiers that uniquely identify the configuration file requested by the CM. The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that at least one file identifier carried in the DHCP response packet is associated with the file identifier corresponding to the locally saved configuration file. At the same time, use the locally saved configuration file to complete its configuration. For example, the file modification time T A of the configuration file A in the DHCP response message is used as the file identifier of the configuration file that uniquely identifies the CM request. The file identifier corresponding to the locally saved configuration file B includes the file modification time T B of the configuration file B. And the cyclic redundancy check code of the configuration file B. Therefore, by comparing the two and determining T A = T B , it is further determined that the configuration file A and the configuration file B are the same configuration file, and the CM adopts the locally saved configuration. Profile B completes its configuration.

因此,采用本发明提供的方法,当CM根据DHCP响应报文中携带的文件标识与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,表明本次上线需要使用的配置文件与本地已保存的配置文件一致。此时,CM无需再去TFTP服务器下载本次配置文件,而是直接从本地存储中找到本地已保存的配置文件完成上线配置,所以省略了现有技术中TFTP请求配置流程,极大地减少了网络流量和系统资源消耗,并加快了业务恢复时间,而且这种效果在多个CM上线过程中更为显著。Therefore, using the method provided by the present invention, when the CM compares the file identifiers carried in the DHCP response packets with the file identifiers corresponding to the locally saved configuration files, and determines that the same file identifier exists, it indicates that the online application needs to be used. The configuration file is consistent with the locally saved configuration file. At this time, the CM does not need to go to the TFTP server to download the configuration file, but directly finds the locally saved configuration file from the local storage to complete the online configuration, so the TFTP request configuration process in the prior art is omitted, and the network is greatly reduced. Traffic and system resources are consumed, and business recovery time is accelerated, and this effect is more pronounced in the process of multiple CMs going online.

此外,CM将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识,仍然需要通过TFTP请求配置流程完成自身配置。In addition, the CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier does not exist.

具体的,CM向TFTP服务器发送配置文件请求消息,其中,配置文件请求消息用于请求DHCP响应报文中携带的文件标识对应的配置文件。Specifically, the CM sends a configuration file request message to the TFTP server, where the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message.

CM接收TFTP服务器根据配置文件请求消息下发的配置文件,并根据TFTP服务器下发的配置文件完成自身配置。The CM receives the configuration file sent by the TFTP server according to the configuration file request message, and completes the configuration according to the configuration file sent by the TFTP server.

特别地,CM使用TFTP服务器下发的配置文件,替换本地已保存的配置文件,并使用DHCP响应报文中携带的文件标识,替换本地已保存的配置文件对应的文件标识,这样可以保证CM下次上线过程中与下次DHCP响应报 文中携带的文件标识进行比较。In particular, the CM uses the configuration file delivered by the TFTP server to replace the locally saved configuration file, and replaces the file identifier corresponding to the locally saved configuration file with the file identifier carried in the DHCP response packet, so that the CM can be guaranteed. The second online process and the next DHCP response report The file identifiers carried in the text are compared.

进一步地,CM根据TFTP服务器下发的配置文件完成自身配置之后,CM向CMC发送TFTP服务器下发的配置文件,用于CMC侧完成相应的配置过程,并接收CMC发送的配置成功消息。Further, after the CM completes its configuration according to the configuration file sent by the TFTP server, the CM sends a configuration file sent by the TFTP server to the CMC, and the CMC side completes the corresponding configuration process, and receives the configuration success message sent by the CMC.

参阅图3所示,为本发明实施例提供的一种线缆调制解调器的上线配置系统的结构示意图,该线缆调制解调器的上线配置系统,包括:FIG. 3 is a schematic structural diagram of a cable modem uplink configuration system according to an embodiment of the present invention. The cable modem uplink configuration system includes:

CM 30,用于向DHCP服务器31发送DHCP请求报文,并接收DHCP服务器31反馈的DHCP响应报文;The CM 30 is configured to send a DHCP request message to the DHCP server 31, and receive a DHCP response message fed back by the DHCP server 31.

将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用本地已保存的配置文件完成自身配置;The file identifiers carried in the DHCP response packets are compared with the file identifiers corresponding to the locally saved configuration files. When it is determined that the same file identifier exists, the local configuration file is used to complete the configuration.

DHCP服务器31,用于接收CM 30发送的DHCP请求报文,并向CM 30反馈所述DHCP响应报文。The DHCP server 31 is configured to receive the DHCP request message sent by the CM 30, and feed back the DHCP response message to the CM 30.

其中,DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识,本地已保存的配置文件为CM 30从TFTP服务器32获取并保存在本地,本地已保存的配置文件对应的文件标识为CM 30从DHCP服务器31获取并保存在本地。The DHCP response packet carries at least one file identifier for uniquely identifying the configuration file of the CM request. The locally saved configuration file is obtained by the CM 30 from the TFTP server 32 and saved locally, and the locally saved configuration file corresponds to the file identifier. The file identification is obtained by the CM 30 from the DHCP server 31 and saved locally.

可选的,CM 30还用于:Optionally, the CM 30 is also used to:

将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识时,向TFTP服务器32发送配置文件请求消息,其中,配置文件请求消息用于请求DHCP响应报文中携带的文件标识对应的配置文件;并Comparing the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determining that the same file identifier does not exist, sending a configuration file request message to the TFTP server 32, wherein the configuration file request message The configuration file corresponding to the file identifier carried in the DHCP response packet is requested; and

接收TFTP服务器32根据配置文件请求消息下发的配置文件,以及采用TFTP服务器32下发的配置文件完成自身配置;The receiving TFTP server 32 completes the configuration according to the configuration file delivered by the configuration file request message and the configuration file sent by the TFTP server 32.

使用TFTP服务器32下发的配置文件,替换本地已保存的配置文件,并使用DHCP响应报文中携带的文件标识,替换本地已保存的配置文件对应的文件标识。 The configuration file sent by the TFTP server 32 is used to replace the locally saved configuration file, and the file identifier carried in the DHCP response packet is replaced with the file identifier corresponding to the locally saved configuration file.

可选的,该系统还包括:Optionally, the system further includes:

TFTP服务器32,用于接收CM 30发送的配置文件请求消息,并根据配置文件请求消息下发配置文件,其中,配置文件请求消息用于请求DHCP响应报文中携带的文件标识对应的配置文件。The TFTP server 32 is configured to receive a configuration file request message sent by the CM 30, and send a configuration file according to the configuration file request message, where the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message.

可选的,CM 30还用于:Optionally, the CM 30 is also used to:

向CMC 33发送TFTP服务器32下发的配置文件。The configuration file sent by the TFTP server 32 is sent to the CMC 33.

可选的,该系统还包括:Optionally, the system further includes:

CMC 33,用于接收CM 30发送的配置文件;The CMC 33 is configured to receive a configuration file sent by the CM 30.

删除本地已保存的CM配置信息,其中,本地已保存的CM配置信息为CMC 33基于CM 30以前发送的配置文件进行配置后得到的CM配置信息;Deleting the locally saved CM configuration information, where the locally saved CM configuration information is the CM configuration information obtained by the CMC 33 based on the configuration file previously sent by the CM 30;

根据CM 30发送的配置文件完成自身配置,并发送配置成功消息至CM30,使用配置后得到的CM配置信息替换本地已保存的CM配置信息。The configuration is completed according to the configuration file sent by the CM 30, and the configuration success message is sent to the CM30, and the locally saved CM configuration information is replaced by the CM configuration information obtained after the configuration.

这里的CMC 33执行先删后建流程,首先删除本地已保存的CM配置信息,在根据本次接收的配置文件完成自身配置。Here, the CMC 33 performs the process of deleting and building the first, first deleting the locally saved CM configuration information, and completing the configuration according to the configuration file received this time.

上面所说的情况是CMC 33在接收到CM 30回传的本次配置文件后执行的操作,而当CM 30没有回传本次配置文件至CMC 33时,CMC 33侧已保存的CM配置信息不变,CMC33侧无需任何操作。The above situation is the operation performed by the CMC 33 after receiving the current configuration file sent back by the CM 30, and the CM configuration information saved on the CMC 33 side when the CM 30 does not return the current configuration file to the CMC 33. No change, no action is required on the CMC33 side.

下面以一个具体实施例说明上述线缆调制解调器的上线配置流程。The above process of configuring the cable modem is described below in a specific embodiment.

参阅图4所示,为本发明实施例中线缆调制解调器上线配置流程:Referring to FIG. 4, the cable modem online configuration process in the embodiment of the present invention is as follows:

步骤401:CM上线注册过程。Step 401: The CM goes online to register the process.

具体包括:搜索下行通道,获得同步,搜索上行通道描述信息,以及做测距。Specifically, it includes: searching for a downlink channel, obtaining synchronization, searching for an uplink channel description information, and performing ranging.

步骤402:CMC对CM作X.509认证,这个步骤是一个可选的步骤。Step 402: The CMC performs X.509 authentication on the CM. This step is an optional step.

步骤403:CM通过DHCP获取必要信息,包括获取CM的IP地址、TFTP服务器的地址等。Step 403: The CM obtains necessary information through DHCP, including acquiring an IP address of the CM, an address of the TFTP server, and the like.

步骤404:CM向DHCP服务器发送DHCP请求报文。Step 404: The CM sends a DHCP request message to the DHCP server.

步骤405:DHCP服务器向CM反馈用于响应DHCP请求报文的DHCP 响应报文。Step 405: The DHCP server feeds back to the CM the DHCP for responding to the DHCP request message. Response message.

其中,DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识。The DHCP response packet carries at least one file identifier for identifying a configuration file of the CM request.

步骤406:CM通过TOD协议服务器获取当前时间。Step 406: The CM acquires the current time through the TOD protocol server.

步骤407:CM将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用本地已保存的配置文件完成自身配置。Step 407: The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier exists, and uses the locally saved configuration file to complete the configuration.

步骤408:CM发送上线成功消息至CMC。Step 408: The CM sends an online success message to the CMC.

经过上述CM上线流程,CM上线成功,可以开始正常工作,由于一旦CM首次开机之后,CM的配置文件通常不会发生变化,因此,极大地减少了网络流量和系统资源消耗,并加快了业务恢复时间。After the above-mentioned CM online process, the CM is successfully launched, and normal operation can be started. Since the CM configuration file usually does not change once the CM is powered on for the first time, the network traffic and system resource consumption are greatly reduced, and the service recovery is accelerated. time.

参阅图5所示,本发明实施例提供一种线缆调制解调器的上线配置装置,该装置包括:Referring to FIG. 5, an embodiment of the present invention provides an apparatus for configuring a cable modem. The apparatus includes:

第一发送单元50,用于向DHCP服务器发送DHCP请求报文;The first sending unit 50 is configured to send a DHCP request message to the DHCP server.

第一接收单元51,用于接收DHCP服务器反馈的DHCP响应报文,DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识;The first receiving unit 51 is configured to receive a DHCP response message that is sent by the DHCP server, where the DHCP response message carries at least one file identifier that is used to uniquely identify the configuration file of the CM request.

第一处理单元52,用于将第一接收单元51接收的DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用本地已保存的配置文件完成自身配置;The first processing unit 52 is configured to compare the file identifier carried in the DHCP response packet received by the first receiving unit 51 with the file identifier corresponding to the locally saved configuration file, and determine that the same file identifier exists when the local file identifier is used. The saved configuration file completes its own configuration;

其中,本地已保存的配置文件为装置从简单文件传输协议TFTP服务器获取并保存在本地,本地已保存的配置文件对应的文件标识为装置从DHCP服务器获取并保存在本地。The locally saved configuration file is obtained by the device from the simple file transfer protocol TFTP server and saved locally. The file identifier corresponding to the locally saved configuration file is obtained by the device from the DHCP server and saved locally.

可选的,该装置还包括:Optionally, the device further includes:

第二处理单元53,用于将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识时,向TFTP服务器发送配置文件请求消息,配置文件请求消息用于请求DHCP响应报文中携带的文件标识对应的配置文件;并 The second processing unit 53 is configured to compare the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determine that the configuration file request message is sent to the TFTP server when the same file identifier does not exist. The configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response packet;

接收TFTP服务器根据配置文件请求消息下发的配置文件,以及根据TFTP服务器下发的配置文件完成自身配置;Receiving the configuration file sent by the TFTP server according to the configuration file request message, and completing the configuration according to the configuration file sent by the TFTP server;

以及使用TFTP服务器下发的配置文件,替换本地已保存的配置文件,并使用DHCP响应报文中携带的文件标识,替换本地已保存的配置文件对应的文件标识。And the configuration file sent by the TFTP server is used to replace the locally saved configuration file, and the file identifier carried in the DHCP response packet is replaced with the file identifier corresponding to the locally saved configuration file.

可选的,根据TFTP服务器下发的配置文件完成自身配置之后,进一步包括:Optionally, after the configuration is completed according to the configuration file sent by the TFTP server, the method further includes:

第二发送单元54,用于向CMC发送TFTP服务器下发的配置文件;The second sending unit 54 is configured to send, to the CMC, a configuration file sent by the TFTP server;

第二接收单元55,用于接收CMC发送的配置成功消息。The second receiving unit 55 is configured to receive a configuration success message sent by the CMC.

可选的,DHCP响应报文中的option字段中携带至少一个用于唯一标识CM请求的配置文件的文件标识。Optionally, the option field in the DHCP response packet carries at least one file identifier that is used to uniquely identify the configuration file of the CM request.

需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that, in the embodiment of the present invention, the division of the module is schematic, and only one logical function is divided. In actual implementation, there may be another division manner. In addition, each functional module in each embodiment of the present application may be used. It can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

本发明实施例还提供了一种线缆调制解调器的上线配置设备,如图6所示,图6为本发明实施例中线缆调制解调器的上线配置设备的结构示意图, 该设备包括收发器601、处理器602、存储器603。收发器601、处理器602以及存储器603相互连接。本发明实施例中不限定上述部件之间的具体连接介质。本发明实施例在图6中以存储器603、处理器602以及收发器601之间通过总线604连接,总线在图6中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The embodiment of the present invention further provides an online configuration device for a cable modem. As shown in FIG. 6, FIG. 6 is a schematic structural diagram of an online configuration device for a cable modem according to an embodiment of the present invention. The device includes a transceiver 601, a processor 602, and a memory 603. The transceiver 601, the processor 602, and the memory 603 are connected to each other. The specific connecting medium between the above components is not limited in the embodiment of the present invention. In the embodiment of the present invention, the memory 603, the processor 602, and the transceiver 601 are connected by a bus 604 in FIG. 6. The bus is indicated by a thick line in FIG. 6, and the connection manner between other components is only schematically illustrated. , not limited to. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus.

本发明实施例中,收发器601,用于向DHCP服务器发送DHCP请求报文,并接收DHCP服务器反馈的DHCP响应报文,DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识。In the embodiment of the present invention, the transceiver 601 is configured to send a DHCP request message to the DHCP server, and receive a DHCP response message fed back by the DHCP server, where the DHCP response message carries at least one configuration file for uniquely identifying the CM request. File identification.

处理器602,用于将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用本地已保存的配置文件完成自身配置;其中,本地已保存的配置文件为装置从简单文件传输协议TFTP服务器获取并保存在本地,本地已保存的配置文件对应的文件标识为装置从DHCP服务器获取并保存在本地。The processor 602 is configured to compare the file identifiers carried in the DHCP response packets with the file identifiers corresponding to the locally saved configuration files, and determine that the same file identifiers exist, and use the locally saved configuration files to complete the configuration. The locally saved configuration file is obtained by the device from the simple file transfer protocol TFTP server and saved locally. The file identifier corresponding to the locally saved configuration file is obtained by the device from the DHCP server and saved locally.

本发明实施例中存储器603,用于存储处理器602执行的程序代码,可以是易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器603也可以是非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD)、或者存储器603是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器603可以是上述存储器的组合。In the embodiment of the present invention, the memory 603 is used to store the program code executed by the processor 602, and may be a volatile memory, such as a random access memory (English: random-access memory, abbreviation: RAM); The memory 603 may also be a non-volatile memory (English: non-volatile memory), such as read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard Disk drive, abbreviated as: HDD) or solid state drive (English: solid-state drive, SSD), or memory 603 can be used to carry or store desired program code in the form of an instruction or data structure and can be accessed by a computer. Any other medium, but not limited to this. The memory 603 may be a combination of the above memories.

本发明实施例中处理器602,可以是一个中央处理单元(英文:central processing unit,简称CPU)。The processor 602 in the embodiment of the present invention may be a central processing unit (English: central processing unit, CPU for short).

综上所述,本发明实施例提供了一种线缆调制解调器的上线配置方法、 系统及装置,该方法为:CM向DHCP服务器发送DHCP请求报文;并接收DHCP服务器反馈的DHCP响应报文,其中,DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识。这里的DHCP响应报文中携带了用于唯一标识CM请求的配置文件的文件标识,而不单一的配置文件的文件名,因此对配置文件进行了有效地标记。CM将DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,表明本次上线需要使用的配置文件与本地已保存的配置文件一致,此时使用本地已保存的配置文件完成自身配置。CM无需再去TFTP服务器下载本次配置文件,因此省略了现有技术中TFTP请求配置流程,极大地减少了网络流量和系统资源消耗,并加快了业务恢复时间,而且这种效果在多个CM上线过程中更为显著。In summary, the embodiment of the present invention provides a method for configuring a cable modem to go online. The system and the device are: the CM sends a DHCP request message to the DHCP server, and receives a DHCP response message fed back by the DHCP server, where the DHCP response message carries at least one file for uniquely identifying the configuration file of the CM request. Logo. The DHCP response message here carries the file identifier of the configuration file for uniquely identifying the CM request, and not the file name of the single configuration file, so the configuration file is effectively marked. The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the configuration file and the locally saved configuration file are required to be used when the same file identifier exists. Consistently, the configuration is completed using a locally saved configuration file. The CM does not need to go to the TFTP server to download the configuration file, so the TFTP request configuration process in the prior art is omitted, the network traffic and system resource consumption are greatly reduced, and the service recovery time is accelerated, and the effect is in multiple CMs. It is more remarkable during the online process.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或 多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The device is implemented in a flow chart or Multiple processes and/or block diagrams The functions specified in one or more boxes.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and

显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the invention without departing from the spirit and scope of the embodiments of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the embodiments of the invention.

Claims (13)

一种线缆调制解调器的上线配置方法,其特征在于,包括:A cable modem uplink configuration method, comprising: 线缆调制解调器CM向动态主机配置协议DHCP服务器发送DHCP请求报文;并The cable modem CM sends a DHCP request message to the dynamic host configuration protocol DHCP server; 接收所述DHCP服务器反馈的DHCP响应报文,所述DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识;Receiving, by the DHCP server, a DHCP response message, where the DHCP response message carries at least one file identifier for uniquely identifying a configuration file of the CM request; 所述CM将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用所述本地已保存的配置文件完成自身配置;The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the same file identifier exists, and uses the locally saved configuration file to complete the configuration. ; 其中,所述本地已保存的配置文件为所述CM从简单文件传输协议TFTP服务器获取并保存在本地,所述本地已保存的配置文件对应的文件标识为所述CM从所述DHCP服务器获取并保存在本地。The locally saved configuration file is obtained by the CM from the simple file transfer protocol TFTP server and saved locally, and the file identifier corresponding to the locally saved configuration file is obtained by the CM from the DHCP server. Save it locally. 如权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising: 所述CM将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识时,向所述TFTP服务器发送配置文件请求消息,所述配置文件请求消息用于请求所述DHCP响应报文中携带的文件标识对应的配置文件;并The CM compares the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determines that the configuration file request message is sent to the TFTP server when the same file identifier does not exist. The configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response packet; 接收所述TFTP服务器根据所述配置文件请求消息下发的配置文件,以及根据所述TFTP服务器下发的配置文件完成自身配置;Receiving a configuration file that is sent by the TFTP server according to the configuration file request message, and completing the configuration according to the configuration file sent by the TFTP server; 所述CM使用所述TFTP服务器下发的配置文件,替换所述本地已保存的配置文件,并使用所述DHCP响应报文中携带的文件标识,替换所述本地已保存的配置文件对应的文件标识。The CM replaces the locally saved configuration file with the configuration file delivered by the TFTP server, and replaces the file corresponding to the locally saved configuration file by using the file identifier carried in the DHCP response packet. Logo. 如权利要求2所述的方法,其特征在于,所述CM根据所述TFTP服务器下发的配置文件完成自身配置之后,进一步包括:The method according to claim 2, wherein after the CM completes its configuration according to the configuration file sent by the TFTP server, the method further includes: 所述CM向同轴媒体转换器CMC发送所述TFTP服务器下发的配置文件,并接收所述CMC发送的配置成功消息。 The CM sends a configuration file sent by the TFTP server to the coaxial media converter CMC, and receives a configuration success message sent by the CMC. 如权利要求1所述的方法,其特征在于,所述DHCP响应报文中的option字段中携带所述至少一个用于唯一标识CM请求的配置文件的文件标识。The method according to claim 1, wherein the option field in the DHCP response message carries the file identifier of the at least one configuration file for uniquely identifying the CM request. 一种线缆调制解调器的上线配置系统,其特征在于,包括:An online configuration system for a cable modem, comprising: CM,用于向DHCP服务器发送DHCP请求报文,并接收所述DHCP服务器反馈的DHCP响应报文;将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用所述本地已保存的配置文件完成自身配置;The CM is configured to send a DHCP request message to the DHCP server, and receive a DHCP response message fed back by the DHCP server; and use the file identifier carried in the DHCP response message and the file identifier corresponding to the locally saved configuration file. When comparing and determining that the same file identifier exists, the local saved configuration file is used to complete the configuration; DHCP服务器,用于接收所述CM发送的所述DHCP请求报文,并向所述CM反馈所述DHCP响应报文;其中,所述DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识,所述本地已保存的配置文件为所述CM从TFTP服务器获取并保存在本地,所述本地已保存的配置文件对应的文件标识为所述CM从所述DHCP服务器获取并保存在本地。a DHCP server, configured to receive the DHCP request message sent by the CM, and feed back the DHCP response message to the CM, where the DHCP response message carries at least one identifier for uniquely identifying a CM request. a file identifier of the configuration file, where the locally saved configuration file is obtained from the TFTP server and saved locally, and the file identifier corresponding to the locally saved configuration file is obtained by the CM from the DHCP server. Save it locally. 如权利要求5所述的系统,其特征在于,所述CM还用于:The system of claim 5 wherein said CM is further configured to: 将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识时,向所述TFTP服务器发送配置文件请求消息,其中,所述配置文件请求消息用于请求所述DHCP响应报文中携带的文件标识对应的配置文件;并Comparing the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determining that the same file identifier does not exist, sending a configuration file request message to the TFTP server, where The configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message; 接收所述TFTP服务器根据所述配置文件请求消息下发的配置文件,以及采用所述TFTP服务器下发的配置文件完成自身配置;Receiving the configuration file sent by the TFTP server according to the configuration file request message, and completing the configuration by using the configuration file delivered by the TFTP server; 使用所述TFTP服务器下发的配置文件,替换所述本地已保存的配置文件,并使用所述DHCP响应报文中携带的文件标识,替换所述本地已保存的配置文件对应的文件标识。And replacing, by using the configuration file sent by the TFTP server, the locally saved configuration file, and replacing the file identifier corresponding to the locally saved configuration file by using the file identifier carried in the DHCP response packet. 如权利要求6所述的系统,其特征在于,还包括:The system of claim 6 further comprising: TFTP服务器,用于接收所述CM发送的所述配置文件请求消息,并根据所述配置文件请求消息下发配置文件,其中,所述配置文件请求消息用于请求所述DHCP响应报文中携带的文件标识对应的配置文件。 a TFTP server, configured to receive the configuration file request message sent by the CM, and send a configuration file according to the configuration file request message, where the configuration file request message is used to request the DHCP response message to be carried The file identifies the corresponding configuration file. 如权利要求6所述的系统,其特征在于,所述CM还用于:The system of claim 6 wherein said CM is further configured to: 向CMC发送所述TFTP服务器下发的配置文件。The configuration file sent by the TFTP server is sent to the CMC. 如权利要求8所述的系统,其特征在于,还包括:The system of claim 8 further comprising: CMC,用于接收所述CM发送的配置文件;a CMC, configured to receive a configuration file sent by the CM; 删除本地已保存的CM配置信息,其中,所述本地已保存的CM配置信息为所述CMC基于所述CM以前发送的配置文件进行配置后得到的CM配置信息;Deleting the locally saved CM configuration information, where the locally saved CM configuration information is CM configuration information obtained after the CMC is configured based on the configuration file previously sent by the CM; 根据所述CM发送的配置文件完成自身配置,并发送配置成功消息至所述CM,使用配置后得到的CM配置信息替换所述本地已保存的CM配置信息。The configuration is completed according to the configuration file sent by the CM, and a configuration success message is sent to the CM, and the locally saved CM configuration information is replaced by the CM configuration information obtained after the configuration. 一种线缆调制解调器的上线配置装置,其特征在于,包括:A cable modem uplink configuration device, comprising: 第一发送单元,用于向DHCP服务器发送DHCP请求报文;a first sending unit, configured to send a DHCP request message to the DHCP server; 第一接收单元,用于接收所述DHCP服务器反馈的DHCP响应报文,所述DHCP响应报文中携带至少一个用于唯一标识CM请求的配置文件的文件标识;a first receiving unit, configured to receive a DHCP response message that is sent by the DHCP server, where the DHCP response message carries at least one file identifier that is used to uniquely identify a configuration file of the CM request; 第一处理单元,用于将所述第一接收单元51接收的所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定存在相同的文件标识时,使用所述本地已保存的配置文件完成自身配置;a first processing unit, configured to compare a file identifier carried in the DHCP response packet received by the first receiving unit 51 with a file identifier corresponding to a locally saved configuration file, to determine that the same file identifier exists , using the locally saved configuration file to complete its configuration; 其中,所述本地已保存的配置文件为所述装置从简单文件传输协议TFTP服务器获取并保存在本地,所述本地已保存的配置文件对应的文件标识为所述装置从所述DHCP服务器获取并保存在本地。The locally saved configuration file is obtained by the device from the simple file transfer protocol TFTP server and saved locally, and the file identifier corresponding to the locally saved configuration file is obtained by the device from the DHCP server. Save it locally. 如权利要求10所述的装置,其特征在于,还包括:The device of claim 10, further comprising: 第二处理单元,用于将所述DHCP响应报文中携带的文件标识,与本地已保存的配置文件对应的文件标识进行比较,确定不存在相同的文件标识时,向所述TFTP服务器发送配置文件请求消息,所述配置文件请求消息用于请求所述DHCP响应报文中携带的文件标识对应的配置文件;并The second processing unit is configured to compare the file identifier carried in the DHCP response packet with the file identifier corresponding to the locally saved configuration file, and determine that the same file identifier does not exist, and send the configuration to the TFTP server. a file request message, where the configuration file request message is used to request a configuration file corresponding to the file identifier carried in the DHCP response message; 接收所述TFTP服务器根据所述配置文件请求消息下发的配置文件,以及 根据所述TFTP服务器下发的配置文件完成自身配置;Receiving a configuration file sent by the TFTP server according to the configuration file request message, and Performing its own configuration according to the configuration file sent by the TFTP server; 以及使用所述TFTP服务器下发的配置文件,替换所述本地已保存的配置文件,并使用所述DHCP响应报文中携带的文件标识,替换所述本地已保存的配置文件对应的文件标识。And replacing the locally saved configuration file with the configuration file sent by the TFTP server, and replacing the file identifier corresponding to the locally saved configuration file by using the file identifier carried in the DHCP response packet. 如权利要求11所述的装置,其特征在于,根据所述TFTP服务器下发的配置文件完成自身配置之后,进一步包括:The device according to claim 11, wherein after the configuration is completed according to the configuration file sent by the TFTP server, the method further includes: 第二发送单元,用于向CMC发送所述TFTP服务器下发的配置文件;a second sending unit, configured to send, to the CMC, a configuration file sent by the TFTP server; 第二接收单元,用于接收所述CMC发送的配置成功消息。And a second receiving unit, configured to receive a configuration success message sent by the CMC. 如权利要求10所述的装置,其特征在于,所述DHCP响应报文中的option字段中携带所述至少一个用于唯一标识CM请求的配置文件的文件标识。 The device according to claim 10, wherein the option field in the DHCP response message carries the file identifier of the at least one configuration file for uniquely identifying the CM request.
PCT/CN2015/087868 2015-08-21 2015-08-21 Online configuration method, system, and apparatus for cable modem Ceased WO2017031650A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/087868 WO2017031650A1 (en) 2015-08-21 2015-08-21 Online configuration method, system, and apparatus for cable modem

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/087868 WO2017031650A1 (en) 2015-08-21 2015-08-21 Online configuration method, system, and apparatus for cable modem

Publications (1)

Publication Number Publication Date
WO2017031650A1 true WO2017031650A1 (en) 2017-03-02

Family

ID=58101161

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087868 Ceased WO2017031650A1 (en) 2015-08-21 2015-08-21 Online configuration method, system, and apparatus for cable modem

Country Status (1)

Country Link
WO (1) WO2017031650A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163167A (en) * 2019-12-30 2020-05-15 深圳前海微众银行股份有限公司 System installation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474978A (en) * 2000-11-17 2004-02-11 摩托罗拉公司 Method and apparatus for selecting a download software image for a cable modem
US20050005154A1 (en) * 2003-07-03 2005-01-06 Andrew Danforth Method to block unauthorized access to TFTP server configuration files
CN101009764A (en) * 2006-01-27 2007-08-01 中国科学院声学研究所 A network upgrade method of the TFTP-based IPTV STB software
US20080232801A1 (en) * 2007-03-20 2008-09-25 Erich Arnold Method and system for transporting docsis communication signals over a passive optical network
CN102577429A (en) * 2011-11-10 2012-07-11 华为技术有限公司 Method, device and system for service provisioning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474978A (en) * 2000-11-17 2004-02-11 摩托罗拉公司 Method and apparatus for selecting a download software image for a cable modem
US20050005154A1 (en) * 2003-07-03 2005-01-06 Andrew Danforth Method to block unauthorized access to TFTP server configuration files
CN101009764A (en) * 2006-01-27 2007-08-01 中国科学院声学研究所 A network upgrade method of the TFTP-based IPTV STB software
US20080232801A1 (en) * 2007-03-20 2008-09-25 Erich Arnold Method and system for transporting docsis communication signals over a passive optical network
CN102577429A (en) * 2011-11-10 2012-07-11 华为技术有限公司 Method, device and system for service provisioning

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163167A (en) * 2019-12-30 2020-05-15 深圳前海微众银行股份有限公司 System installation method and device

Similar Documents

Publication Publication Date Title
CN106911728B (en) The choosing method and device of host node in distributed system
US11575592B2 (en) Message processing method and apparatus, control-plane device, and computer storage medium
CN103200271B (en) The method of ARM server and automation installation system thereof
EP3276917B1 (en) Terminal remote assistance method, device and system
WO2019184164A1 (en) Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium
CN110784557B (en) Detecting hardware address conflicts in a computer network
CN103414589B (en) A kind of method and device managing resource information
CN113778463B (en) A business service deployment method and device
JP6359652B2 (en) Information transmission method, apparatus and device
CN105656653A (en) Network access method of newly added node in distributed coordination system, device and system
CN102726025B (en) Service package installation method and related device
CN103379446B (en) Multi-terminal control method and device based on wifi
CN107566433A (en) A kind of cloud terminal logs in virtual desktop method and device
CN112532704A (en) Data transmission method and device, electronic equipment and storage medium
CN112272244A (en) Router WAN end IPv6 internet mode configuration method and device
CN107528788B (en) Method and device for realizing automatic stacking between network devices
US10402282B1 (en) Assisted device recovery
US11165744B2 (en) Faster duplicate address detection for ranges of link local addresses
CN108768849B (en) Message processing method and device
CN103442041A (en) Method, device and system for upgrading firmware of embedded device
WO2012155645A1 (en) Network startup method and system for diskless device based on peer to peer
CN115174389A (en) Upgrading method, device, equipment and readable storage medium
WO2017031650A1 (en) Online configuration method, system, and apparatus for cable modem
CN106612307B (en) Method and device for realizing always-on service
CN107172228A (en) Change the method and apparatus and computer-readable recording medium of virtual machine IP address

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

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

Country of ref document: EP

Kind code of ref document: A1