CN113542905A - Address allocation method, gateway, set-top box, device and storage medium - Google Patents

Address allocation method, gateway, set-top box, device and storage medium Download PDF

Info

Publication number
CN113542905A
CN113542905A CN202010320342.7A CN202010320342A CN113542905A CN 113542905 A CN113542905 A CN 113542905A CN 202010320342 A CN202010320342 A CN 202010320342A CN 113542905 A CN113542905 A CN 113542905A
Authority
CN
China
Prior art keywords
address
top box
field
gateway
set top
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.)
Granted
Application number
CN202010320342.7A
Other languages
Chinese (zh)
Other versions
CN113542905B (en
Inventor
张承辉
朱江恺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010320342.7A priority Critical patent/CN113542905B/en
Priority claimed from CN202010320342.7A external-priority patent/CN113542905B/en
Publication of CN113542905A publication Critical patent/CN113542905A/en
Application granted granted Critical
Publication of CN113542905B publication Critical patent/CN113542905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • H04N21/64322IP
    • 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/64Addressing
    • H04N21/6405Multicasting

Abstract

The embodiment of the invention discloses an address allocation method, a gateway, a set top box, equipment and a storage medium. The method comprises the following steps: receiving an address request sent by a set top box; a first field sent to the set-top box, the first field including time information; receiving an instruction sent by the set top box, wherein the instruction comprises a second field generated by the set top box according to the first field comprising the time information; and sending a first address to the set top box according to the instruction, wherein the address prefix of the first address comprises a second field. The address allocation method, the gateway, the set-top box, the equipment and the storage medium of the embodiment of the invention can realize the end-to-end directional broadcast of data.

Description

Address allocation method, gateway, set-top box, device and storage medium
Technical Field
The present invention relates to the field of Internet Protocol (IP) transmission, and in particular, to an address allocation method, a gateway, a set-top box, a device, and a storage medium.
Background
Internet Protocol Version 6 (IPv 6) is the next generation Internet Protocol (IP) designed by the Internet Engineering Task Force (IETF) to replace Internet Protocol Version 4 (IPv 4), and the number of addresses can be called to code an address for each sand worldwide. Since the biggest problem of the IPv4 is that network address resources are limited, the application and development of the internet are severely restricted. Therefore, the use of the IPv6 not only solves the problem of the number of network address resources, but also solves the obstacles for various access devices to access the internet.
At present, the IPv6 address automatic configuration method mainly includes traditional stateful (stateful) and stateless (stateless) automatic configuration, but when an IPv6 address is allocated to a drop device at present, the address allocated to the drop device cannot only enable the drop device to acquire data sent by a server, which may cause unexpected broadcast of the data.
Therefore, there is a problem that the address assigned to the drop device cannot realize the data-directed broadcasting.
Disclosure of Invention
The embodiment of the invention provides an address allocation method, a gateway, a set top box, equipment and a storage medium, solves the problem that the address allocated to the hanging-down equipment cannot realize data directional broadcasting, and realizes the directional broadcasting of data.
In a first aspect, a method for address allocation applied to a gateway is provided, where the method includes:
receiving an address request sent by a set top box;
a first field sent to the set-top box, the first field including time information;
receiving an instruction sent by the set top box, wherein the instruction comprises a second field generated by the set top box according to the first field comprising the time information;
a second field generated by the time information and the first field;
and sending a first address to the set top box according to the instruction, wherein the address prefix of the first address comprises a second field.
In some implementations of the first aspect, after sending the first address to the set-top box according to the instruction, the method further includes:
receiving a request message sent by the set top box, wherein the request message comprises a second address;
and when the second address is the same as the first address, sending a confirmation message to the set top box to confirm that the address of the set top box is the first address.
In some implementations of the first aspect, the method further comprises:
receiving a data request message sent by a set top box, wherein the data request message comprises a first address of the set top box and information of content to be acquired;
when the address prefix of the first address is determined to comprise a second field, sending a data acquisition request to a server related to the second field so as to acquire data related to the information of the content to be acquired from the server;
receiving data sent by a server;
and sending the data to the set-top box.
In some implementations of the first aspect, the method further comprises:
receiving data sent by a server, wherein the data comprises a target address of data sending;
and when the address prefix of the target address is determined to comprise the second field, transmitting the data to the set-top box.
In a second aspect, a method for address assignment applied to a set-top box is provided, the method comprising:
sending an address request to a gateway;
receiving a first field sent by a gateway according to an address request, wherein the first field comprises time information;
sending an instruction to the gateway, the instruction including a second field generated from the first field including the time information;
and receiving a first address sent by the gateway according to the instruction, wherein the address prefix of the first address comprises a second field.
In some implementations of the second aspect, after receiving the first address sent by the gateway according to the instruction, the method further includes:
sending a request message to the gateway, the request message including a second address for the gateway to determine whether the second address is the same as the first address;
and when the second address is the same as the first address, receiving a determination message sent by the gateway to determine that the address of the set-top box is the first address.
In some implementations of the second aspect, the method further comprises:
sending a data request message to a gateway, wherein the data request message comprises a first address of the set top box and information of content to be acquired, so that the gateway determines whether an address prefix of the first address comprises a second field, and when the address prefix of the first address comprises the second field, sending a data acquisition request to a server related to the second field, and acquiring data related to the information of the content to be acquired from the server;
and receiving data sent by the gateway.
In a third aspect, a gateway is provided, which includes: the device comprises a receiving module and a sending module.
The receiving module is used for receiving an address request sent by the set-top box;
the sending module is used for sending a first field to the set top box, and the first field comprises time information;
the receiving module is also used for receiving an instruction sent by the set top box, wherein the instruction comprises a second field generated by the set top box according to the first field comprising the time information;
and the sending module is also used for sending a first address to the set top box according to the instruction, and the address prefix of the first address comprises a second field.
In some implementations of the third aspect, the receiving module is further configured to receive a request message sent by the set top box after sending the first address to the set top box according to the instruction, where the request message includes the second address;
and the sending module is also used for sending a determination message to the set top box when the second address is the same as the first address so as to determine that the address of the set top box is the first address.
In some implementation manners of the third aspect, the receiving module is further configured to receive a data request message sent by the set top box, where the data request message includes a first address of the set top box and information of content to be acquired;
the sending module is further used for sending a data acquisition request to a server related to the second field to acquire data related to the information of the content to be acquired from the server when the address prefix of the first address is determined to include the second field;
the receiving module is also used for receiving data sent by the server;
and the sending module is also used for sending data to the set-top box.
In some implementations of the third aspect, the receiving module is further configured to receive data sent by the server, where the data includes a destination address of the data sending;
and the sending module is further used for sending data to the set top box when the address prefix of the target address is determined to comprise the second field.
In a fourth aspect, there is provided a set top box comprising: the device comprises a receiving module and a sending module.
And the sending module is used for sending the address request to the gateway.
And the receiving module is used for receiving a first field sent by the gateway according to the address request, wherein the first field comprises time information.
And the sending module is further used for sending an instruction to the gateway, wherein the instruction comprises a second field generated according to the first field comprising the time information.
And the receiving module is also used for receiving a first address sent by the gateway according to the instruction, and the address prefix of the first address comprises a second field.
In some implementations of the fourth aspect, the sending module is further configured to send, after receiving the first address sent by the gateway according to the instruction, a request message to the gateway, where the request message includes a second address, so that the gateway determines whether the second address is the same as the first address;
and the receiving module is also used for receiving a determination message sent by the gateway when the second address is the same as the first address so as to determine that the address of the set top box is the first address.
In some implementations of the fourth aspect,
the sending module is further used for sending a data request message to the gateway, wherein the data request message comprises a first address of the set top box and information of the content to be acquired, so that the gateway can send a data acquisition request to a server related to a second field according to the fact that whether an address prefix of the first address comprises the second field or not, and acquire data related to the information of the content to be acquired from the server when the address prefix of the first address comprises the second field;
the receiving module can also be used for receiving data sent by the gateway.
In a fifth aspect, an apparatus for address allocation is provided, the apparatus comprising: a processor and a memory storing computer program instructions;
the processor implements the first aspect and the method of address allocation in some implementations of the first aspect when executing the computer program instructions or the second aspect and the method of address allocation in some implementations of the second aspect when executing the computer program instructions.
In a sixth aspect, there is provided a computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement the first aspect and some implementations of the first aspect, or which, when executed by a processor, implement the second aspect and some implementations of the second aspect.
The embodiment of the invention provides an address allocation method, a gateway, a set-top box, equipment and a storage medium, wherein the gateway sends a first field containing time information to the set-top box after receiving a request sent by the set-top box, the set-top box generates a second field according to the first field containing the time information and sends an instruction containing the second field to the gateway, and the gateway sends a first address to the set-top box according to the instruction. The problem that the address allocated to the drop device cannot realize data directional broadcasting in the automatic configuration process of the IPv6 address is solved, and end-to-end directional broadcasting of data is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is an interaction diagram of a method for address allocation according to an embodiment of the present invention;
FIG. 2 is an interaction diagram of another address assignment method provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a data request interaction according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a gateway according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a set-top box according to an embodiment of the present invention;
fig. 6 is a block diagram of an exemplary hardware architecture of a computing device provided by an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Internet Protocol Version 6 (IPv 6) is the next generation Internet Protocol (IP) designed by the Internet Engineering Task Force (IETF) to replace Internet Protocol Version 4 (IPv 4), and the number of addresses can be called to code an address for each sand worldwide. Since the biggest problem of the IPv4 is that network address resources are limited, the application and development of the internet are severely restricted. Therefore, the use of the IPv6 not only solves the problem of the number of network address resources, but also solves the obstacles for various access devices to access the internet.
Currently, the IPv6 address auto-configuration technology is divided into two methods.
The first one is the traditional stateful (stateful), which typically represents the IPv6 Dynamic Host Configuration protocol (Dynamic Host Configuration protocol IPv6 DHCPv6) corresponding to the IPv4 era, the calculation and management of the address pool are all performed by the server, and the client simply obtains the address and other settings that have been calculated by the server from the server and applies them to itself.
In the stateful address auto-Configuration mode, a Dynamic Host Configuration Protocol (DHCP) is mainly used, and therefore a special DHCP server needs to be configured, and the network interface obtains address Configuration information from the DHCP server through a client/server mode.
Second, IPv6 is stateless auto-configuration, typically represented by the routing advertisement daemon Radvd. This is a prominent feature of the IPv6 protocol that supports automatic address configuration of network nodes.
In this method, the IPv6 address is composed of an address prefix and an Interface (Interface) Identifier (ID).
Under the automatic configuration mode of the stateless address, the network interface receives the global address prefix announced by the router, and then obtains an aggregatable global unicast address by combining the interface ID.
In the stateless address autoconfiguration mode, the interface ID can be obtained by a 64-bit Extended Unique Identifier (EUI 64) conversion algorithm. In the IPv6 address, the length of the interface ID is 64 bits, and the interface ID is obtained by converting a 48-bit ethernet Media Access Control (MAC) address. The interface ID obtained using the EUI64 translation algorithm is fixed and globally unique to the hardware of the randomizer.
The stateless automatic configuration represented by Radvd does not need to consume a lot of machine resources, and does not need to maintain a local database to maintain the address distribution state like the traditional DHCP, the client only broadcasts the prefix address, and after receiving the broadcast, the client generates a globally unique IPv6 address by using an EUI64 algorithm to perform self-configuration.
However, when the IPv6 address is allocated to the drop device by the Radvd method, the address allocated to the drop device cannot only enable the drop device to acquire the data transmitted by the server, which results in unexpected broadcast of the data.
In summary, the above-mentioned IPv6 address automatic configuration method has a problem that the address allocated to the drop device cannot implement data directional broadcast.
In order to solve the problem that the data directional broadcast can not be realized when the address is allocated to the hanging-down equipment, embodiments of the present invention therefore provide a method, gateway, set-top box, device, and storage medium for address allocation, where the gateway, through a stateful auto-configuration based method, after receiving the request sent by the set-top box, sending an option125 specific field containing the specified time information to the set-top box, generating a new option60 field by the set-top box according to the option125 specific field containing the time information, and sends the option60 field to the gateway, the gateway decrypts the received option60 field, after the decryption is passed, sends an Internet Protocol (IP) address to the set-top box that includes the contents of the option60 field, the set-top box makes a data request according to the IP address and receives data forwarded by the gateway and comprising the content of the option60 field, that is, only data that includes the contents of the option60 field can be targeted for transmission to the target IP address that includes the contents of the option60 field. The problem that the address allocated to the drop device cannot realize data directional broadcasting in the automatic configuration process of the IPv6 address is solved, and end-to-end directional broadcasting of data is realized.
The technical solutions provided by the embodiments of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is an interaction diagram of a method for address allocation according to an embodiment of the present invention.
As shown in fig. 1, there are two execution bodies of the method, which may include a gateway and a set-top box, it should be noted that the gateway may include a DHCP server, the configuration obtains an IPv6 address based on a stateful auto-configuration method, and the address allocation method may include:
s101: the set-top box sends an address request to the gateway.
Specifically, the address request may be a DHCP request sent by the set-top box to the DHCP server.
S102: the gateway sends the first field to the set-top box.
Wherein the first field is an option125 field that includes time information.
S103: the set-top box sends an instruction to the gateway.
Wherein the instruction may include a second field generated by the set-top box from the first field including the time information.
Specifically, the set-top box may form a new field with the normal prefix (zjstb) of the IP address and encrypt it as the option60 field after receiving the option125 field, so the encrypted option60 field may be the second field generated here.
S104: and the gateway sends a first address to the set-top box according to the instruction, wherein the address prefix of the first address comprises a second field.
Specifically, after receiving the option60 field, the gateway decrypts and obtains the corresponding field, and if the authentication is passed, the gateway sends the IP address including the option60 field to the set-top box through an offer command. It should be noted that the IP address including the option60 field may be referred to as a first address.
The IP address comprising the option60 field is used for the set-top box to make data request according to the IP address and receive the data forwarded by the gateway and comprising the option60 field, namely, only the data comprising the option60 field can be directionally sent to the target IP address comprising the option60 field.
Therefore, in the address allocation method shown in fig. 1, after receiving a request sent by the set-top box, the gateway sends an option125 specific field including specified time information to the set-top box through a stateful automatic configuration method, the set-top box generates a new option60 field according to the option125 specific field including the time information and sends the option60 field to the gateway, and the gateway decrypts the received option60 field and sends an IP address including the content of the option60 field to the set-top box after the decryption is passed. The IP address is used for the set-top box to make data requests according to the IP address, and data forwarded by the gateway and comprising the content of the option60 field is received, namely, only the data comprising the content of the option60 field can be directionally sent to the IP address comprising the content of the option60 field. The problem that the address allocated to the drop device cannot realize data directional broadcasting in the automatic configuration process of the IPv6 address is solved, and end-to-end directional broadcasting of data is realized.
The specific processes of S101 to S104 in fig. 1 may be as shown in fig. 2, and fig. 2 is an interaction schematic diagram of another address allocation method provided in the embodiment of the present invention.
As shown in fig. 2, S101: the set-top box sends an address request to the gateway; s102: the gateway sends a first field to the set top box; s103: the set top box sends an instruction to the gateway; s104: the gateway sends a first address to the set top box according to the instruction, and an address prefix of the first address comprises a second field; after S104 is executed, in order to ensure the accuracy of the IP address in the transmission process from the gateway to the set-top box, a verification process for the first address may be further included, specifically, as shown in fig. 2:
after receiving the IP address, the set-top box may send a Request message Request to the gateway to confirm the accuracy of the IP address information, and because the sending conditions are different, the IP address in the process may be referred to as a second address.
After receiving the Request message Request including the second address, the gateway confirms that the Request message Request is the first address previously sent to the set-top box, that is, the IP address in the Request message Request is the same as the IP address including the option60 field, and sends an acknowledgement character (Ack) message to the set-top box to confirm that the STB is the current IP address.
The confirmed IP address is used for the set top box to make a data request according to the IP address, and data forwarded by the gateway and comprising the option60 field is received, namely, only the data comprising the option60 field can be directionally sent to the target IP address comprising the option60 field.
Fig. 3 is a schematic diagram of data request interaction according to an embodiment of the present invention, and fig. 3 takes a set top box requesting an IPTV multicast service from a gateway as an example.
As shown in fig. 3, the Internet is configured to route a Wide Area Network (WAN), and an IPv4/IPv6 dual stack, an Internet Protocol Television (IPTV) route a WAN, and an IPv6 single stack. The gateway determines the IPTV multicast service by identifying whether the address prefix of the IPV6 of the data request message sent by the set-top box comprises a second field, and configures a static routing output interface for the IPTV multicast service to be an IPTV WAN, the gateway sends the data request message of the set-top box to the IPTV server through the IPTV WAN output interface for requesting data from the IPTV server, and when the address prefix of the target address of the received data comprises the second field, the data is sent to the set-top box in a directional manner, so that a complete multicast service request process is realized. The device connected to the set-top box may be a display apparatus connected through a High-Definition Multimedia Interface (HDMI).
In addition, other Local Area Network (LAN) ports of the gateway, that is, LAN1 and LAN2, may also perform Internet services, and an Internet Group Message management Protocol (IGMP) Message sent out is discarded at an Optical Line Terminal (OLT) or a Broadband Access Server (BRAS) (it should be noted that a filtering rule needs to be configured at the OLT or the BRAS). The Set-Top Box can perform IPTV multicast service and Internet service, and the Set-Top-Box (STB) connected to the LAN port and the PC connected to LAN1 and LAN2 can also access each other. Devices connected to LAN1 and LAN2 may include computers, cell phones.
According to the address allocation method provided by the embodiment of the invention, the gateway receives the request sent by the set-top box through a stateful automatic configuration method, and then sends the option125 specific field containing the designated time information to the set-top box, the set-top box generates a new option60 field according to the option125 specific field containing the time information and sends the option60 field to the gateway, and the gateway decrypts the received option60 field and sends an IP address containing the option60 field content to the set-top box after the decryption is passed. The IP address is used for the set-top box to make data requests according to the IP address, and data forwarded by the gateway and comprising the content of the option60 field is received, namely, only the data comprising the content of the option60 field can be directionally sent to the IP address comprising the content of the option60 field. The problem that the address allocated to the drop device cannot realize data directional broadcasting in the automatic configuration process of the IPv6 address is solved, and end-to-end directional broadcasting of data is realized.
Corresponding to the embodiment of the address allocation method, the embodiment of the invention also provides a gateway for realizing address allocation.
Fig. 4 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
As shown in fig. 4, the gateway may include: a receiving module 401 and a sending module 402.
The receiving module 401 may be configured to receive an address request sent by a set-top box.
The sending module 402 may be configured to send a first field to the set top box, where the first field includes time information.
The receiving module 401 may be further configured to receive an instruction sent by the set-top box, where the instruction includes a second field generated by the set-top box according to the first field including the time information.
The sending module 402 may be further configured to send the first address to the set top box according to the instruction, where an address prefix of the first address includes the second field.
The receiving module 401 may be further configured to receive a request message sent by the set top box after sending the first address to the set top box according to the instruction, where the request message includes the second address.
The sending module 402 may be further configured to send a determination message to the set top box when the second address is the same as the first address, so as to determine that the address of the set top box is the first address.
The receiving module 401 may further be configured to receive a data request message sent by the set top box, where the data request message includes the first address of the set top box and information of the content to be acquired.
The sending module 402 may be further configured to, when it is determined that the address prefix of the first address includes the second field, send a data obtaining request to a server associated with the second field to obtain data associated with information of the content to be obtained from the server.
The receiving module 401 may also be configured to receive data sent by the server.
The sending module 402 may also be configured to send data to the set-top box.
The receiving module 401 may further be configured to receive data sent by the server, where the data includes a destination address of the data sending.
The sending module 402 may be further configured to send data to the set top box when it is determined that the address prefix of the destination address includes the second field.
The gateway for realizing address allocation provided by the embodiment of the invention sends an option125 specific field containing designated time information to the set-top box after receiving a request sent by the set-top box through a stateful automatic configuration method, is used for generating a new option60 field according to the option125 specific field containing the time information by the set-top box and sending the option60 field to the gateway, and the gateway decrypts the received option60 field and sends an IP address containing the option60 field content to the set-top box after the decryption is passed. The IP address is used for the set-top box to make data requests according to the IP address, and data forwarded by the gateway and comprising the content of the option60 field is received, namely, only the data comprising the content of the option60 field can be directionally sent to the IP address comprising the content of the option60 field. The problem that the address allocated to the drop device cannot realize data directional broadcasting in the automatic configuration process of the IPv6 address is solved, and end-to-end directional broadcasting of data is realized.
Corresponding to the embodiment of the address allocation method, the embodiment of the invention also provides a set top box for realizing address allocation.
Fig. 5 is a schematic structural diagram of a set top box according to an embodiment of the present invention.
As shown in fig. 5, the set-top box may include: a receiving module 501 and a sending module 502.
The sending module 502 may be configured to send an address request to a gateway.
The receiving module 501 may be configured to receive a first field sent by the gateway according to the address request, where the first field includes time information.
The sending module 502 may be further configured to send an instruction to the gateway, where the instruction includes a second field generated according to the first field including the time information.
The receiving module 501 may be further configured to receive a first address sent by the gateway according to the instruction, where an address prefix of the first address includes a second field.
The sending module 502 may be further configured to send, after receiving the first address sent by the gateway according to the instruction, a request message to the gateway, where the request message includes a second address, so that the gateway determines whether the second address is the same as the first address.
The receiving module 501 may be further configured to receive a determination message sent by the gateway when the second address is the same as the first address, so as to determine that the address of the set top box is the first address.
The sending module 502 may be further configured to send a data request message to the gateway, where the data request message includes the first address of the set top box and the information of the content to be acquired, so that the gateway sends a data acquisition request to a server related to the second field according to determining whether the address prefix of the first address includes the second field, and acquires data related to the information of the content to be acquired from the server when the address prefix of the first address includes the second field.
The receiving module 501 may also be configured to receive data sent by the gateway.
The set-top box for realizing address allocation provided by the embodiment of the invention uses a stateful automatic configuration method through the receiving gateway, and after receiving a request sent by the set-top box, sends an option125 specific field including designated time information. And generating a new option60 field according to the option125 specific field including the time information, and sending the option60 field to the gateway, wherein the gateway is used for decrypting the received option60 field and sending an IP address including the content of the option60 field to the set-top box after decryption. The IP address is used for the set-top box to make data requests according to the IP address, and data forwarded by the gateway and comprising the content of the option60 field is received, namely, only the data comprising the content of the option60 field can be directionally sent to the IP address comprising the content of the option60 field. The problem that the address allocated to the drop device cannot realize data directional broadcasting in the automatic configuration process of the IPv6 address is solved, and end-to-end directional broadcasting of data is realized.
Fig. 6 is a block diagram illustrating an exemplary hardware architecture capable of implementing a method of address assignment according to an embodiment of the present invention. As shown in fig. 6, computing device 600 includes an input device 601, an input interface 602, a central processor 603, a memory 604, an output interface 605, and an output device 606. The input interface 602, the central processing unit 603, the memory 604, and the output interface 605 are connected to each other via a bus 610, and the input device 601 and the output device 606 are connected to the bus 610 via the input interface 602 and the output interface 605, respectively, and further connected to other components of the computing device 600.
Specifically, the input device 601 receives input information from the outside, and transmits the input information to the central processor 603 through the input interface 602; the central processor 603 processes input information based on computer-executable instructions stored in the memory 604 to generate output information, stores the output information temporarily or permanently in the memory 604, and then transmits the output information to the output device 606 through the output interface 605; output device 606 outputs output information to the exterior of computing device 600 for use by a user.
That is, the computing device shown in fig. 6 may also be implemented as an address assignment device, which may include: a memory storing computer-executable instructions; and a processor that, when executing computer-executable instructions, may implement the method of address assignment provided by embodiments of the present invention.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium has computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement the method of address assignment provided by embodiments of the present invention.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (11)

1. A method for address allocation, applied to a gateway, the method comprising:
receiving an address request sent by a set top box;
a first field sent to a set top box, the first field including time information;
receiving an instruction sent by a set top box, wherein the instruction comprises a second field generated by the set top box according to the first field comprising the time information;
and sending a first address to the set top box according to the instruction, wherein the address prefix of the first address comprises the second field.
2. The method of claim 1, wherein after said sending the first address to the set top box according to the instruction, the method further comprises:
receiving a request message sent by the set top box, wherein the request message comprises a second address;
and when the second address is the same as the first address, sending a confirmation message to the set top box to confirm that the address of the set top box is the first address.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a data request message sent by the set top box, wherein the data request message comprises the first address of the set top box and information of content to be acquired;
when the address prefix of the first address is determined to comprise the second field, sending a data acquisition request to a server related to the second field so as to acquire data related to the information of the content to be acquired from the server;
receiving the data sent by the server;
and sending the data to the set top box.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving data sent by a server, wherein the data comprises a target address of the data sending;
when the address prefix of the target address is determined to include the second field, the data is sent to the set top box.
5. A method for address allocation, the method being applied to a set-top box, the method comprising:
sending an address request to a gateway;
receiving a first field sent by a gateway according to the address request, wherein the first field comprises time information;
sending an instruction to the gateway, the instruction including a second field generated from the first field including the time information;
and receiving a first address sent by the gateway according to the instruction, wherein an address prefix of the first address comprises the second field.
6. The method of claim 5, wherein after the receiving the first address sent by the gateway according to the instruction, the method further comprises:
sending a request message to the gateway, the request message including a second address for the gateway to determine whether the second address is the same as the first address;
and when the second address is the same as the first address, receiving a determination message sent by the gateway to determine that the address of the set top box is the first address.
7. The method of claim 5 or 6, further comprising:
sending a data request message to the gateway, where the data request message includes the first address of the set top box and information of content to be acquired, so that the gateway sends a data acquisition request to a server related to the second field when the address prefix of the first address includes the second field according to the determination whether the address prefix of the first address includes the second field, and acquires data related to the information of the content to be acquired from the server;
and receiving the data sent by the gateway.
8. A gateway, characterized in that the gateway comprises:
the receiving module is used for receiving an address request sent by the set-top box;
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a first field to a set top box, and the first field comprises time information;
the receiving module is further configured to receive an instruction sent by a set top box, where the instruction includes a second field generated by the set top box according to the first field including the time information;
the sending module is further configured to send a first address to the set top box according to the instruction, where an address prefix of the first address includes the second field.
9. A set top box, comprising:
the sending module is used for sending an address request to the gateway;
a receiving module, configured to receive a first field sent by a gateway according to the address request, where the first field includes time information;
the sending module is further configured to send an instruction to the gateway, where the instruction includes a second field generated according to the first field including the time information;
the receiving module is further configured to receive a first address sent by the gateway according to the instruction, where an address prefix of the first address includes the second field.
10. An apparatus for address allocation, the apparatus comprising: a processor and a memory storing computer program instructions;
the processor when executing the computer program instructions implements the method of address allocation according to any of claims 1-4 or the processor when executing the computer program instructions implements the method of address allocation according to any of claims 5-7.
11. A computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of address assignment according to any of claims 1-4, or which, when executed by the processor, implement the method of address assignment according to any of claims 5-7.
CN202010320342.7A 2020-04-22 Address allocation method, gateway, set top box, equipment and storage medium Active CN113542905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010320342.7A CN113542905B (en) 2020-04-22 Address allocation method, gateway, set top box, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010320342.7A CN113542905B (en) 2020-04-22 Address allocation method, gateway, set top box, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113542905A true CN113542905A (en) 2021-10-22
CN113542905B CN113542905B (en) 2024-05-03

Family

ID=

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809076A (en) * 2006-01-26 2006-07-26 中国移动通信集团公司 IPv6 terminal address generation and parsing method in communication network
CN101572692A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method, system and equipment for IP address assignment
CN101674288A (en) * 2008-09-12 2010-03-17 华为技术有限公司 Method, device and system for managing address prefix distribution
CN101753635A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method and system of collocating IPV6 (internet protocol version 6) addresses
CN101867625A (en) * 2010-07-19 2010-10-20 中国电信股份有限公司 Method for allocating IPv6 address and home gateway
CN103118276A (en) * 2012-12-28 2013-05-22 华为终端有限公司 Set top box (STB) configuration method, STB and servers
CN108848100A (en) * 2018-06-27 2018-11-20 清华大学 A kind of stateful IPv6 address generating method and device
CN109120957A (en) * 2017-06-23 2019-01-01 中兴通讯股份有限公司 A kind of set-top box establishes connection method, apparatus and system
CN110636146A (en) * 2018-06-25 2019-12-31 中国移动通信有限公司研究院 User address allocation method and device
CN110830333A (en) * 2018-08-09 2020-02-21 中兴通讯股份有限公司 Intelligent household equipment access authentication method, device, gateway and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809076A (en) * 2006-01-26 2006-07-26 中国移动通信集团公司 IPv6 terminal address generation and parsing method in communication network
CN101572692A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method, system and equipment for IP address assignment
CN101674288A (en) * 2008-09-12 2010-03-17 华为技术有限公司 Method, device and system for managing address prefix distribution
CN101753635A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method and system of collocating IPV6 (internet protocol version 6) addresses
CN101867625A (en) * 2010-07-19 2010-10-20 中国电信股份有限公司 Method for allocating IPv6 address and home gateway
CN103118276A (en) * 2012-12-28 2013-05-22 华为终端有限公司 Set top box (STB) configuration method, STB and servers
CN109120957A (en) * 2017-06-23 2019-01-01 中兴通讯股份有限公司 A kind of set-top box establishes connection method, apparatus and system
CN110636146A (en) * 2018-06-25 2019-12-31 中国移动通信有限公司研究院 User address allocation method and device
CN108848100A (en) * 2018-06-27 2018-11-20 清华大学 A kind of stateful IPv6 address generating method and device
CN110830333A (en) * 2018-08-09 2020-02-21 中兴通讯股份有限公司 Intelligent household equipment access authentication method, device, gateway and storage medium

Similar Documents

Publication Publication Date Title
US9699136B2 (en) Stateless autoconfiguration of hostnames of network devices
KR100560737B1 (en) appatus for converting IPv4-to-IPv6 using dual stack and method thereof
CN101019387B (en) Network user priority assignment system
US7804848B2 (en) Setting a forwarding address in an internet protocol version 6 (IPv6) routing protocol domain at a boundary with a different routing protocol domain
KR100908320B1 (en) Method for protecting and searching host in internet protocol version 6 network
US8886775B2 (en) Dynamic learning by a server in a network environment
US7760666B2 (en) Method of generating and managing connection identifiers for supporting multicast for each group in IPv6-based wireless network and network interface using the method
US20050027778A1 (en) Automatic configuration of an address allocation mechanism in a computer network
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
CN113132503B (en) Address allocation method and device
KR20070097531A (en) Distributed domain name service
CN110995883A (en) Method, system and storage medium for DHCPv6 fixed address configuration based on EUI-64
US9450909B2 (en) Method of and a processing device handling a protocol address in a network
CN113542905B (en) Address allocation method, gateway, set top box, equipment and storage medium
CN113938427A (en) Communication method and system, and routing node
CN113542905A (en) Address allocation method, gateway, set-top box, device and storage medium
US8265032B2 (en) Method and system for multicast broadcasting towards a roaming terminal according to the location thereof
Shiranzaei et al. A comparative study on IPv4 and Ipv6
JP5213070B2 (en) Wireless communication network connection system and wireless communication network connection method
CN108632198B (en) Equipment management method and device
CN107770070B (en) Information transmission method, equipment and system
Kumar et al. Computer Network-IP Address & Subnetting
JP2016515371A (en) Packet transmission method and apparatus, and server
US11902158B2 (en) System and method for forwarding packets in a hierarchical network architecture using variable length addresses
Hoffman III AN ENGINEER’S GUIDE TO TMoIPv6

Legal Events

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