Method, device, and storage medium for encoding and decoding capabilities of CPE
Through encoding and decoding methods, a multi-digit code sequence is generated to reflect the CPE's capability status, solving the problem that BOSS is difficult to accurately judge the CPE's software and hardware capabilities, and achieving accurate judgment of CPE capabilities and support for business configuration.
Patent Information
- Application Number
- CN202010914369.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-03
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2040-09-03
Smart Images

Figure CN114142863B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to the field of communication networks, and in particular to methods, apparatuses, and storage media for encoding and decoding capabilities of customer premises equipment (CPE). Background Art
[0002] In the current communication network, the operator's business operation support system (BOSS) generally performs services activation and information query on CPEs such as home gateways and government and enterprise gateways through the terminal integrated management system (ITMS). When performing service activation operations, BOSS usually needs to send the configuration information required for service activation to the CPE. One of the necessary conditions for the configuration information to be successfully sent to the CPE is that the CPE has the software and hardware capabilities required for service configuration, such as PON access capability, soft switching capability, IMS capability, IPv6 capability, IPsec capability, VxLan capability, and WiFi6 capability.
[0003] At present, the software and hardware capabilities of CPE are generally judged by, for example, the device model and software and hardware version information of CPE. However, different CPE manufacturers do not have a unified rule for the compilation of device model, software and hardware version information, which makes the judgment of the software and hardware capabilities of CPE complicated. In addition, in the existing terminal management interface specifications, there are no corresponding fields defined to accurately reflect the software and hardware capabilities of CPE. The above problems lead to the BOSS sometimes being unable to determine whether CPE can support the issued services when issuing service configurations to CPE, especially some services that require CPE online configuration (such as Vxlan, IPSec, etc.).
[0004] Therefore, it is hoped that a new solution can be provided to solve the problems currently encountered by BOSS in acquiring the software and hardware capabilities of CPE. Summary of the invention
[0005] The present disclosure aims to solve the problems currently encountered by BOSS when acquiring the capabilities of CPE. To this end, the present disclosure provides a method, device, and storage medium for encoding and decoding the capabilities of CPE.
[0006] According to one aspect of the present disclosure, a method for encoding capabilities of a CPE is proposed, the method comprising: receiving a pre-prepared list including at least one capability; for each capability in the list, determining whether the CPE has the capability; generating a binary code sequence based on a result of the determination, wherein the binary codes in the binary code sequence correspond one-to-one to the capabilities in the list and each bit of the binary code indicates that the CPE has or does not have the corresponding capability in the list; and converting the binary code sequence into a multi-bit code sequence as encoding information of the capabilities of the CPE.
[0007] According to another aspect of the present disclosure, a method for decoding capabilities of a CPE is proposed, the method comprising: obtaining a multi-bit code sequence as encoding information of the capabilities of the CPE; converting the multi-bit code sequence into a binary code sequence, wherein the binary codes in the binary code sequence correspond one-to-one to capabilities in a pre-defined list including at least one capability and each bit of the binary code indicates that the CPE has or does not have the corresponding capability in the list; selecting a capability in the list to be determined whether the CPE has; and determining whether the binary code in the binary code sequence corresponding to the capability selected in the list indicates that the CPE has the capability selected in the list or indicates that the CPE does not have the capability selected in the list.
[0008] According to yet another aspect of the present disclosure, a device for encoding capabilities of a CPE is proposed. The device includes components for implementing the method for encoding capabilities of a CPE according to the present disclosure.
[0009] According to another aspect of the present disclosure, a computer device is proposed, which includes: a processor; and a memory, wherein the memory stores a program that can be executed by the processor, and when the program is executed by the processor, it implements the method for encoding the capabilities of the CPE according to the present disclosure.
[0010] According to yet another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program, and when the program is executed by a processor, the program implements the method for encoding the capability of a CPE according to the present disclosure.
[0011] According to yet another aspect of the present disclosure, a device for decoding capabilities of a CPE is provided. The device includes components for implementing the method for decoding capabilities of a CPE according to the present disclosure.
[0012] According to another aspect of the present disclosure, a computer device is proposed, which includes: a processor; and a memory, wherein the memory stores a program that can be executed by the processor, and when the program is executed by the processor, it implements the method for decoding the capabilities of the CPE according to the present disclosure.
[0013] According to yet another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program, and when the program is executed by a processor, the program implements the method for decoding the capability of a CPE according to the present disclosure.
[0014] A brief overview of the disclosure is given above in order to provide a basic understanding of some aspects of the disclosure. However, it should be understood that this overview is not an exhaustive overview of the disclosure. It is not intended to be used to identify the key or important parts of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Its purpose is merely to give some concepts about the disclosure in a simplified form as a prelude to a more detailed description given later.
[0015] Other features and advantages of the present disclosure will become more apparent from the following detailed description of various embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which constitute a part of this specification, illustrate various embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0017] Figure 1 An example of a capability list according to an embodiment of the present disclosure is shown.
[0018] Figure 2 The basic flow of a method for encoding the capabilities of a CPE according to an embodiment of the present disclosure is shown.
[0019] Figure 3 A specific example of a process of encoding the capabilities of a CPE according to an embodiment of the present disclosure is shown.
[0020] Figure 4 The basic flow of a method for decoding CPE capabilities according to an embodiment of the present disclosure is shown.
[0021] Figure 5 The specific implementation of the decoding process of the CPE capability according to the embodiment of the present disclosure is shown.
[0022] Figure 6 An apparatus for encoding capabilities of a CPE according to an embodiment of the present disclosure is shown.
[0023] Figure 7A device for decoding capabilities of a CPE according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0024] Hereinafter, various embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0025] It should be noted that in the following detailed description, many specific details are set forth to provide a thorough understanding of the described embodiments. However, it should be clear to those skilled in the art that the described embodiments can be implemented without some or all of these specific details. In addition, in the described embodiments, in order to avoid unnecessarily obscuring the concepts of the present disclosure, some well-known contents are not described in detail, and where appropriate, these contents should be considered as part of the specification.
[0026] In addition, the steps of the methods presented in this disclosure are illustrative. In some embodiments, these methods may have one or more additional steps not described herein and / or omit one or more steps described herein. Moreover, the order in which the steps of these methods are illustrated and described is not restrictive.
[0027] As described above, the present disclosure is generally intended to solve the above-mentioned problems currently encountered by BOSS when acquiring the capabilities of CPE, which is mainly solved by the encoding and decoding of CPE capabilities proposed in the present disclosure.
[0028] Next, the method of encoding and decoding the capabilities of CPE disclosed in the present invention will be described.
[0029] Before describing these methods, we will first introduce the capability list to be used in the encoding and decoding process of the CPE's capabilities. The capability list refers to a list including at least one capability (hereinafter, for the convenience of description, "list" and "capability list" are sometimes used interchangeably). When the BOSS needs to determine whether the CPE has one or more capabilities, these capabilities can be filled in the table in turn, thereby formulating a capability list.
[0030] Figure 1 An example of a capability list according to an embodiment of the present disclosure is shown.
[0031] like Figure 1 As shown in , list 100a includes 7 capabilities, namely, PON access capability, soft switch capability, IMS capability, IPv6 capability, IPsec capability, VxLan capability, and WiFi capability.
[0032] In some embodiments, in addition to including one or more capabilities, the capability list may also include numbers indicating the position of the capabilities in the list, which numbers may be used in the decoding process of the CPE's capabilities (this will be described later).
[0033] like Figure 1 As shown in FIG. 1 , list 100 b includes the same capabilities as list 100 a and also includes numbers of these capabilities, which are incremented sequentially starting from the natural number 1.
[0034] It should be noted that Figure 1 The lists 100a and 100b in FIG. 1 are merely examples of capability lists. Those skilled in the art should appreciate that the capability lists of the present disclosure are not limited to these examples. For example, the capabilities included in the capability list are not limited to Figure 1 These capabilities are explicitly shown in the specification, and it may also include other capabilities, and the number of capabilities included may be any number.
[0035] After the capability list is prepared in advance, the CPE can obtain the capability list and start encoding the capability based on it. The encoding process of the capability of the CPE will be introduced below.
[0036] Figure 2 The basic flow of a method for encoding the capability of a CPE according to an embodiment of the present disclosure is shown. The method can be executed by a CPE.
[0037] First, in step S201, a pre-made list including at least one capability is received.
[0038] The capability list has been described above. As mentioned above, the capability list can be prepared by the BOSS. The prepared capability list can be sent by the BOSS to the CPE for reception by the CPE.
[0039] Next, in step S202, for each capability in the list received in step S201, it is determined whether the CPE has the capability.
[0040] Specifically, after receiving the capability list, the CPE can determine whether it has these capabilities or not for all the capabilities included in the capability list one by one.
[0041] Then, in step S203, a binary code sequence is generated based on the result of the determination in step S202.
[0042] Specifically, for each capability in the capability list, when judging whether the CPE has the capability or not, a corresponding one-bit binary code (i.e., "0" or "1") can be used to indicate the judgment result. In this way, the multi-bit binary codes used for all the capabilities in the capability list generate (form) a binary code sequence. According to the above explanation, it is easy to understand that the binary codes in the generated binary code sequence correspond one-to-one to the capabilities in the capability list, and each bit of the binary code indicates whether the CPE has the corresponding capability in the list or not.
[0043] Finally, in step S204, the binary code sequence generated in step S203 is converted into a multi-bit code sequence, and the converted multi-bit code sequence is used as the encoding information of the capability of the CPE.
[0044] The multi-ary code in step S204 may be one of a hexadecimal code, an octal code, etc. The conversion of a binary code sequence to a multi-ary code sequence is well known to those skilled in the art and will not be described in detail here.
[0045] In order to more clearly understand the encoding process of CPE capabilities, Figure 3 A specific example of the encoding process of the capabilities of the CPE according to an embodiment of the present disclosure is shown. Here, it is assumed that the CPE is specifically a government and enterprise gateway, which has PON access capability, soft switching capability, IPv6 capability, IPsec capability, and Vxlan capability.
[0046] like Figure 3 As shown in , first, the government and enterprise gateway receives the capability list. Here, the capability list received by the government and enterprise gateway is the same as Figure 1 The list 100a is the same as that in FIG, which includes 7 capabilities: PON access capability, soft switching capability, IMS capability, IPv6 capability, IPsec capability, VxLan capability, and WiFi6 capability.
[0047] Then, after the government and enterprise gateway receives the capability list, it will determine whether it has these capabilities one by one for the 7 capabilities in the capability list. As assumed above, the government and enterprise gateway itself has PON access capability, soft switching capability, IPv6 capability, IPsec capability, and Vxlan capability. Therefore, for these capabilities in the capability list, the result of the above judgment is "yes", that is, the government and enterprise gateway has these capabilities; on the contrary, for other capabilities in the capability list, that is, IMS capability and WiFi6 capability, the result of the above judgment is "no", that is, the government and enterprise gateway does not have these capabilities.
[0048] Then, the above judgment results of "yes" and "no" are indicated by binary codes "1" and "0" respectively. That is, binary code "1" is used to indicate that the government and enterprise gateway has the corresponding capability in the capability list, and binary code "0" is used to indicate that the government and enterprise gateway does not have the corresponding capability in the capability list. In this way, for the 7 capabilities in the capability list, a sequence of 7-bit binary codes "0111011" is generated. The 7-bit binary codes in the sequence correspond one-to-one to the 7 capabilities in the capability list to indicate that the government and enterprise gateway has or does not have the corresponding capability in the capability list.
[0049] Finally, the government and enterprise gateway converts the generated binary code sequence "0111011" into a hexadecimal code sequence. It should be noted here that, for the purpose of conversion, it is sometimes necessary to perform a "0" operation on the generated binary code sequence. Figure 3 In the example, after nine "0"s are added to the binary code sequence "0111011", the resulting binary code sequence is converted into a sequence "003B" consisting of four hexadecimal codes. It should be noted that those skilled in the art should be aware that the binary code sequence is not limited to being converted into a hexadecimal code sequence, but can also be converted into other hexadecimal code sequences (such as an octal code sequence), and the length (i.e., the number of bits) of the converted multi-bit code sequence can also be determined as needed ( Figure 3 4 digits in the middle).
[0050] The above is the basic process of encoding the capabilities of the CPE. It is not difficult to see that, first, in the present disclosure, the capabilities of the CPE are uniformly encoded based on the capability list to generate a coding sequence to indicate the capability status of the CPE, which avoids the trouble caused by the inconsistency of compiling the device model, software and hardware version information when the capabilities of the CPE are traditionally obtained through the device model, software and hardware version information (for example, making the judgment of the capabilities of the CPE complicated).
[0051] Secondly, in the present disclosure, a multi-bit code sequence can be used to accurately reflect the CPE's ability to have multiple capabilities. For example, a hexadecimal code sequence with a length of 4 can reflect the CPE's ability to have 16 capabilities at most.
[0052] Again, in the present disclosure, if there is a new capability that needs to be determined, it is only necessary to add the new capability to the capability list and then encode based on it. This method has good scalability.
[0053] In some embodiments, the encoding process of the CPE's capabilities may also include: Figure 2The multi-code sequence converted in step S204 is embedded in an existing field of the CPE wide area network management protocol (such as the TR069 protocol). In this way, the multi-code sequence can be extracted from the existing field of the protocol to decode the capabilities of the CPE without changing the existing interface protocol.
[0054] In some embodiments, the existing field of the CPE WAN management protocol is, for example, the software version number or hardware version number field of the CPE. Figure 3 In the example, assuming that the original software version number of the government and enterprise gateway is "v1.1.3", then Figure 3 After generating the hexadecimal code sequence "003B" as shown in , the hexadecimal code sequence "003B" can be embedded into the original software version number "v1.1.3". At this time, the software version number of the government and enterprise gateway becomes, for example, "003B_v1.1.3". BOSS can extract the sequence "003B" from the new software version number to decode the capabilities of the government and enterprise gateway. It should be noted that the existing fields of the CPE wide area network management protocol are not limited to the software version number or hardware version number fields, and the generated multi-binary code sequence can also be embedded into other existing fields.
[0055] Next, the decoding process of CPE capabilities will be introduced. Figure 4 The basic flow of a method for decoding the capability of a CPE according to an embodiment of the present disclosure is shown. The method may be executed by a BOSS.
[0056] First, in step S401, a multi-ary code sequence is obtained as encoding information of the capability of the CPE.
[0057] The multi-code sequence obtained in step S401 is Figure 2 The multi-code sequence generated in step S204 in the above description will not be described in detail here. As mentioned above, in some embodiments, the multi-code sequence generated by the encoding process can be embedded in an existing field of the CPE wide area network management protocol (such as the software version number or hardware version number field of the CPE). Therefore, in some examples, the multi-code sequence can be obtained from the existing field of the CPE wide area network management protocol in step S401. As an example, the above describes a situation in which the government and enterprise gateway embeds the hexadecimal code sequence "003B" into its original software version number "v1.1.3" so that the software version number becomes "003B_v1.1.3". In this case, when decoding the capabilities of the government and enterprise gateway, the sequence "003B" can be extracted from the software version number "003B_v1.1.3".
[0058] Next, in step S402, the multi-ary code sequence obtained in step S401 is converted into a binary code sequence.
[0059] The processing of step S402 is Figure 2 The reverse process of step S204 in the above process is as follows: Figure 2 The binary code sequence generated in step S203 in the above embodiment will not be described in detail here. Moreover, the conversion of a multi-bit code sequence to a binary code sequence is well known to those skilled in the art and will not be described in detail here.
[0060] Then, in step S403, the capability to be determined whether the CPE has is selected in the capability list.
[0061] Finally, in step S404, it is determined whether the binary code corresponding to the capability selected in step S403 in the binary code sequence converted in step S402 indicates that the CPE has the capability selected in the capability list or indicates that the CPE does not have the capability selected in the capability list.
[0062] As mentioned above, the binary codes in the binary code sequence generated during the encoding process of the CPE's capabilities correspond one-to-one to the capabilities in the capability list, and each bit of the binary code indicates whether the CPE has or does not have the corresponding capability in the capability list. Therefore, when decoding the capabilities of the CPE, after restoring the binary code sequence (step S402) and selecting the capability to be determined in the capability list (step S403), the binary code corresponding to the capability selected in the capability list can be determined based on the correspondence between the binary code in the binary code sequence and the capability in the capability list, thereby identifying whether the binary code indicates that the CPE has the capability selected in the capability list or does not have the capability selected in the capability list, thereby achieving the decoding of the CPE's capabilities.
[0063] There may be many specific implementations for the above steps S403-S404. Figure 5 Key Points Figure 4 A specific implementation of steps S403-S404. Figure 5 The specific implementation of the decoding process of the CPE capability according to the embodiment of the present disclosure is shown. It should be noted that: Figure 5 The list of capabilities involved is as follows Figure 1 Like list 100b in FIG. 1 , FIG. 1 includes a number indicating the position of each capability in the list.
[0064] In steps S501 and S502, a multi-code sequence C is obtained and converted into a binary code sequence C b These steps are similar to Figure 4The steps S401 and S402 correspond to each other.
[0065] In step S503, the numbers N1, N2, ..., N1 of the capabilities to be determined whether the CPE has are obtained from the capability list. m , where m is the number of capability numbers obtained (i.e., it is necessary to determine whether the CPE has m capabilities in the capability list), and the capabilities in the capability list are numbered sequentially starting from the natural number 1. Here, obtaining the capability number is to select the corresponding capability in the capability list. Therefore, step S503 is the same as Figure 4 Corresponding to step S403 in .
[0066] In step S504, calculate The sum K and convert K into a binary code sequence K b .
[0067] In step S505, the binary code sequence C b and K b Perform a bitwise AND operation to obtain the result R.
[0068] In step S506, determine whether the result R is equal to K b , if yes, proceed to step S507, if no, proceed to step S508.
[0069] In step S507, it is determined that the CPE has the same capability list as numbers N1, N2, ..., N m All corresponding capabilities.
[0070] In step S508, it is determined that the CPE does not have the same capability list as numbers N1, N2, ..., N m All the corresponding capabilities, that is, they do not have the same capabilities as those of numbers N1, N2, ..., N m At least one of the corresponding capabilities.
[0071] In steps S504 to S508, the binary code sequence C can be determined through the above-mentioned various calculations, comparisons and other operations. b The number in the capability list is N1, N2, ..., N m The binary code corresponding to the capability indicates that the CPE has the capability numbered N1, N2, ..., N in the capability list. m capability, or indicates that the CPE does not have the capability numbered N1, N2, ..., N in the capability list. m Therefore, these steps are similar to Figure 4 Here, it should be noted that in Figure 5In step S508, as required, it is determined that only the CPE does not have the capability list corresponding to the number N1, N2, ..., N m All corresponding capabilities without further specifically determining which one or which capabilities the CPE does not have.
[0072] To facilitate a clearer understanding Figure 5 The decoding process of the CPE capability shown in FIG. 1 is shown in FIG. 1 , and a specific example of this process is given below. Figure 3 Describes an example of the encoding process of CPE (specifically, government and enterprise gateway) capabilities. The following is based on Figure 3 An example of the decoding process of the CPE (specifically a government and enterprise gateway) capabilities performed by the coding sequence generated.
[0073] Thus, in step S501, the obtained multi-bit code sequence C is the hexadecimal code sequence "003B"; in step S502, the converted binary code sequence C is b is "0000000000111011"; in step S503, it is assumed that the obtained capability numbers N1 and N2 (here m=2) are 2 and 5 respectively, that is, the soft switch capability and IPsec capability in the capability list are selected (see Figure 1 List 100b) in step S504 is used to determine whether the government and enterprise gateway has these two capabilities; in step S504, calculation And the binary code sequence K obtained after conversion b is "0000000000010010" (Note: for the AND operation in the subsequent step S505, it is sometimes necessary to obtain the binary code sequence Kb by supplementing "0" operation); in step S505, C b and K b The result R obtained by performing bitwise AND operation is "0000000000010010; in step S506, it can be determined that the result R = K b Therefore, in step S507, it is determined that the government and enterprise gateway has two capabilities corresponding to numbers 2 and 5 in the capability list (ie, soft switching capability and IPsec capability).
[0074] As a comparison, assume that the capability numbers N1 and N2 obtained in step S502 are 3 and 5 respectively, that is, the IMS capability and IPsec capability in the capability list are selected (see Figure 1 List 100b) in the table is used to determine whether the government and enterprise gateway has these two capabilities. Then in step S504, the calculation And the binary code sequence K obtained after conversion b is "0000000000010100"; in step S505, b and K bThe result R obtained by performing bitwise AND operation is "0000000000010000". In step S506, it can be determined that the result R≠K b Therefore, in step S508, it is determined that the government and enterprise gateway does not have at least one of the two capabilities corresponding to numbers 3 and 5 in the capability list (ie, IMS capability and IPsec capability).
[0075] The above referenced Figure 5 A specific implementation of the decoding process of the CPE capability is described. It should be noted that the decoding process of the CPE capability disclosed in the present invention is not limited to this specific implementation. For example, Figure 5 It is shown that it is possible to determine whether the CPE has multiple capabilities in the list at one time. Those skilled in the art will appreciate that only one capability can be determined at one time (i.e., multiple capabilities can be determined multiple times). In short, as long as it can be determined whether the binary code corresponding to the selected capability in the list in the binary code sequence indicates that the CPE has the selected capability or does not have the selected capability, any specific implementation method can be used.
[0076] The above is the decoding process of the CPE capability. From the above description, it can be seen that after receiving the coding sequence as the coding information of the CPE capability, the CPE capability can be obtained based on the coding sequence and the capability list (for example, to determine whether the CPE has a certain capability or capabilities). Compared with the traditional method of obtaining the CPE capability, the solution provided by the present disclosure has many advantages such as being able to simply and accurately obtain the CPE capability and having good scalability. These advantages have also been mentioned in the previous discussion of the encoding process of the CPE capability.
[0077] After describing the method for encoding and decoding the capabilities of a CPE of the present disclosure, the apparatus for encoding and decoding the capabilities of a CPE of the present disclosure will be briefly introduced below. Figure 6 and Figure 7 An apparatus for encoding the capabilities of a CPE and an apparatus for decoding the capabilities of a CPE according to an embodiment of the present disclosure are respectively shown.
[0078] like Figure 6 As shown in , the device 600 for encoding the capability of a CPE includes a first component 601 , a second component 602 , a third component 603 , and a fourth component 604 .
[0079] The first component 601 is used to receive a pre-defined list including at least one capability.
[0080] The second component 602 is used to determine whether the CPE has each capability in the list.
[0081] The third component 603 is used to generate a binary code sequence based on the judgment result, wherein the binary codes in the binary code sequence correspond one-to-one to the capabilities in the list and each bit of the binary code indicates whether the CPE has or does not have the corresponding capability in the list.
[0082] The fourth component 604 is used to convert the binary code sequence into a multi-bit code sequence as the encoding information of the CPE capability.
[0083] It should be noted that the first component 601, the second component 602, the third component 603, and the fourth component 604 are described above as respectively performing Figure 2 The processing of steps S201, S202, S203, and S204 shown in FIG. However, this is only an example. Those skilled in the art will appreciate that Figure 2 The processing of steps S201, S202, S203, and S204 shown in FIG. 1 may be performed by a greater or lesser number of components, and is not limited to Figure 6 The four components shown in .
[0084] Furthermore, as described above, the encoding process of the CPE capability of the present disclosure includes Figure 2 In addition to the processing of steps S201, S202, S203, and S204 shown in FIG, many other processing may also be included. Therefore, the first component 601, the second component 602, the third component 603, and the fourth component 604 in the device 600 may also be used to perform these other processing, or the device 600 may also include additional components to perform these other processing. For those skilled in the art, these are all conceivable, so they will not be further elaborated in detail here.
[0085] like Figure 7 As shown in FIG. 7 , an apparatus 700 for decoding capabilities of a CPE includes a first component 701 , a second component 702 , a third component 703 , and a fourth component 704 .
[0086] The first component 701 is used to obtain a multi-bit code sequence as encoding information of the capability of the CPE.
[0087] The second component 702 is used to convert a multi-bit code sequence into a binary code sequence, wherein the binary codes in the binary code sequence correspond one-to-one to capabilities in a pre-defined list including at least one capability and each bit of the binary code indicates whether the CPE has the corresponding capability in the list or not.
[0088] The third component 703 is used to select in the list the capability to be determined whether the CPE has.
[0089] The fourth component 704 is used to determine whether the binary code corresponding to the capability selected in the list in the binary code sequence indicates that the CPE has the capability selected in the list or indicates that the CPE does not have the capability selected in the list.
[0090] Similarly, it should be noted that the first component 701, the second component 702, the third component 703, and the fourth component 704 are described above as respectively executing Figure 4 The processing of steps S401, S402, S403, and S404 shown in FIG. However, this is only an example. Those skilled in the art will appreciate that Figure 4 The processing of steps S401, S402, S403, and S404 shown in FIG. 4 may be performed by a greater or lesser number of components, and is not limited to Figure 7 The four components shown in .
[0091] Moreover, as described above, the decoding process of the CPE capability of the present disclosure includes Figure 4 In addition to the processing of steps S401, S402, S403, and S404 shown in FIG, many other processing may also be included. Therefore, the first component 701, the second component 702, the third component 703, and the fourth component 704 in the device 700 may also be used to perform these other processing, or the device 700 may also include additional components to perform these other processing. For those skilled in the art, these are all conceivable, so they will not be further elaborated in detail here.
[0092] The present disclosure may also be implemented by a computer program. For example, the program may be stored in a memory of a computer device, which implements the method for encoding the capabilities of a CPE and the method for decoding the capabilities of a CPE of the present disclosure when executed by a processor of the computer device. Alternatively, the program may be stored in a computer-readable storage medium, which implements the method for encoding the capabilities of a CPE and the method for decoding the capabilities of a CPE when executed by a processor.
[0093] The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or apparatus, or any suitable combination of the foregoing. More specific examples of computer readable storage media can include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0094] The flowcharts and block diagrams in the accompanying drawings illustrate possible architectures, functions, and operations of the devices, methods, etc. according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a portion of a module, segment, or instruction, which includes one or more executable instructions for implementing one or more specified logical functions. In some alternative implementations, the processing marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, depending on the functions involved, two consecutive boxes may actually be executed substantially in parallel, or the boxes may sometimes be executed in reverse order. Those skilled in the art may adjust the order of operations as needed. Those skilled in the art may also add more operations or omit some of the operations as needed.
[0095] Any feature described in this specification, unless otherwise specified, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise specified, each feature is only an example in a series of equivalent or similar features.
[0096] In addition, although the description of the present disclosure has included descriptions of one or more embodiments, configurations, or aspects, other variations, modifications, and combinations are also within the scope of the present disclosure. The present disclosure is intended to obtain rights, which should include alternative embodiments, configurations, or aspects within the permitted scope, and including structures, functions, or steps that are interchangeable, alternative, and / or equivalent to those structures, functions, or steps claimed, regardless of whether these interchangeable, alternative, and / or equivalent structures, functions, or steps are specifically described in this specification.
Claims
1. A method for encoding capabilities of customer premises equipment (CPE), the method comprising the following steps: receiving a pre-defined list of at least one capability; For each capability in the list, determining whether the CPE has the capability; Generate a binary code sequence based on the result of the determination, wherein the binary codes in the binary code sequence correspond one-to-one to the capabilities in the list and each bit of the binary code indicates whether the CPE has or does not have the corresponding capability in the list; as well as The binary code sequence is converted into a multi-bit code sequence as the encoding information of the capability of the CPE.
2. The method according to claim 1, further comprising the steps of: The multi-code sequence is embedded in an existing field of the CPE wide area network management protocol.
3. The method according to claim 2, wherein: The existing field of the CPE wide area network management protocol is the hardware version number or software version number field of the CPE.
4. The method according to claim 1, wherein: The multi-code sequence is a hexadecimal code sequence.
5. The method according to claim 1, wherein: The list is pre-formulated by the operator's Business Operation Support System (BOSS).
6. The method according to claim 1, wherein: The list includes at least one of the following capabilities: PON access capability, soft switching capability, IMS capability, IPv6 capability, IPsec capability, VxLan capability, and WiFi6 capability.
7. A method for decoding capabilities of customer premises equipment (CPE), the method comprising the following steps: Obtaining a multi-bit code sequence as encoding information of the capability of the CPE; Converting the multi-bit code sequence into a binary code sequence, wherein the binary codes in the binary code sequence correspond one-to-one to capabilities in a pre-defined list including at least one capability and each bit of the binary code indicates whether the CPE has or does not have the corresponding capability in the list; Selecting a capability in the list to be determined whether the CPE has; as well as It is determined whether the binary code in the binary code sequence corresponding to the capability selected in the list indicates that the CPE has the capability selected in the list or indicates that the CPE does not have the capability selected in the list.
8. The method according to claim 7, wherein: The multi-code sequence is obtained from an existing field of the CPE wide area network management protocol.
9. The method according to claim 8, wherein: The existing field of the CPE wide area network management protocol is the hardware version number or software version number field of the CPE.
10. The method according to claim 7, wherein: The multi-code sequence is a hexadecimal code sequence.
11. The method according to claim 7, wherein: The list is pre-formulated by the operator's Business Operation Support System (BOSS).
12. The method according to claim 7, wherein: The list includes at least one of the following capabilities: PON access capability, soft switching capability, IMS capability, IPv6 capability, IPsec capability, VxLan capability, and WiFi6 capability.
13. The method according to claim 7, wherein: The list further comprises a number indicating the position of each capability in the list, and wherein the selecting step comprises: Obtain the number of the capability in the list for which it is to be determined whether the CPE has it.
14. The method according to claim 13, wherein: When the capabilities in the list are numbered in ascending order starting from a natural number 1, and a binary code "1" in the binary code sequence indicates that the CPE has the corresponding capability in the list and a binary code "0" indicates that the CPE does not have the corresponding capability in the list, the determining step includes: calculate The sum K and convert K into a binary code sequence K b , where N1, N2, ..., N m is the number of the capability obtained in the selection step, and m is the number of the obtained capability numbers; The binary code sequence obtained in the conversion step and the binary code sequence K b Perform bitwise AND operation to obtain the result R; Determine whether the result R is equal to K b If yes, it is determined that the CPE has the same number N1, N2, ..., N in the list. m Otherwise, it is determined that the CPE does not have the capabilities corresponding to the numbers N1, N2, ..., N in the list. m At least one of the corresponding capabilities.
15. An apparatus for encoding capabilities of a Customer Premises Equipment (CPE), the apparatus comprising means for implementing the method according to any one of claims 1-6.
16. A computer device, comprising: processor; and A memory storing a program executable by the processor, wherein the program implements the method according to any one of claims 1 to 6 when executed by the processor.
17. A computer-readable storage medium storing a program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
18. An apparatus for decoding capabilities of a Customer Premises Equipment (CPE), the apparatus comprising means for implementing the method according to any one of claims 7-14.
19. A computer device, comprising: processor; and A memory storing a program executable by the processor, wherein the program implements the method according to any one of claims 7 to 14 when executed by the processor.
20. A computer-readable storage medium storing a program, which, when executed by a processor, implements the method according to any one of claims 7 to 14.
