WO2020048177A1 - 机顶盒管理方法、装置、设备及存储介质 - Google Patents

机顶盒管理方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2020048177A1
WO2020048177A1 PCT/CN2019/090780 CN2019090780W WO2020048177A1 WO 2020048177 A1 WO2020048177 A1 WO 2020048177A1 CN 2019090780 W CN2019090780 W CN 2019090780W WO 2020048177 A1 WO2020048177 A1 WO 2020048177A1
Authority
WO
WIPO (PCT)
Prior art keywords
top box
dhcp
message
management
session management
Prior art date
Application number
PCT/CN2019/090780
Other languages
English (en)
French (fr)
Inventor
施玮
陶金泉
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020048177A1 publication Critical patent/WO2020048177A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Definitions

  • This application relates to, but is not limited to, the field of communications technologies, and in particular, to a method, device, device, and storage medium for managing a set-top box.
  • a set-top box (digital video conversion box), as a connection device between video and external signals, is a vital device in digital video informatization.
  • set-top boxes In the process of informatization development, set-top boxes inevitably communicate with data communication equipment.
  • the interaction process involves data networks such as broadband access networks, convergence networks, and Internet Data Center (IDC) central computer rooms.
  • IDC Internet Data Center
  • the set-top box In the management network of data communication, the set-top box needs to complete the process of obtaining the management communication address and data initialization; in the business communication network, the process of obtaining the business communication address needs to be completed, so the set-top box needs to perform the operation of switching the management communication address and the business communication address.
  • set-top box manufacturers, equipment manufacturers, operators, and service providers use the Dynamic Host Configuration Protocol (DHCP) protocol to implement the communication interaction process in the management and distribution of network addresses and business network addresses.
  • DHCP Dynamic Host Configuration Protocol
  • the set-top box may hang during the switching of the management communication address and the business communication address.
  • the embodiments of the present application are expected to provide a method, device, device, and storage medium for managing a set-top box, to solve the problem that the set-top box hangs in the process of switching between the management communication address and the business communication address in the related art.
  • An embodiment of the present application provides a set-top box management method, including:
  • the session management resource is released, and a DHCP Release message is sent to the management server, so that the management server releases the set-top box based on the DHCP Release message.
  • the management communication address assigned in the management server is described.
  • determining whether a session management resource of the set-top box exists based on the DHCP message includes:
  • detecting whether a service change occurs on the set-top box based on the DHCP message includes:
  • the type of the DHCP message is a DHCP Discover message
  • the set-top box If it is detected that there is a Vendor class identifier and / or a Host name carried in the DHCP Discover message in the description information of the session management resource, the set-top box has no service change; otherwise, the set-top box has a service change.
  • detecting whether a service change occurs on the set-top box based on the DHCP message includes:
  • the type of the DHCP message is a DHCP Request message
  • detecting whether the DHCP Request message carries Internet protocol IP address information and server identification information of the STB
  • the service of the set-top box has not changed; otherwise, the service of the set-top box has changed.
  • the method when a business change is detected in the set-top box, the method further includes:
  • the application also provides a set-top box management device, including:
  • a first judgment module configured to determine, when a dynamic host configuration protocol DHCP message sent by a set-top box is received, based on the DHCP message, to determine whether a session management resource of the set-top box already exists;
  • a second judgment module configured to detect whether a service change occurs on the set-top box based on the DHCP message when it is determined that the session management resource already exists
  • the execution module is configured to release the session management resource when a service change of the set-top box is detected, and send a DHCP Release message to the management server for the management server to release based on the DHCP Release message A management communication address allocated by the set-top box in the management server.
  • the first judgment module is further configured:
  • the second judgment module is further configured:
  • the type of the DHCP message is a DHCP Discover message
  • the set-top box If it is detected that there is a Vendor class identifier and / or a Host name carried in the DHCP Discover message in the description information of the session management resource, the set-top box has not undergone a service change; otherwise, the set-top box has undergone a service change.
  • the second judgment module is further configured:
  • the type of the DHCP message is a DHCP Request message
  • detecting whether the DHCP Request message carries Internet protocol IP address information and server identification information of the STB
  • the service of the set-top box has not changed; otherwise, the service of the set-top box has changed.
  • the device further includes:
  • a feedback module configured to send a DHCP NAK message to the set-top box when it detects that a service change has occurred on the set-top box, so that the set-top box re-replies the DHCP Request message based on the DHCP NAK message pass.
  • the application also provides a set-top box management device.
  • the set-top box management device includes a processor and a memory.
  • the processor is configured to execute a program for managing the set-top box stored in the memory, so as to implement the steps of the above-mentioned set-top box management method.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned set-top box management. Method steps.
  • the present application has at least the following beneficial technical effects:
  • the set-top box management method, device, device and computer-readable storage medium described in this application can effectively prevent the set-top box from hanging up during the management communication address and business communication address switching process, and effectively improve the stability of the set-top box. Improve the user experience of the set-top box.
  • FIG. 1 is a flowchart of a method for interacting a set-top box in a data communication network according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for interacting a set-top box in a data communication network according to an embodiment of the present application
  • FIG. 3 is a flowchart of a method for interacting a set-top box in a data communication network according to an embodiment of the present application
  • FIG. 4 is a flowchart of a set-top box management method according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a set-top box management method according to an embodiment of the present application.
  • FIG. 6 is a flowchart of a set-top box management method according to an embodiment of the present application.
  • FIG. 7 is a flowchart of a set-top box management method according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a set-top box management device according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a set-top box management device according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a set-top box management device according to an embodiment of the present application.
  • Step S101 the set-top box sends a first message to the broadband access router, the broadband access router sends the first message to the management server, the management server returns the management communication address to the broadband access router, and the broadband access router returns the management communication address to Set-top boxes.
  • the first message can be a DHCP Discover message.
  • the set-top box manages the address allocation process, that is, after the STB is powered on for the first time, it sends the DHCP Discover message to the Broadband Access Router (DHCP Relay Relay Server) with the manufacturer initialization information
  • the broadband access router determines that the set-top box is in an initial state according to the information carried in the DHCP Discover message, and sends the DHCP Discover message to the management server (DHCPServer # 1); the management server (DHCPServer # 1) issues communication Use the STB address (that is, the management communication address), the version machine address, and the related configuration server Trivial File Transfer Protocol (TFTP) address to notify the STB to download, and the STB obtains the management communication address IP # 1.
  • TFTP Trivial File Transfer Protocol
  • Step S102 The set-top box sends a second message to the broadband access router, and the broadband access router sends a second message to the management server.
  • the second message may be a DHCP Release message.
  • the STB downloads the new version and business data, it restarts the STB.
  • the STB restart operation needs to send a DHCP Release message to the broadband access router to notify the broadband access router and the management server to release the management communication address IP # 1 resource.
  • Step S103 the set-top box sends the first message to the broadband access router, the broadband access router sends the first message to the management server, the management server returns the business communication address to the broadband access router, and the broadband access router returns the business communication address to Set-top boxes.
  • the first message can be a DHCP Discover message.
  • the set-top box service address allocation process that is, the STB sends the DHCP Discover message carrying the user service information to the broadband access router.
  • Information content it is determined that the set-top box has completed data initialization and has obtained the service communication address for this request; the broadband access router sends data to the service management server (DHCPServer # 2); the service management server (DHCPServer # 2) issues business communications Address, the set-top box obtains the business communication address IP # 2; the set-top box completes the assignment of the business communication address and starts normal business mutual visits.
  • the set-top box (digital video conversion box) hangs during the process of switching between the management communication address and the business communication address in two different environments during the data communication network interaction, including:
  • Step S201 the set-top box sends the first message to the broadband access router, the broadband access router sends the first message to the management server, the management server returns the management communication address IP # 1 to the broadband access router, and the broadband access router returns management The communication address IP # 1 is for the set-top box.
  • the set-top box manages the address allocation process, that is, after the set-top box is powered on for the first time, it sends the DHCP initialization message to the broadband access router (DHCP Relay server) with the manufacturer's initialization information.
  • the broadband access router determines the content of the information carried in the DHCP discovery message.
  • the set-top box is in the initial state and sends a DHCP Discover message to the management server (DHCPServer # 1); the management server (DHCPServer # 1) issues the address of the set-top box for communication, the version machine address, and the related configuration server TFTP (Trivial file) Transfer Protocol (Simple File Transfer Protocol) address, to notify the set-top box to download, and the set-top box obtains the management communication address IP # 1.
  • DHCPServer # 1 Trivial file Transfer Protocol (Simple File Transfer Protocol) address
  • step S202 the set-top box fails to send the second message, and the broadband access router fails to send the second message.
  • the second message may be a DHCP Release message.
  • the set-top box device Before the set-top box device restarts to load new data, it needs to send a DHCP Release message to notify the broadband access router and management server to release the session management resources occupied in step S201; due to the implementation of the set-top box or link stability factors, it will The DHCP Release message was not sent, the content was sent incorrectly, or it was lost during transmission. As a result, the broadband access router and management server did not receive the session management resource release request as expected, and the session management resources continued to be occupied.
  • Step S203 the set-top box sends the first message to the broadband access router, the broadband access router sends the first message to the management server, the management server returns the management communication address to the broadband access router, and the broadband access router returns the management communication address to Set-top boxes.
  • the set-top box device After the set-top box device restarts, it sends a DHCP Discover message to request a business communication address.
  • the broadband access router finds that the communication connection between the set-top box and the management server still exists, and the data message is delivered to the management server for address reapplication;
  • the management server finds that the management communication address IP # 1 assigned to the set-top box is still in normal use.
  • the management server responds with the management communication address IP # 1 and assigns the set-top box to the management communication address IP # 1; the set-top box is currently The obtained address is IP # 1, and IP # 1 is the management communication address used by the management network.
  • IP # 1 cannot be identified in the business communication network, and the set-top box hangs. At this time, it is necessary to wait for the DHCP protocol on the broadband access router and the management server to age before the set-top box can assign a normal address. In the process, the restart of the set-top box cannot solve the hanging problem.
  • Step S301 the set-top box sends a first message to the broadband access router, the broadband access router sends the first message to the management server, the management server returns the management communication address IP # 1 to the broadband access router, and the broadband access router returns management The communication address IP # 1 is for the set-top box.
  • the set-top box manages the address assignment process, that is, after the set-top box is powered on for the first time, it sends the DHCP initialization message to the broadband access router (DHCPRelay relay server) with the manufacturer's initialization information.
  • the incoming router determines that the set-top box is in the initial state, and sends the DHCP Discover message to the management server (DHCPServer # 1); the management server (DHCPServer # 1) issues the address of the set-top box for communication. , Version machine address, and the relevant configuration server TFTP (Trivial File Transfer Protocol) address, to notify the set-top box to download, and the set-top box obtains the management communication address IP # 1.
  • Step S302 The set-top box fails to send the second message, and the broadband access router fails to send the second message.
  • the STB before the STB restarts to load new data, it needs to send a DHCP Release message to notify the broadband access router and management server to release the session management resources occupied in step S301.
  • the implementation of the set-top box or the stability of the link may cause the DHCPRelease message not to be sent, the content to be sent incorrectly, or lost during the transmission process.
  • the broadband access router and management server do not receive the session management resource release request as expected, and the session management resource continues. Occupied.
  • Step S303 the set-top box sends a third message to the broadband access router, the broadband access router sends the third message to the management server, the management server returns the management communication address IP # 1 to the broadband access router, and the broadband access router returns management The communication address IP # 1 is for the set-top box.
  • the third message can be a DHCP Request message.
  • Fast online is a speed dialing method defined by the DHCP protocol.
  • the fast online process does not send a DHCP Discover message, but directly sends a DHCP Request message.
  • the message is sent in broadcast mode.
  • the broadband access router receives the DHCP Request message, It is found that the communication connection between the set-top box and the management server still exists, and the DHCP Request message is delivered to the management server.
  • the management server After receiving the DHCP Request message, the management server finds that the management communication address IP # 1 assigned to the set-top box is still in normal use, and the management server uses The management communication address IP # 1 responds, and the set-top box will be assigned to the management communication address IP # 1.
  • the set-top box currently obtains the management communication address IP # 1, and the management communication address IP # 1 is the management network use address.
  • the management communication address IP # 1 cannot be identified in the business communication network, and the set-top box hangs during the fast online process; this In this case, it is necessary to wait for the DHCP protocol on the broadband access router and the management server to age before the set-top box can assign a normal address. In the process, the restart of the set-top box cannot solve the hanging problem.
  • the method for managing a set-top box provided in the embodiment of the present application is applied to a data communication network, and is used to avoid the hang-up defect of the set-top box in the process of switching the management communication address and the business communication address, and improve the stability of the set-top box, which is used to solve the related technology
  • the set-top box hangs. There is no need to upgrade the set-top box equipment on the existing network, and there is no need to make uniform technical rectification requirements for the current set-top box vendor and server provider equipment.
  • An embodiment of the present application provides a method for managing a set-top box. As shown in FIG. 4, the method includes the following steps:
  • Step S401 When receiving a DHCP message sent by a set-top box, based on the DHCP message, determine whether a session management resource of the set-top box already exists.
  • the type of the DHCP message is not limited, and may be a DHCP Discover message or a DHCP Request message.
  • a manner of determining whether a session management resource of the set-top box already exists includes, but is not limited to:
  • step S402 if it is determined that a session management resource exists, based on the DHCP message, it is detected whether a service change has occurred on the set-top box.
  • the method for detecting whether a service change of a set-top box is not limited based on the DHCP message, and whether the service change of the set-top box can be detected based on information carried in one or more setting fields in the DHCP message. .
  • step S403 when it is detected that the set-top box has undergone a service change, the session management resources are released, and a DHCP Release message is sent to the management server for the management server to release the set-top box allocated in the management server based on the DHCP release message.
  • Manage communication addresses when it is detected that the set-top box has undergone a service change, the session management resources are released, and a DHCP Release message is sent to the management server for the management server to release the set-top box allocated in the management server based on the DHCP release message.
  • the process of switching between the management communication address and the business communication address of the set-top box is avoided.
  • the hang-up defect occurs in the set-top box, avoiding the hang-up problem that occurs when the set-top box switches between the management communication address and the business communication address. It is necessary to wait for the DHCP protocol on the broadband access router and the management server to age before the set-top box can assign a normal address.
  • the method for managing a set-top box described in the first embodiment of the present application can effectively avoid the hang-up defect of the set-top box in the process of switching management communication addresses and business communication addresses, effectively improving the stability of the set-top box, and improving the user experience of the set-top box.
  • An embodiment of the present application further provides a method for managing a set-top box. As shown in FIG. 5, the method includes the following steps:
  • step S501 when receiving a DHCP Discover message sent by a set-top box, it is detected whether the MAC address carried in the DHCP discovery message is stored; if it is detected that the MAC address is stored, it is determined that a session management of the set-top box exists. Resources; otherwise, it is determined that there is no session management resource for the set-top box.
  • the MAC address of the set-top box when the MAC address of the set-top box is detected, it indicates that the MAC address of the set-top box has been used, so it can be determined that the session management resources of the set-top box have been occupied; otherwise, the session management resources of the set-top box can be determined. Not occupied.
  • step S502 when it is determined that the session management resource of the set-top box already exists, it is detected whether the description information of the session management resource exists in the vendor discovery identifier information (Vendor class identifier) and / or the domain name information ( Host name); If it is detected that the manufacturer class identification information and / or domain name information carried in the DHCP discovery message exists in the description information of the session management resource, the set-top box has not undergone a service change; otherwise, the set-top box has undergone a service change.
  • the vendor discovery identifier information Vendor class identifier
  • Host name domain name
  • the Vendor class identifier carried in the DHCP Discover message is the Vendor class identifier carried in the option60 field of the DHCP Discover message; and the Host name carried in the DHCP Discover message is the Host name carried in the option 12 field of the DHCP Discover message.
  • a method for detecting whether there is a Vendor class identifier and / or a Host name carried in the DHCP Discover message in the description information of the session management resource includes, but is not limited to:
  • the description information of the session management resource is a list of session management resources.
  • step S503 when it is detected that the set-top box has undergone a service change, the session management resource is released, and a DHCP release message is sent to the management server for the management server to release the management communication allocated by the set-top box in the management server based on the DHCP release message. address.
  • the method for managing a set-top box described in the embodiments of the present application can effectively avoid the hang-up defect of the set-top box in the process of switching the management communication address and the service communication address, effectively improve the stability of the set-top box, and improve the user experience of the set-top box.
  • An embodiment of the present application further provides a method for managing a set-top box. As shown in FIG. 6, the method includes the following steps:
  • step S601 when receiving a DHCP Request message sent by the set-top box, it is detected whether the MAC address carried in the DHCP request message is stored; if it is detected that the MAC address is stored, it is determined that session management of the set-top box already exists. Resources; otherwise, it is determined that there is no session management resource for the set-top box.
  • the MAC address of the set-top box when the MAC address of the set-top box is detected, it indicates that the MAC address of the set-top box has been used, so it can be determined that the session management resources of the set-top box have been occupied; otherwise, the session management resources of the set-top box can be determined. Not occupied.
  • step S602 when it is determined that the session management resources of the set-top box already exist, it is detected whether the DHCP request message carries the Internet Protocol (IP) address information and server identification information (Server identification) of the set-top box; if the DHCP request message Carrying the IP address information and server identification information, the set-top box has not changed its business; otherwise, the set-top box has changed its business.
  • IP Internet Protocol
  • Server identification server identification
  • the IP address information carried in the DHCP Request message is the IP address information carried in the ciaddr field in the DHCP Request message; the Server identity carried in the DHCP Request message is the Server identity identified carried in the option54 field of the DHCP Request message.
  • step S602 includes:
  • the IP address information carried in the ciaddr field in the DHCP Request message and the Server identityify carried in the option54 field are detected; if both the ciaddr field and option54 in the DHCP Request message are not 0, The service of the set-top box has not changed; if both the ciaddr field and option54 in the DHCP Request message are 0, the service of the set-top box has changed.
  • Step S603 When it is detected that the set-top box has undergone a service change, release the session management resource, and send a DHCP release message to the management server for the management server to release the management communication allocated by the set-top box in the management server based on the DHCP release message. address.
  • Step S604 Send a DHCP NAK message to the set-top box for the set-top box to retransmit the DHCP request message based on the DHCP NAK message.
  • the method for managing a set-top box described in the embodiments of the present application can effectively avoid the hang-up defect of the set-top box in the process of switching the management communication address and the service communication address, effectively improve the stability of the set-top box, and improve the user experience of the set-top box.
  • step S701 the session is retrieved. If there is a set-top box session, step S707 is performed, and if there is no set-top box session, step S702 is performed.
  • the Broadband Access Router (DHCP Relay Server) receiver sends a DHCP protocol message using the client MAC address in the DHCP message for session retrieval. If the client MAC address information used by the set-top box is not retrieved If the set-top box session does not exist on the broadband access router, step S702 is performed; if the client MAC address information used by the set-top box is detected, the device believes that the set-top box session exists, and step S707 is performed.
  • DHCP Relay Server DHCP Relay Server
  • Step S702 Generate a session management resource table.
  • the broadband access router performs session management resource allocation, generates a session management resource table with the client MAC address as the main index, and executes step S703.
  • Step S703 feature data extraction.
  • the data processing unit of the broadband access router extracts characteristic data of the DHCP message, extracts initialization data information or related service information including user names and domain names, analyzes access requirements of the set-top box, and stores the extracted information, and executes step S704.
  • Step S704 Forward the DHCP message to the DHCP server.
  • the DHCP protocol module of the broadband access router forwards the DHCP message to the corresponding DHCP server according to the analysis result of the data processing unit to implement accurate data delivery, and execute step S705.
  • Step S705 Assign the management communication address.
  • the DHCP server After the DHCP server receives the DHCP message forwarded by the device, it performs normal DHCP protocol interaction, assigns the correct IP address to the set-top box, the relay device DHCP protocol module completes the normal DHCP protocol interaction process, and forwards the management communication address assigned to the set-top box. Step S706 is performed.
  • step S706 the processing flow is ended.
  • the set-top box obtains the correct IP address for communication access, and the process ends.
  • step S707 it is determined whether the received DHCP message is a DHCP discovery message. If so, step S708 is performed, and if not, step S714 is performed.
  • the broadband access router has a session management resource table corresponding to the set-top box, it is considered that the set-top box has initiated an address request and received a response from the DHCP server. If the received DHCP message is a DHCP discovery message, go to step S708; if the received DHCP message is not a DHCP discovery message, go to step S714.
  • Step S708 feature data extraction.
  • the Broadband Access Router data processing unit extracts the characteristic data of the DHCP discovery message, such as Option 60 (Vendor class identifier) carried in the extracted data message and Set-top box option 12 (Host name, domain name information) Message, execute step S709.
  • Option 60 Vendor class identifier
  • Set-top box option 12 Host name, domain name information
  • step S709 whether option 12 is consistent is compared. If they are consistent, step S710 is performed. If they are not consistent, step S711 is performed.
  • step S711 Compare the Option 12 (Host name, domain name information) information extracted from the DHCP discovery message with the Option 12 (Host name, domain name information) information stored in the session management resource table. If they are not consistent, go to step S711; if they are consistent, go to step S710. .
  • step S710 whether option 60 is consistent is compared. If they are consistent, step S724 is performed. If they are not consistent, step S711 is performed.
  • Step S711 Compare the Option 60 (Vendor Class Identifier) information extracted from the DHCP Discovery message with the Option 60 (Vendor Class Identifier) information stored in the session management resource table. If they are not the same, Step S711 is performed; if they are consistent, step S724 is performed.
  • Step S711 Release the stored session management resources.
  • the broadband access router acts as a DHCP Relay relay server, releases the stored session management resources, and executes step S712.
  • Step S712 Send a DHCP release message to the server.
  • the broadband access router acts as a DHCP Relay relay server, sends a DHCP Release message to the DHCP Server that originally assigned the address, releases the management communication address allocated on the DHCP server, and executes step S713.
  • Step S713 waiting for retransmission of the DHCP discovery message.
  • the broadband access router does not process or respond to the DHCP discovery message received this time, and waits for the set-top box to retransmit the DHCP Discover message. After the retransmission of the DHCP protocol message, the content check of step S701 is performed.
  • step S714 it is determined whether the received DHCP message is a DHCP discovery message. If so, step S715 is performed; if not, step S724 is performed.
  • step S715 is performed; if the data message is not a DHCP request message, step S724 is performed.
  • Step S715 feature data extraction.
  • the data processing unit of the broadband access router extracts the data features of the DHCP request message, extracts the ciaddr (IP address information) field and option54 (server identification) field carried in the data packet, and executes step S716.
  • step S716 it is determined whether the ciaddr field in the DHCP Request message is 0. If it is 0, it is considered that the set-top box has not been assigned IP address information, and step S717 is performed; if not, step S722 is performed.
  • step S717 it is determined whether the option54 (server identification) field in the DHCP Request message is 0. If it is 0, it is considered that the set-top box has not been assigned a corresponding server identifier, and step S718 is performed; if not, step S722 is performed.
  • step S718 the stored session management resources are released.
  • the broadband access router acts as a DHCP Relay relay server, releases the stored session management resources, and executes step S719.
  • Step S719 Send a DHCP release message to the server.
  • the broadband access router acts as a DHCP Relay relay server, sends a DHCP Release message to the DHCP Server that originally assigned the address, releases the management communication address allocated on the DHCP Server, and executes step S720.
  • Step S720 Reply the DHCP Nak message to the set-top box.
  • the broadband access router acts as a DHCP Relay relay server, and returns a DHCP Nak message to the set-top box, asking the set-top box to re-initiate a DHCP Request message, request a service address, and execute step S721.
  • Step S721 waiting for the set-top box to retransmit the DHCP request message.
  • the broadband access router does not perform any processing and response to the DHCP Request message received this time, and further waits for the set-top box to retransmit the DHCP Request message. After the retransmitted DHCP protocol message, the content check of step S701 is performed.
  • step S722 it is determined whether the DHCP Request message is a lease renewal message of the set-top box. If it is, the normal lease renewal message processing flow is executed, and step S723 is performed; if it is not a lease renewal message, step S724 is performed.
  • Step S723 Send a lease renewal message to the DHCP server.
  • the broadband access router as a relay server needs to send a lease renewal message to the DHCP Server, and the device performs normal DHCP lease renewal message interaction.
  • Step S724 Discard the DHCP messages that do not meet the protocol specifications.
  • the method for managing a set-top box described in the embodiments of the present application can effectively avoid the hang-up defect of the set-top box in the process of switching the management communication address and the service communication address, effectively improve the stability of the set-top box, and improve the user experience of the set-top box.
  • An embodiment of the present application further provides a set-top box management device. As shown in FIG. 8, the device includes the following components:
  • the first determining module 10 is configured to, when receiving a DHCP message sent by a set-top box, determine whether a session management resource of the set-top box already exists based on the DHCP message.
  • the type of the DHCP message is not limited, and may be a DHCP Discover message or a DHCP Request message.
  • the first judgment module 10 is further configured to:
  • the second determining module 20 is configured to detect, based on the DHCP message, whether a service change occurs on the set-top box when it is determined that a session management resource exists.
  • the method of detecting whether a set-top box has undergone a service change based on the DHCP message is not specifically limited, and it is possible to detect whether the set-top box has a service based on information carried in one or more setting fields in the DHCP message. change.
  • the execution module 30 is configured to release a session management resource when a service change of the set-top box is detected, and send a DHCP Release message to the management server for the management server to release the set-top box allocated in the management server based on the DHCP Release message.
  • the process of switching between the management communication address and the business communication address of the set-top box is avoided.
  • the hang-up defect occurs in the set-top box, avoiding the hang-up problem that occurs when the set-top box switches between the management communication address and the business communication address. It is necessary to wait for the DHCP protocol on the broadband access router and the management server to age before the set-top box can assign a normal address.
  • the device for managing a set-top box described in the embodiments of the present application can effectively avoid the hang-up defect of the set-top box in the process of switching the management communication address and the service communication address, effectively improve the stability of the set-top box, and improve the user experience of the set-top box.
  • An embodiment of the present application further provides a set-top box management device. As shown in FIG. 8, the device includes the following components:
  • the first determining module 10 is configured to detect whether the MAC address carried in the DHCP Discover message is stored when receiving the DHCP Discover message sent by the set-top box; if it is detected that the MAC address is stored, it is determined that the Session management resources; otherwise, it is determined that there is no session management resource for the set-top box.
  • the MAC address of the set-top box when the MAC address of the set-top box is detected, it indicates that the MAC address of the set-top box has been used, so it can be determined that the session management resources of the set-top box have been occupied; otherwise, the session management resources of the set-top box can be determined. Not occupied.
  • the second determining module 20 is configured to detect whether there is a Vendor class identifier (vendor class identifier) and a Vendor class identifier carried in the DHCP Discover message in the description information of the session management resource when it is determined that the session management resource of the set-top box already exists. / Or Host name (domain name information); if it is detected that there is a Vendor class identifier and / or Host name carried in the DHCP Discover message in the description information of the session management resource, the set-top box service has not changed; otherwise, the set-top box service has occurred change.
  • the Vendor class identifier carried in the DHCP Discover message is the Vendor class identifier carried in the option60 field of the DHCP Discover message; and the Host name carried in the DHCP Discover message is the Host name carried in the option 12 field of the DHCP Discover message.
  • a method for detecting whether there is a Vendor class identifier and / or a Host name carried in the DHCP Discover message in the description information of the session management resource includes, but is not limited to:
  • the description information of the session management resource is a list of session management resources.
  • the execution module 30 is configured to release a session management resource when a service change of the set-top box is detected, and send a DHCP Release message to the management server for the management server to release the set-top box allocated in the management server based on the DHCP Release message.
  • the device for managing a set-top box described in the embodiments of the present application can effectively avoid the hang-up defect of the set-top box in the process of switching the management communication address and the service communication address, effectively improve the stability of the set-top box, and improve the user experience of the set-top box.
  • An embodiment of the present application further provides a set-top box management device. As shown in FIG. 9, the device includes the following components:
  • the first determining module 10 is configured to detect whether the MAC address carried in the DHCP Request message is stored when receiving the DHCP Request message sent by the set-top box; if it is detected that the MAC address is stored, it is determined that the set-top box already exists. Session management resources; otherwise, it is determined that there is no session management resource for the set-top box.
  • the MAC address of the set-top box when the MAC address of the set-top box is detected, it indicates that the MAC address of the set-top box has been used, so it can be determined that the session management resources of the set-top box have been occupied; otherwise, the session management resources of the set-top box can be determined. Not occupied.
  • the second determining module 20 is configured to detect whether the DHCP Request message carries the IP (Internet Protocol) address information of the set-top box and Server identification information when determining that the session management resources of the set-top box already exist; If the DHCP Request message carries the IP address information and Server identification, the service of the set-top box has not changed; otherwise, the service of the set-top box has changed.
  • IP Internet Protocol
  • the IP address information carried in the DHCP Request message is the IP address information carried in the ciaddr field in the DHCP Request message; the Server identity carried in the DHCP Request message is the Server identity identified carried in the option54 field of the DHCP Request message.
  • the second judgment module 20 is further configured:
  • the IP address information carried in the ciaddr field of the DHCP Request message and the Server identityify carried in the option54 field are detected; if both the ciaddr field and option54 in the DHCP Request message are not 0, the set-top box is not A service change has occurred; if both the ciaddr field and option54 in the DHCP Request message are 0, the set-top box has undergone a service change.
  • the execution module 30 is configured to release the session management resource when a service change of the set-top box is detected, and send a DHCP Release message to the management server for the management server to release the set-top box to allocate to the management server based on the DHCP Release message. Management communication address.
  • the feedback module 40 is configured to send a DHCP NAK message to the set-top box for the set-top box to retransmit the DHCP Request message based on the DHCP NAK message.
  • the device for managing a set-top box described in the embodiments of the present application can effectively avoid the hang-up defect of the set-top box in the process of switching the management communication address and the service communication address, effectively improve the stability of the set-top box, and improve the user experience of the set-top box.
  • the embodiment of the present application further provides a set-top box management device, as shown in FIG. 10, including the following components:
  • the processor 501 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or One or more integrated circuits configured to implement embodiments of the present application.
  • the memory 502 is configured to store executable instructions of the processor 501.
  • the memory 502 is configured to store a program code and transmit the program code to the processor 501.
  • the memory 502 may include volatile memory (Volatile Memory), such as Random Access Memory (RAM); the memory 502 may also include non-volatile memory (Non-Volatile Memory), such as Read-only memory (Read- Only Memory (ROM), Flash Memory (Flash), Hard Disk Drive (HDD), or Solid State Drive (SSD);
  • volatile memory such as Random Access Memory (RAM)
  • non-Volatile Memory such as Read-only memory (Read- Only Memory (ROM), Flash Memory (Flash), Hard Disk Drive (HDD), or Solid State Drive (SSD)
  • ROM Read-only memory
  • Flash Flash Memory
  • HDD Hard Disk Drive
  • SSD Solid State Drive
  • the memory 502 may also include a combination of the above types of memories.
  • the processor 501 is configured to call the program code management code stored in the memory 502 and execute the set-top box management method provided in the embodiment of the present application.
  • the set-top box management device is a broadband access router (DHCP Relay Server).
  • DHCP Relay Server broadband access router
  • the set-top box management device described in the embodiment of the present application can effectively avoid the hang-up defect of the set-top box during the management communication address and business communication address switching process, effectively improve the stability of the set-top box, and improve the user experience of the set-top box.
  • An embodiment of the present application further provides a computer-readable storage medium.
  • the computer storage medium may be a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile hard disk, a CD-ROM, or any known in the art. Other forms of storage media.
  • the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the set-top box management method provided by the embodiment of the present application.
  • the computer-readable storage medium provided in the embodiment of the present application stores one or more programs, and the one or more programs can be executed by one or more processors, which can effectively prevent the set-top box from switching between the management communication address and the business communication address. Hanging defects appear in the process, which effectively improves the stability of the set-top box and improves the user experience of the set-top box.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请公开了一种机顶盒管理方法,包括:当接收到机顶盒发送的动态主机配置协议DHCP报文时,基于所述DHCP报文,判断是否已存在所述机顶盒的会话管理资源;在判定已存在所述会话管理资源的情况下,基于所述DHCP报文,检测所述机顶盒是否发生业务变更;在检测到所述机顶盒已发生业务变更的情况下,释放所述会话管理资源,并向管理服务器发送DHCP释放(Release)报文,以供所述管理服务器基于所述DHCP释放报文,释放所述机顶盒在所述管理服务器中分配的管理通信地址。本申请还公开了一种机顶盒管理装置、设备及存储介质。

Description

机顶盒管理方法、装置、设备及存储介质
相关申请的交叉引用
本申请基于申请号为201811031549.1、申请日为2018年09月05日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及但不限于通信技术领域,尤其涉及一种机顶盒管理方法、装置、设备及存储介质。
背景技术
随着互联网数字视频技术的发展,数字视频技术大量应用在家庭宽带和企业数据通讯领域。机顶盒(数字视频变换盒)作为视频与外部信号的连接设备,是数字视频信息化中至关重要的设备。
机顶盒在信息化发展过程中,不可避免地与数据通讯设备进行通讯交互,交互过程涉及宽带接入网、汇聚网和互联网数据中心(Internet Data Center,IDC)中心机房等数据网络。机顶盒在数据通讯的管理网络中,需要完成获取管理通讯地址,数据初始化的过程;在业务通讯网络中,需要完成获取业务通讯地址的过程,因此机顶盒需要进行管理通信地址与业务通信地址切换的操作。相关技术中,机顶盒厂商、设备厂商、运营商和服务提供商在管理网络地址和业务网络地址的分配及切换的通讯交互过程中,统一采用动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)协议实现。但是,由于数据通讯设备对DHCP协议理解或实现不一致,造成机顶盒在管理通信地址与业务通信地址切换过程中会出现挂死情况。
发明内容
有鉴于此,本申请实施例期望提供一种机顶盒管理方法、装置、设备及存储介质,用以解决相关技术中机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的问题。
本申请实施例提供一种机顶盒管理方法,包括:
当接收到机顶盒发送的DHCP报文时,基于所述DHCP报文,判断是否已存在所述机顶盒的会话管理资源;
在判定已存在所述会话管理资源的情况下,基于所述DHCP报文,检测所述机顶盒是否发生业务变更;
在检测到所述机顶盒已发生业务变更的情况下,释放所述会话管理资源,并向管理服务器发送DHCP Release报文,以供所述管理服务器基于所述DHCP Release报文释放所述机顶盒在所述管理服务器中分配的管理通信地址。
上述方案中,所述基于所述DHCP报文,判断是否已存在所述机顶盒的会话管理资源,包括:
检测是否已存储所述DHCP报文携带的媒体访问控制MAC地址;
若检测到已存储所述MAC地址,则判定已存在所述会话管理资源;否则判定不存在所述会话管理资源。
上述方案中,所述基于所述DHCP报文,检测所述机顶盒是否发生业务变更,包括:
在所述DHCP报文的类型为DHCP Discover报文的情况下,检测所述会话管理资源的描述信息中是否存在所述DHCP Discover报文携带的厂商类标识信息Vendor class identifier和/或域名信息Host name;
若检测到所述会话管理资源的描述信息中存在所述DHCP Discover报文携带的Vendor class identifier和/或Host name,则所述机顶盒未发生业务 变更;否则所述机顶盒已发生业务变更。
上述方案中,所述基于所述DHCP报文,检测所述机顶盒是否发生业务变更,包括:
在所述DHCP报文的类型为DHCP Request报文的情况下,检测所述DHCP Request报文是否携带所述机顶盒的互联网协议IP地址信息和服务器标识信息Server identify;
若检测到所述DHCP Request报文携带所述IP地址信息和Server identify,则所述机顶盒未发生业务变更;否则所述机顶盒已发生业务变更。
上述方案中,在检测到所述机顶盒已发生业务变更的情况下,所述方法还包括:
向所述机顶盒发送DHCP NAK报文,以供所述机顶盒基于所述DHCP NAK报文对所述DHCP Request报文进行重传。
本申请还提供一种机顶盒管理装置,包括:
第一判断模块,配置为当接收到机顶盒发送的动态主机配置协议DHCP报文时,基于所述DHCP报文,判断是否已存在所述机顶盒的会话管理资源;
第二判断模块,配置为在判定已存在所述会话管理资源的情况下,基于所述DHCP报文,检测所述机顶盒是否发生业务变更;
执行模块,配置为在检测到所述机顶盒已发生业务变更的情况下,释放所述会话管理资源,并向管理服务器发送DHCP Release报文,以供所述管理服务器基于所述DHCP Release报文释放所述机顶盒在所述管理服务器中分配的管理通信地址。
上述方案中,所述第一判断模块,还配置为:
检测是否已存储所述DHCP报文携带的媒体访问控制(Media Access Control,MAC)地址;
若检测到已存储所述MAC地址,则判定已存在所述会话管理资源;否 则判定未存在所述会话管理资源。
上述方案中,所述第二判断模块,还配置为:
在所述DHCP报文的类型为DHCP Discover报文的情况下,检测所述会话管理资源的描述信息中是否存在所述DHCP Discover报文携带的厂商类标识信息Vendor class identifier和/或域名信息Host name;
若检测到所述会话管理资源的描述信息中存在所述DHCP Discover报文携带的Vendor class identifier和/或Host name,则所述机顶盒未发生业务变更;否则所述机顶盒已发生业务变更。
上述方案中,所述第二判断模块,还配置为:
在所述DHCP报文的类型为DHCP Request报文的情况下,检测所述DHCP Request报文是否携带所述机顶盒的互联网协议IP地址信息和服务器标识信息Server identify;
若所述DHCP Request报文携带所述IP地址信息和Server identify,则所述机顶盒未发生业务变更;否则所述机顶盒已发生业务变更。
上述方案中,所述装置还包括:
反馈模块,配置为在检测到所述机顶盒已发生业务变更的情况下,向所述机顶盒发送DHCP NAK报文,以供所述机顶盒基于所述DHCP NAK报文对所述DHCP Request报文进行重传。
本申请还提供一种机顶盒管理设备,所述机顶盒管理设备包括处理器和存储器;所述处理器配置为执行存储器中存储的机顶盒管理的程序,以实现上述的机顶盒管理方法的步骤。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现上述的机顶盒管理方法的步骤。
采用上述技术方案,本申请至少具有下列有益技术效果:
本申请所述一种机顶盒管理方法、装置、设备及计算机可读存储介质, 能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
附图说明
图1为本申请实施例提供的机顶盒在数据通讯网络交互方法流程图;
图2为本申请实施例提供的机顶盒在数据通讯网络交互方法流程图;
图3为本申请实施例提供的机顶盒在数据通讯网络交互方法流程图;
图4为本申请实施例提供的机顶盒管理方法流程图;
图5为本申请实施例提供的机顶盒管理方法流程图;
图6为本申请实施例提供的机顶盒管理方法流程图;
图7为本申请实施例提供的机顶盒管理方法流程图;
图8为本申请实施例提供的机顶盒管理装置组成结构示意图;
图9为本申请实施例提供的机顶盒管理装置组成结构示意图;
图10为本申请实施例提供的机顶盒管理设备组成结构示意图。
具体实施方式
以下为更进一步阐述本申请为达成预定目的所采取的技术手段及功效,以下结合附图及较佳实施例,对本申请进行详细说明如后。
如图1所示,机顶盒(数字视频变换盒)在数据通讯网络交互过程中,至少存在两次不同环境中的地址通讯过程,包括:
步骤S101,机顶盒发送第一报文至宽带接入路由器,宽带接入路由器将第一报文发送至管理服务器,管理服务器返回管理通信地址给宽带接入路由器,宽带接入路由器返回管理通信地址给机顶盒。
在实际应用中,第一报文可以为DHCP Discover报文,机顶盒管理地址分配过程,即机顶盒首次加电后,携带厂商初始化信息发送DHCP Discover报文至宽带接入路由器(DHCP Relay中继服务器),宽带接入路由 器根据DHCP Discover报文携带的信息内容,判定该机顶盒为初始状态,并将DHCP Discover报文发送至管理服务器(DHCP Server#1);管理服务器(DHCP Server#1)下发通讯用机顶盒地址(即管理通信地址),版本机地址,及相关配置服务器简单文件传输协议(Trivial File Transfer Protocol,TFTP)地址,通知机顶盒下载,机顶盒获取管理通信地址IP#1。
步骤S102,机顶盒发送第二报文给宽带接入路由器,宽带接入路由器发送第二报文给管理服务器。
在实际应用中,第二报文可以为DHCP Release报文。机顶盒下载新版本及业务数据后,进行机顶盒重启操作。机顶盒重启操作需要发送DHCP Release报文至宽带接入路由器,通知宽带接入路由器、管理服务器释放管理通信地址IP#1资源。
步骤S103,机顶盒发送第一报文至宽带接入路由器,宽带接入路由器将第一报文发送至管理服务器,管理服务器返回业务通讯地址给宽带接入路由器,宽带接入路由器返回业务通讯地址给机顶盒。
在实际应用中,第一报文可以为DHCP Discover报文,机顶盒业务地址分配过程,即机顶盒将携带用户业务信息的DHCP Discover报文发送至宽带接入路由器,宽带接入路由器根据DHCP Discover携带的信息内容,判定机顶盒已经完成数据初始化,已经获取本次请求业务通讯地址;宽带接入路由器将数据发往业务管理服务器(DHCP Server#2);业务管理服务器(DHCP Server#2)下发业务通讯地址,机顶盒获取业务通讯地址IP#2;机顶盒完成业务通讯地址分配,开始进行正常业务互访。
如图2所示,机顶盒(数字视频变换盒)在数据通讯网络交互过程中,在两次不同环境中管理通信地址与业务通信地址切换过程中出现挂死,包括:
步骤S201,机顶盒发送第一报文至宽带接入路由器,宽带接入路由器将第一报文发送至管理服务器,管理服务器返回管理通信地址IP#1给宽带 接入路由器,宽带接入路由器返回管理通信地址IP#1给机顶盒。
机顶盒管理地址分配过程,即机顶盒首次加电后,携带厂商初始化信息发送DHCP Discover报文至宽带接入路由器(DHCP Relay中继服务器),宽带接入路由器根据DHCP Discover报文携带的信息内容,判定该机顶盒为初始状态,并将DHCP Discover报文发送至管理服务器(DHCP Server#1);管理服务器(DHCP Server#1)下发通讯用机顶盒地址,版本机地址,及相关配置服务器TFTP(Trivial File Transfer Protocol,简单文件传输协议)地址,通知机顶盒下载,机顶盒获取管理通信地址IP#1。
步骤S202,机顶盒发送第二报文失败,宽带接入路由器发送第二报文失败。
在实际应用中,第二报文可以为DHCP Release报文。机顶盒设备在重新启动加载新数据前,需要发送DHCP Release报文,通知宽带接入路由器及管理服务器释放在步骤S201过程中占用的会话管理资源;由于机顶盒实现或者链路稳定性因素等原因,会出现DHCP Release报文没有发送、发送内容错误或者发送过程中丢失情况,导致宽带接入路由器及管理服务器没有如期收到会话管理资源释放请求,会话管理资源继续被占用。
步骤S203,机顶盒发送第一报文至宽带接入路由器,宽带接入路由器将第一报文发送至管理服务器,管理服务器返回管理通信地址给宽带接入路由器,宽带接入路由器返回管理通信地址给机顶盒。
机顶盒设备重启后发送DHCP Discover报文,请求业务通讯地址,宽带接入路由器收到DHCP Discover报文后,发现机顶盒与管理服务器通讯连接仍然存在,数据报文会投递到管理服务器进行地址重新申请;管理服务器收到请求报文后,发现给机顶盒分配的管理通信地址IP#1仍然在正常使用,管理服务器使用管理通信地址IP#1进行回复,将机顶盒分配到管理通信地址IP#1;机顶盒当前获取地址为IP#1,IP#1为管理网络使用的管理通信地址,在业务通讯网络中无法识别管理地址IP#1,机顶盒出现挂死现 象。此时,需等待宽带接入路由器和管理服务器上DHCP协议老化,机顶盒才能分配正常地址,过程中机顶盒重启不能解决挂死问题。
如图3所示,机顶盒(数字视频变换盒)在快速上线过程中,在两次不同环境中管理通信地址与业务通信地址切换过程中出现挂死,包括:
步骤S301,机顶盒发送第一报文至宽带接入路由器,宽带接入路由器将第一报文发送至管理服务器,管理服务器返回管理通信地址IP#1给宽带接入路由器,宽带接入路由器返回管理通信地址IP#1给机顶盒。
以第一报文为DHCP Discover报文为例,机顶盒管理地址分配过程,即机顶盒首次加电后,携带厂商初始化信息发送DHCP Discover报文至宽带接入路由器(DHCP Relay中继服务器),宽带接入路由器根据DHCP Discover报文携带的信息内容,判定该机顶盒为初始状态,并将DHCP Discover报文发送至管理服务器(DHCP Server#1);管理服务器(DHCP Server#1)下发通讯用机顶盒地址,版本机地址,及相关配置服务器TFTP(Trivial File Transfer Protocol,简单文件传输协议)地址,通知机顶盒下载,机顶盒获取管理通信地址IP#1。
步骤S302,机顶盒发送第二报文失败,宽带接入路由器发送第二报文失败。
以第二报文为DHCP Release报文为例,机顶盒在重新启动加载新数据前,需要发送DHCP Release报文,通知宽带接入路由器及管理服务器释放在步骤S301过程中占用的会话管理资源;由于机顶盒实现或者链路稳定性因素,会出现DHCP Release报文没有发送、发送内容错误或者发送过程中丢失情况,导致宽带接入路由器及管理服务器没有如期收到会话管理资源释放请求,会话管理资源继续被占用。
步骤S303,机顶盒发送第三报文至宽带接入路由器,宽带接入路由器将第三报文发送至管理服务器,管理服务器返回管理通信地址IP#1给宽带接入路由器,宽带接入路由器返回管理通信地址IP#1给机顶盒。
这里,第三报文可以为DHCP Request报文,机顶盒重启后,会进入快速上线过程。快速上线为DHCP协议定义的一种快速拨号方式,快速上线过程不会发送DHCP Discover报文,直接发送DHCP Request报文,报文采用广播方式发送,宽带接入路由器收到DHCP Request报文后,发现机顶盒与管理服务器通讯联接仍然存在,DHCP Request报文会向管理服务器进行投递;管理服务器收到DHCP Request报文后,发现给机顶盒分配的管理通信地址IP#1仍然在正常使用,管理服务器使用管理通信地址IP#1进行回复,机顶盒将分配到管理通信地址IP#1。
机顶盒当前获取地址为管理通信地址IP#1,管理通信地址IP#1为管理网络使用地址,在业务通讯网络中无法识别管理通信地址IP#1,机顶盒在快速上线过程中出现挂死现象;此时,需等待宽带接入路由器和管理服务器上DHCP协议老化,机顶盒才能分配正常地址,过程中机顶盒重启不能解决挂死问题。
本申请实施例提供的机顶盒管理方法,应用于数据通讯网络中,用于避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,提高了机顶盒的稳定性,用以解决相关技术中机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的问题。无需对现网机顶盒设备做技术升级,无需对当前机顶盒供货商和服务器提供商设备做统一技术整改要求。
本申请实施例提供一种机顶盒管理方法,如图4所示,包括以下步骤:
步骤S401,当接收到机顶盒发送的DHCP报文时,基于该DHCP报文,判断是否已存在该机顶盒的会话管理资源。
在一些实施例中,对DHCP报文的类型不做限定,可以是DHCP Discover报文,也可以是DHCP Request报文。
在一些实施例中,基于该DHCP报文,判断是否已存在该机顶盒的会话管理资源的方式包括但不限于:
基于该DHCP报文携带的该机顶盒的MAC(Media Access Control,媒体访问控制)地址,判断是否已存在该机顶盒的会话管理资源。
步骤S402,在判定已存在会话管理资源的情况下,基于该DHCP报文,检测该机顶盒是否发生业务变更。
在一些实施例中,对基于该DHCP报文,检测机顶盒是否发生业务变更的方式不做限定,可以基于该DHCP报文中一个或多个设定字段携带的信息,检测该机顶盒是否发生业务变更。
步骤S403,在检测到机顶盒已发生业务变更的情况下,释放会话管理资源,并向管理服务器发送DHCP释放(Release)报文,以供管理服务器基于DHCP释放报文释放机顶盒在管理服务器中分配的管理通信地址。
通过释放会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管理通信地址,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死需等待宽带接入路由器和管理服务器上DHCP协议老化,机顶盒才能分配正常地址的缺陷。
本申请第一实施例所述的机顶盒管理方法,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
本申请实施例还提供一种机顶盒管理方法,如图5所示,包括以下步骤:
步骤S501,当接收到机顶盒发送的DHCP发现(Discover)报文时,检测是否已存储该DHCP发现报文携带的MAC地址;若检测到已存储该MAC地址,则判定已存在该机顶盒的会话管理资源;否则判定不存在该机顶盒的会话管理资源。
在一些实施例中,在检测到已存储机顶盒的MAC地址情况下,表明该 机顶盒的MAC地址已被使用,因此可以判定该机顶盒的会话管理资源已被占用;否则可以判断该机顶盒的会话管理资源未被占用。
步骤S502,在判定已存在该机顶盒的会话管理资源的情况下,检测该会话管理资源的描述信息中是否存在该DHCP发现报文携带的厂商类标识信息(Vendor class identifier)和/或域名信息(Host name);若检测到会话管理资源的描述信息中存在该DHCP发现报文携带的厂商类标识信息和/或域名信息,则该机顶盒未发生业务变更;否则该机顶盒已发生业务变更。
在一些实施例中,DHCP Discover报文携带的Vendor class identifier为DHCP Discover报文中option60字段携带的Vendor class identifier;DHCP Discover报文携带的Host name为DHCP Discover报文中option12字段携带的Host name。
在一些实施例中,检测会话管理资源的描述信息中是否存在该DHCP Discover报文携带的Vendor class identifier和/或Host name的方式,包括但不限于:
检测DHCP Discover报文中option60字段携带的Vendor class identifier和/或option12字段携带的Host name,与会话管理资源的描述信息中的该机顶盒的Vendor class identifier和/或Host name是否一致。
在一些实施例中,会话管理资源的描述信息为会话管理资源列表。
步骤S503,在检测到机顶盒已发生业务变更的情况下,释放该会话管理资源,并向管理服务器发送DHCP释放报文,以供管理服务器基于DHCP释放报文释放机顶盒在管理服务器中分配的管理通信地址。
通过释放会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管理通信地址,以等待机顶盒重新发送DHCP Discover报文,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死需等待宽带接入路 由器和管理服务器上DHCP协议老化,机顶盒才能分配正常地址的缺陷。
本申请实施例所述的机顶盒管理方法,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
本申请实施例还提供一种机顶盒管理方法,如图6所示,包括以下步骤:
步骤S601,当接收到机顶盒发送的DHCP请求(Request)报文时,检测是否已存储该DHCP请求报文携带的MAC地址;若检测到已存储该MAC地址,则判定已存在该机顶盒的会话管理资源;否则判定不存在该机顶盒的会话管理资源。
在一些实施例中,在检测到已存储机顶盒的MAC地址情况下,表明该机顶盒的MAC地址已被使用,因此可以判定该机顶盒的会话管理资源已被占用;否则可以判断该机顶盒的会话管理资源未被占用。
步骤S602,在判定已存在该机顶盒的会话管理资源的情况下,检测DHCP请求报文是否携带机顶盒的互联网协议(Internet Protocol,IP)地址信息和服务器标识信息(Server identify);若DHCP请求报文携带IP地址信息和服务器标识信息,则机顶盒未发生业务变更;否则机顶盒已发生业务变更。
在一些实施例中,DHCP Request报文携带的IP地址信息为DHCP Request报文中ciaddr字段携带的IP地址信息;DHCP Request报文携带的Server identify为DHCP Request报文中option54字段携带的Server identify。
在一些实施例中,步骤S602,包括:
在判定已存在该机顶盒的会话管理资源的情况下,检测DHCP Request报文中ciaddr字段携带的IP地址信息和option54字段携带的Server identify;若DHCP Request报文中ciaddr字段和option54均不为0,则机顶盒未发生 业务变更;若DHCP Request报文中ciaddr字段和option54均为0,则机顶盒已发生业务变更。
步骤S603,在检测到机顶盒已发生业务变更的情况下,释放该会话管理资源,并向管理服务器发送DHCP释放报文,以供管理服务器基于DHCP释放报文释放机顶盒在管理服务器中分配的管理通信地址。
通过释放会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管理通信地址,以等待机顶盒重新发送DHCP Discover报文,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死需等待宽带接入路由器和管理服务器上DHCP协议老化,机顶盒才能分配正常地址的缺陷。
步骤S604,向该机顶盒发送DHCP NAK报文,以供该机顶盒基于DHCP NAK报文对DHCP请求报文进行重传。
通过向该机顶盒发送DHCP NAK报文,以供该机顶盒基于DHCP NAK报文对DHCP Request报文进行重传,能够有效使机顶盒快速获取业务通信地址,以正常进行互动访问。
本申请实施例所述的机顶盒管理方法,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
接下来以机顶盒管理方法为例,结合附图7介绍一个本申请的应用实例。
步骤S701,会话检索,如果存在机顶盒会话执行步骤S707,如果不存在机顶盒会话执行步骤S702。
宽带接入路由器(DHCP Relay中继服务器)接收机顶盒发送的DHCP协议报文,使用DHCP报文中客户端MAC地址(Client Mac Address)做会话 检索,如果没有检索到机顶盒使用的客户端MAC地址信息,认为宽带接入路由器不存在该机顶盒会话,执行步骤S702;如果检测到机顶盒使用的客户端MAC地址信息,认为设备存在该机顶盒会话,执行步骤S707。
步骤S702,生成会话管理资源表。
宽带接入路由器进行会话管理资源分配,生成以客户端MAC地址为主索引的会话管理资源表,执行步骤S703。
步骤S703,特征数据提取。
宽带接入路由器数据处理单元进行DHCP报文的特征数据提取,提取初始化数据信息或包含用户名及域名等相关的业务信息,分析机顶盒的访问需求,并将提取信息进行存储,执行步骤S704。
步骤S704,将DHCP报文转发至DHCP服务器。
宽带接入路由器DHCP协议模块根据数据处理单元分析结果,将DHCP报文转发给对应的DHCP服务器,实现准确的数据投递,执行步骤S705。
步骤S705,分配的管理通信地址。
DHCP服务器接收到设备转发的DHCP报文后,进行正常的DHCP协议交互,为机顶盒分配正确的IP地址,中继设备DHCP协议模块完成正常的DHCP协议交互过程,为机顶盒转发分配的管理通信地址,执行步骤S706。
步骤S706,结束处理流程。
机顶盒获取正确IP地址进行通讯访问,流程结束。
步骤S707,判断收到的DHCP报文是否为DHCP发现报文,如果是,执行步骤S708,如果不是,执行步骤S714。
如果宽带接入路由器存在机顶盒对应的会话管理资源表,则认为机顶盒曾经发起过地址请求,并得到DHCP服务器的响应。如果收到的DHCP报文为DHCP发现报文,执行步骤S708,如果收到的DHCP报文不是DHCP发现报文,执行步骤S714。
步骤S708,特征数据提取。
宽带接入路由器数据处理单元进行DHCP发现报文的特征数据提取,如提取数据报文携带的选项(Option)60(Vendor class identifier,厂商类标识信息)和机顶盒选项12(Host name,域名信息)信息,执行步骤S709。
步骤S709,对比选项12是否一致,如果一致,执行步骤S710,如果不一致,执行步骤S711。
对比DHCP发现报文中提取的Option12(Host name,域名信息)信息与会话管理资源表中存储的选项12(Host name,域名信息)信息是否一致,如果不一致执行步骤S711;如果一致,执行步骤S710。
步骤S710,对比选项60是否一致,如果一致,执行步骤S724,如果不一致,执行步骤S711。
对比DHCP发现报文中提取的选项60(Vendor class identifier,厂商类标识信息)信息与会话管理资源表中存储的中存储的Option60(Vendor class identifier,厂商类标识信息)信息是否一致,如果不一致,执行步骤S711;如果一致,执行步骤S724。
步骤S711,释放存储的会话管理资源。
如果DHCP发现报文中选项60(Vendor class identifier,厂商类标识信息)信息或选项12(Host name,域名信息)信息与会话管理资源表中存储的对应信息不一致,认为机顶盒发生了业务变更,机顶盒开始请求新的通讯地址,宽带接入路由器作为DHCP Relay中继服务器,释放存储的会话管理资源,执行步骤S712。
步骤S712,向服务器发送DHCP释放报文。
宽带接入路由器作为DHCP Relay中继服务器,向原先分配地址的DHCP Server服务器发送DHCP Release报文,释放DHCP服务器上分配的管理通信地址,执行步骤S713。
步骤S713,等待DHCP发现报文的重传。
宽带接入路由器对于本次收到的DHCP发现报文不做任何处理及回应, 等待机顶盒进行DHCP Discover报文的重传,重传后的DHCP协议报文,执行步骤S701的内容检查。
步骤S714,判断收到的DHCP报文是否DHCP发现报文,如果是,执行步骤S715;如果不是,执行步骤S724。
如果宽带接入路由器存在机顶盒对应的会话管理资源表,但是收到的DHCP报文不是DHCP发现报文,需要进行判断,判断收到的报文是不是DHCP请求报文。如果数据报文是DHCP请求报文,执行步骤S715;如果数据报文不是DHCP请求报文,执行步骤S724。
步骤S715,特征数据提取。
宽带接入路由器数据处理单元进行DHCP请求报文的数据特征提取,提取数据报文携带的ciaddr(IP址信息)字段与option54(server identify,服务器标识信息)字段,执行步骤S716。
步骤S716,判断DHCP Request报文中ciaddr字段是否为0,如果为0认为机顶盒还未分配过IP址信息,执行步骤S717;如果非0,执行步骤S722。
步骤S717,判断DHCP Request报文中option54(server identify,服务器标识信息)字段是否为0,如果为0,认为机顶盒还未分配过对应服务器标识,执行步骤S718;如果非0,执行步骤S722。
步骤S718,释放存储的会话管理资源。
如果DHCP Request中ciaddr(IP址信息)字段与option54(server identify,服务器标识信息)字段内容均为0,认为机顶盒设备发生了业务变更,开始请求新的通讯地址。宽带接入路由器作为DHCP Relay中继服务器,释放存储的会话管理资源,执行步骤S719。
步骤S719,向服务器发送DHCP释放报文。
宽带接入路由器作为DHCP Relay中继服务器,向原先分配地址的DHCP Server服务器发送DHCP Release报文,释放DHCP Server服务器上分配的管理通信地址,执行步骤S720。
步骤S720,向机顶盒回复DHCP Nak报文。
宽带接入路由器作为DHCP Relay中继服务器,向机顶盒回复DHCP Nak报文,要求机顶盒重新发起DHCP Request报文,请求业务地址,执行步骤S721。
步骤S721,等待机顶盒进行DHCP请求报文的重传。
宽带接入路由器对于本次收到的DHCP Request报文不做任何处理及回应,进一步等待机顶盒进行DHCP Request报文的重传,重传后的DHCP协议报文,执行步骤S701的内容检查。
步骤S722,判断DHCP Request报文是否为机顶盒的续租报文,如果是,进入正常的续租报文处理流程,执行步骤S723;如果不是续租报文,执行步骤S724。
步骤S723,向DHCP服务器发送续租报文。
如果DHCP Request报文是机顶盒的续租报文,则宽带接入路由器作为中继服务器需要向DHCP Server发送续租报文,设备进行正常的DHCP续租报文交互。
步骤S724,丢弃不符合协议规范的DHCP报文。
本申请实施例所述的机顶盒管理方法,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
本申请实施例还提供一种机顶盒管理装置,如图8所示,包括以下组成部分:
第一判断模块10,配置为当接收到机顶盒发送的DHCP报文时,基于该DHCP报文,判断是否已存在该机顶盒的会话管理资源。
在一些实施例中,对DHCP报文的类型不做限定,可以是DHCP Discover报文,也可以是DHCP Request报文。
在一些实施例中,第一判断模块10,还配置为:
基于该DHCP报文携带的该机顶盒的MAC地址,判断是否已存在该机顶盒的会话管理资源。
第二判断模块20,配置为在判定已存在会话管理资源的情况下,基于该DHCP报文,检测该机顶盒是否发生业务变更。
在一些实施例中,对基于该DHCP报文,检测机顶盒是否发生业务变更的方式不做具体限定,可以基于该DHCP报文中一个或多个设定字段携带的信息,检测该机顶盒是否发生业务变更。
执行模块30,配置为在检测到机顶盒已发生业务变更的情况下,释放会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管理通信地址。
通过释放会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管理通信地址,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死需等待宽带接入路由器和管理服务器上DHCP协议老化,机顶盒才能分配正常地址的缺陷。
本申请实施例所述的机顶盒管理装置,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
本申请实施例还提供一种机顶盒管理装置,如图8所示,包括以下组成部分:
第一判断模块10,配置为当接收到机顶盒发送的DHCP Discover报文时,检测是否已存储该DHCP Discover报文携带的MAC地址;若检测到已存储该MAC地址,则判定已存在该机顶盒的会话管理资源;否则判定不存 在该机顶盒的会话管理资源。
在一些实施例中,在检测到已存储机顶盒的MAC地址情况下,表明该机顶盒的MAC地址已被使用,因此可以判定该机顶盒的会话管理资源已被占用;否则可以判断该机顶盒的会话管理资源未被占用。
第二判断模块20,配置为在判定已存在该机顶盒的会话管理资源的情况下,检测该会话管理资源的描述信息中是否存在该DHCP Discover报文携带的Vendor class identifier(厂商类标识信息)和/或Host name(域名信息);若检测到会话管理资源的描述信息中存在该DHCP Discover报文携带的Vendor class identifier和/或Host name,则该机顶盒未发生业务变更;否则该机顶盒已发生业务变更。
在一些实施例中,DHCP Discover报文携带的Vendor class identifier为DHCP Discover报文中option60字段携带的Vendor class identifier;DHCP Discover报文携带的Host name为DHCP Discover报文中option12字段携带的Host name。
在一些实施例中,检测会话管理资源的描述信息中是否存在该DHCP Discover报文携带的Vendor class identifier和/或Host name的方式,包括但不限于:
检测DHCP Discover报文中option60字段携带的Vendor class identifier和/或option12字段携带的Host name,与会话管理资源的描述信息中存储的该机顶盒的Vendor class identifier和/或Host name是否一致。
在一些实施例中,会话管理资源的描述信息为会话管理资源列表。
执行模块30,配置为在检测到机顶盒已发生业务变更的情况下,释放会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管理通信地址。
通过释放会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管 理通信地址,以等待机顶盒重新发送DHCP Discover报文,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死需等待宽带接入路由器和管理服务器上DHCP协议老化,机顶盒才能分配正常地址的缺陷。
本申请实施例所述的机顶盒管理装置,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
本申请实施例还提供一种机顶盒管理装置,如图9所示,包括以下组成部分:
第一判断模块10,配置为当接收到机顶盒发送的DHCP Request报文时,检测是否已存储该DHCP Request报文携带的MAC地址;若检测到已存储该MAC地址,则判定已存在该机顶盒的会话管理资源;否则判定不存在该机顶盒的会话管理资源。
在一些实施例中,在检测到已存储机顶盒的MAC地址情况下,表明该机顶盒的MAC地址已被使用,因此可以判定该机顶盒的会话管理资源已被占用;否则可以判断该机顶盒的会话管理资源未被占用。
第二判断模块20,配置为在判定已存在该机顶盒的会话管理资源的情况下,检测DHCP Request报文是否携带机顶盒的IP(Internet Protocol,互联网协议)地址信息和Server identify(服务器标识信息);若DHCP Request报文携带IP地址信息和Server identify,则机顶盒未发生业务变更;否则机顶盒已发生业务变更。
在一些实施例中,DHCP Request报文携带的IP地址信息为DHCP Request报文中ciaddr字段携带的IP地址信息;DHCP Request报文携带的Server identify为DHCP Request报文中option54字段携带的Server identify。
在一些实施例中,第二判断模块20,还配置为:
在判定已存储会话管理资源的情况下,检测DHCP Request报文中ciaddr字段携带的IP地址信息和option54字段携带的Server identify;若DHCP Request报文中ciaddr字段和option54均不为0,则机顶盒未发生业务变更;若DHCP Request报文中ciaddr字段和option54均为0,则机顶盒已发生业务变更。
执行模块30,配置为在检测到机顶盒已发生业务变更的情况下,释放该会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管理通信地址。
通过释放会话管理资源,并向管理服务器发送DHCP Release报文,以供管理服务器基于DHCP Release报文释放机顶盒在管理服务器中分配的管理通信地址,以等待机顶盒重新发送DHCP Discover报文,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,避免了机顶盒在管理通信地址与业务通信地址切换过程中出现挂死需等待宽带接入路由器和管理服务器上DHCP协议老化,机顶盒才能分配正常地址的缺陷。
反馈模块40,配置为向该机顶盒发送DHCP NAK报文,以供该机顶盒基于DHCP NAK报文对DHCP Request报文进行重传。
通过向该机顶盒发送DHCP NAK报文,以供该机顶盒基于DHCP NAK报文对DHCP Request报文进行重传,能够有效使机顶盒快速获取业务通信地址,以正常进行互动访问。
本申请实施例所述的机顶盒管理装置,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
本申请实施例还提供一种机顶盒管理设备,如图10所示,包括以下组成部分:
处理器501和存储器502。在一些实施例中,处理器501和存储器502可通过总线或者其它方式连接。
处理器501可以是通用处理器,例如中央处理器(Central Processing Unit,CPU),还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。其中,存储器502配置为存储所述处理器501的可执行指令;
存储器502,配置为存储程序代码,并将该程序代码传输给处理器501。存储器502可以包括易失性存储器(Volatile Memory),例如随机存取存储器(Random Access Memory,RAM);存储器502也可以包括非易失性存储器(Non-Volatile Memory),例如只读存储器(Read-Only Memory,ROM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);存储器502还可以包括上述种类的存储器的组合。
其中,处理器501配置为调用所述存储器502存储的程序代码管理代码,执行本申请实施例提供的机顶盒管理方法。
在一些实施例中,机顶盒管理设备为宽带接入路由器(DHCP Relay中继服务器)。
本申请实施例所述的机顶盒管理设备,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
本申请实施例还提供一种计算机可读存储介质,计算机存储介质可以是RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域已知的任何其他形式的存储介质。
计算机可读存储介质存储有一个或者多个程序,该一个或者多个程序可被一个或者多个处理器执行,以实现本申请实施例提供的机顶盒管理方法。
本申请实施例提供的计算机可读存储介质,存储有一个或者多个程序,该一个或者多个程序可被一个或者多个处理器执行,能够有效地避免机顶盒在管理通信地址与业务通信地址切换过程中出现挂死的缺陷,有效提高了机顶盒的稳定性,提高了机顶盒的用户体验。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本申请的保护之内。

Claims (10)

  1. 一种机顶盒管理方法,包括:
    当接收到机顶盒发送的动态主机配置协议DHCP报文时,基于所述DHCP报文,判断是否已存在所述机顶盒的会话管理资源;
    在判定已存在所述会话管理资源的情况下,基于所述DHCP报文,检测所述机顶盒是否发生业务变更;
    在检测到所述机顶盒已发生业务变更的情况下,释放所述会话管理资源,并向管理服务器发送DHCP释放报文,以供所述管理服务器基于所述DHCP释放报文,释放所述机顶盒在所述管理服务器中分配的管理通信地址。
  2. 根据权利要求1所述的方法,其中,所述基于所述DHCP报文,判断是否已存在所述机顶盒的会话管理资源,包括:
    检测是否已存储所述DHCP报文携带的媒体访问控制MAC地址;
    若检测到已存储所述MAC地址,则判定已存在所述会话管理资源;否则判定不存在所述会话管理资源。
  3. 根据权利要求1或2所述的方法,其中,所述基于所述DHCP报文,检测所述机顶盒是否发生业务变更,包括:
    在所述DHCP报文的类型为DHCP发现报文的情况下,检测所述会话管理资源的描述信息中是否存在所述DHCP发现报文携带的厂商类标识信息和/或域名信息;
    若检测到所述会话管理资源的描述信息中存在所述DHCP发现报文携带的厂商类标识信息和/或域名信息,则所述机顶盒未发生业务变更;否则所述机顶盒已发生业务变更。
  4. 根据权利要求1或2所述的方法,其中,所述基于所述DHCP报文,检测所述机顶盒是否发生业务变更,包括:
    在所述DHCP报文的类型为DHCP请求报文的情况下,检测所述DHCP请求报文是否携带所述机顶盒的互联网协议IP地址信息和服务器标识信息;
    若检测到所述DHCP请求报文携带所述IP地址信息和服务器标识信息,则所述机顶盒未发生业务变更;否则所述机顶盒已发生业务变更。
  5. 根据权利要求4所述的方法,其中,在检测到所述机顶盒已发生业务变更的情况下,所述方法还包括:
    向所述机顶盒发送DHCP NAK报文,以供所述机顶盒基于所述DHCP NAK报文对所述DHCP请求报文进行重传。
  6. 一种机顶盒管理装置,包括:
    第一判断模块,配置为当接收到机顶盒发送的动态主机配置协议DHCP报文时,基于所述DHCP报文,判断是否已存在所述机顶盒的会话管理资源;
    第二判断模块,配置为在判定已存在所述会话管理资源的情况下,基于所述DHCP报文,检测所述机顶盒是否发生业务变更;
    执行模块,配置为在检测到所述机顶盒已发生业务变更的情况下,释放所述会话管理资源,并向管理服务器发送DHCP释放报文,以供所述管理服务器基于所述DHCP释放报文,释放所述机顶盒在所述管理服务器中分配的管理通信地址。
  7. 根据权利要求6所述的装置,其中,所述第二判断模块,还配置为:
    在所述DHCP报文的类型为DHCP发现报文的情况下,检测所述会话管理资源的描述信息中是否存在所述DHCP发现报文携带的厂商类标识信息和/或域名信息;
    若检测到所述会话管理资源的描述信息中存在所述DHCP发现报文携带的厂商类标识信息和/或域名信息,则所述机顶盒未发生业务变更;否则所述机顶盒已发生业务变更。
  8. 根据权利要求6所述的装置,其中,所述第二判断模块,还配置为:
    在所述DHCP报文的类型为DHCP请求报文的情况下,检测所述DHCP请求报文是否携带所述机顶盒的互联网协议IP地址信息和服务器标识信息;
    若检测到所述DHCP请求报文携带所述IP地址信息和服务器标识信息,则所述机顶盒未发生业务变更;否则所述机顶盒已发生业务变更。
  9. 一种机顶盒管理设备,所述机顶盒管理设备包括处理器和存储器;所述处理器配置为执行存储器中存储的机顶盒管理的程序,以实现权利要求1~5中任一项所述的机顶盒管理方法。
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1~5中任一项所述的机顶盒管理方法。
PCT/CN2019/090780 2018-09-05 2019-06-11 机顶盒管理方法、装置、设备及存储介质 WO2020048177A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811031549.1A CN110881143B (zh) 2018-09-05 2018-09-05 一种机顶盒管理方法、装置、设备及计算机可读存储介质
CN201811031549.1 2018-09-05

Publications (1)

Publication Number Publication Date
WO2020048177A1 true WO2020048177A1 (zh) 2020-03-12

Family

ID=69722971

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/090780 WO2020048177A1 (zh) 2018-09-05 2019-06-11 机顶盒管理方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN110881143B (zh)
WO (1) WO2020048177A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118330A (zh) * 2020-09-22 2020-12-22 青岛海信传媒网络技术有限公司 一种dhcp网络回连方法及显示设备
CN114172799A (zh) * 2021-12-08 2022-03-11 武汉大塔技术有限公司 基于dhcp实现ntp客户端快速配置部署方法、系统和介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497378A (zh) * 2011-12-15 2012-06-13 杭州华三通信技术有限公司 为客户端动态选择dhcp服务器的方法和装置
CN102882994A (zh) * 2012-11-02 2013-01-16 华为技术有限公司 Ip地址分配、获取方法及装置
CN106254571A (zh) * 2016-08-05 2016-12-21 杭州华三通信技术有限公司 一种客户端ip地址分配方法及装置
CN108123955A (zh) * 2017-12-27 2018-06-05 新华三技术有限公司 安全表项的管理方法、装置、设备及机器可读存储介质

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8948163B2 (en) * 2005-09-30 2015-02-03 Telecom Italia S.P.A. Method for managing voice calls during packet-switched sessions, and mobile communications network implementing the method
CN100358336C (zh) * 2005-10-26 2007-12-26 华为技术有限公司 一种ip机顶盒重新拨号的方法
CN101715006A (zh) * 2008-10-07 2010-05-26 中兴通讯股份有限公司 一种客户端释放动态主机配置资源的方法及其客户端系统
CN101835223B (zh) * 2009-03-12 2015-05-13 中兴通讯股份有限公司 一种语音业务连续性切换方法
CN101730090B (zh) * 2009-12-24 2013-01-16 杭州华三通信技术有限公司 Dhcp服务器释放ip地址的方法及设备
WO2014160885A1 (en) * 2013-03-29 2014-10-02 Intel IP Corporation Management techniques for wireless network mobility procedures
US20140379912A1 (en) * 2013-06-24 2014-12-25 Alcatel-Lucent Canada, Inc. Radius session limit per service type
CN104168665A (zh) * 2014-08-07 2014-11-26 华为软件技术有限公司 一种处理会话业务的方法、ocs及pcrf实体
CN104239151A (zh) * 2014-09-18 2014-12-24 深圳市九洲电器有限公司 一种资源管理方法及系统
CN106921721A (zh) * 2015-12-28 2017-07-04 华为软件技术有限公司 一种服务器、会话管理方法和系统
CN108307002B (zh) * 2018-05-09 2021-06-22 华为技术有限公司 一种dhcp报文处理方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497378A (zh) * 2011-12-15 2012-06-13 杭州华三通信技术有限公司 为客户端动态选择dhcp服务器的方法和装置
CN102882994A (zh) * 2012-11-02 2013-01-16 华为技术有限公司 Ip地址分配、获取方法及装置
CN106254571A (zh) * 2016-08-05 2016-12-21 杭州华三通信技术有限公司 一种客户端ip地址分配方法及装置
CN108123955A (zh) * 2017-12-27 2018-06-05 新华三技术有限公司 安全表项的管理方法、装置、设备及机器可读存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118330A (zh) * 2020-09-22 2020-12-22 青岛海信传媒网络技术有限公司 一种dhcp网络回连方法及显示设备
CN114172799A (zh) * 2021-12-08 2022-03-11 武汉大塔技术有限公司 基于dhcp实现ntp客户端快速配置部署方法、系统和介质

Also Published As

Publication number Publication date
CN110881143A (zh) 2020-03-13
CN110881143B (zh) 2022-07-19

Similar Documents

Publication Publication Date Title
JP3641128B2 (ja) 移動計算機装置、移動計算機管理装置、移動計算機管理方法及び通信制御方法
US9847967B2 (en) DHCP proxy in a subscriber environment
US8285875B2 (en) Synchronizing resource bindings within computer network
US8125993B2 (en) Network element having a DHCP lease timer
CN106453678B (zh) Ip地址配置方法和系统
US8086713B2 (en) Determining a subscriber device has failed gracelessly without issuing a DHCP release message and automatically releasing resources reserved for the subscriber device within a broadband network upon determining that another subscriber device requesting the reservation of a network address has the same context information as the failed subscriber device
EP3664420B1 (en) Managing address spaces across network elements
US9479611B2 (en) Method, device, and system for implementing communication after virtual machine migration
US20200186466A1 (en) Packet Processing Method and Apparatus
WO2009089741A1 (fr) Procédé, dispositif et système permettant de sélectionner un réseau de service
WO2012079474A1 (zh) 地址分配处理方法、装置和系统
WO2014101891A1 (zh) 一种配置ip地址方法和设备
WO2014086167A1 (zh) 一种移动终端及其地址分配方法和系统
WO2009021460A1 (fr) Procédé de rapport d'un résultat de mise en œuvre de politique, système de communication par réseau et équipement
WO2020048177A1 (zh) 机顶盒管理方法、装置、设备及存储介质
KR20120132206A (ko) 디바이스의 서버 연결 방법, 정보 제공 방법 및 이를 적용한 디바이스 및, 클라우딩 컴퓨팅 네트워크 시스템 및 그 동작 방법
WO2014190687A1 (zh) 一种话机号码的分配方法、装置及系统
US20130086259A1 (en) Method for acquiring an ip address and network access device
KR101506852B1 (ko) 네트워크 모드 선택 방법과 그를 위한 모바일 라우터
WO2022089147A1 (zh) 获取地址的方法、装置及系统
WO2015085558A1 (zh) 一种动态分配ip地址的方法、装置和系统
WO2015096058A1 (zh) 一种数据包处理方法和装置
CN108076025B (zh) 网络设备的注册方法和装置
US10673809B2 (en) Technique for managing an address in a local area network
US11552928B2 (en) Remote controller source address verification and retention for access devices

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 09/07/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19857406

Country of ref document: EP

Kind code of ref document: A1