Communication method, terminal, medium and product

By storing the basic version by using public modules and multiple alternative branch modules in the terminal, the problem of the terminal requiring multiple sub-operator software is solved, and the storage space saving and operation and maintenance efficiency are improved.

CN120050689AActive Publication Date: 2025-05-27ZTE CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510511493.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-23
Publication Date
2025-05-27
Estimated Expiration
2045-04-23

AI Technical Summary

Technical Problem

The terminal needs to store software corresponding to multiple sub-operators, resulting in large storage space occupancy, reduced data processing speed, and requires maintenance of multiple software to reduce operation and maintenance efficiency.

Method used

The basic version is stored in the terminal. The basic version includes a common module and multiple alternative branch modules, and each alternative branch module corresponds to a communication subnet. By determining that the current communication subnet is the target communication subnet, the corresponding target branch module is selected and loaded to support the communication of the terminal in the target communication subnet.

Benefits of technology

Save terminal storage space, reduce software maintenance needs, improve operation and maintenance efficiency, and support terminal communication in multiple communication subnets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050689A_ABST
    Figure CN120050689A_ABST
Patent Text Reader

Abstract

The invention provides a communication method, which is applied to a terminal, a basic version is stored in the terminal, the basic version comprises a public module and a plurality of alternative branch modules, and each alternative branch module corresponds to a communication subnet; the method comprises the following steps: determining a current communication sub-network as a target communication sub-network; selecting a target branch module corresponding to the target communication subnet from the plurality of alternative branch modules; and loading the target branch module. According to the embodiment of the invention, the storage space of the terminal can be saved, the terminal does not need to maintain multiple pieces of software, and the operation and maintenance efficiency is improved. The embodiment of the invention further provides a terminal, a computer readable medium and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technologies, and particularly to a communication method, a terminal, a computer-readable medium, and a computer program product. Background Art

[0002] Currently, in order to support the service requirements of multiple sub-operators under a main operator, multiple software corresponding to the sub-operators are usually stored on the terminal side, so that when the terminal supports the service processing of a certain sub-operator, one of the software is selected to run.

[0003] However, this will cause the terminal to need to store multiple sets of software, occupying a large amount of the terminal's storage space, reducing the data processing speed of the terminal, and the terminal also needs to maintain multiple software, which will also reduce the operation and maintenance efficiency. Summary of the Invention

[0004] The present disclosure provides a communication method, a terminal, a computer-readable medium, and a computer program product.

[0005] In a first aspect, an embodiment of the present disclosure provides a communication method, which is applied to a terminal. The terminal stores a base version, and the base version includes a common module and multiple alternative branch modules. Each alternative branch module corresponds to a communication subnet. The method includes: determining that the current communication subnet is a target communication subnet; selecting a target branch module corresponding to the target communication subnet from the multiple alternative branch modules; and loading the target branch module.

[0006] In a second aspect, an embodiment of the present disclosure provides a terminal, including: one or more processors; a memory storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the communication methods in the embodiments of the present disclosure.

[0007] In a third aspect, an embodiment of the present disclosure provides a readable storage medium storing a computer program, and when the computer program is executed by a processor, it implements any one of the communication methods in the embodiments of the present disclosure.

[0008] In a fourth aspect, an embodiment of the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements any one of the communication methods in the embodiments of the present disclosure.

[0009] In the communication method according to the embodiments of the present disclosure, by storing the base version in the terminal in the form of a common module and multiple alternative branch modules, compared with the prior art in which multiple different software are stored on the terminal side, the storage space of the terminal can be saved; after determining that the current communication subnet is the target communication subnet, the terminal selects the target branch module corresponding to the target communication subnet from multiple alternative branch modules and loads the target branch module, so that the terminal can realize communication in the target communication subnet based on the base version loaded with the target branch module. Compared with the prior art, the terminal does not need to maintain multiple software, thus improving the operation and maintenance efficiency.

[0010] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings are used to provide a further understanding of the present disclosure, and constitute a part of the specification. They are used to explain the present disclosure together with the embodiments of the present disclosure, and do not constitute a limitation to the present disclosure. By describing the detailed exemplary embodiments with reference to the drawings, the above and other features and advantages will become more obvious to those skilled in the art. In the drawings.

[0012] Figure 1 It is a schematic flowchart of a communication method provided by an embodiment of the present disclosure.

[0013] Figure 2 It is a block diagram of the composition of a communication system provided by an embodiment of the present disclosure.

[0014] Figure 3 It is a block diagram of the composition of another communication system provided by an embodiment of the present disclosure.

[0015] Figure 4 It is a schematic flowchart of another communication method provided by an embodiment of the present disclosure.

[0016] Figure 5 It is a block diagram of the composition of a terminal provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0017] To enable those skilled in the art to better understand the technical solutions of the present disclosure, the following makes descriptions of the exemplary embodiments of the present disclosure with reference to the drawings. Various details of the embodiments of the present disclosure are included to assist in understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description below omits the descriptions of well-known functions and structures.

[0018] The accompanying drawings of the embodiments of the present disclosure are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification. Together with the detailed embodiments, they are used to explain the present disclosure and do not constitute a limitation to the present disclosure. By describing the detailed embodiments with reference to the accompanying drawings, the above and other features and advantages will become more apparent to those skilled in the art.

[0019] Without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.

[0020] The terms used in the present disclosure are only for describing specific embodiments and are not intended to limit the present disclosure. As used in the present disclosure, the term "and / or" includes any and all combinations of one or more of the related listed items. As used in the present disclosure, the singular forms "a" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. As used in the present disclosure, the terms "comprising", "made of", specify the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their groups.

[0021] Unless otherwise defined, all terms (including technical and scientific terms) used in the present disclosure have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the related art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless the present disclosure clearly so defines.

[0022] Currently, for different types of communication subnets, in order for a terminal to adapt to a wider range of service support, there are usually multiple different software. For example, based on the service requirements of multiple sub-operators under a certain main operator, software corresponding to each sub-operator is stored respectively, so that when the terminal supports the service processing of a certain sub-operator, one of the software can be selected to run.

[0023] However, this will cause the terminal to need to store multiple sets of software, occupying a large amount of the terminal's storage space, reducing the data processing speed of the terminal, and the terminal also needs to maintain multiple software, which will also reduce the operation and maintenance efficiency.

[0024] To solve the above problems, the present disclosure provides a communication method, a terminal, a computer-readable medium and a computer program product.

[0025] In a first aspect, an embodiment of the present disclosure provides a communication method.

[0026] Figure 1Schematic flowchart of a communication method provided by an embodiment of the present disclosure. This communication method is applied to a terminal, and the terminal stores a basic version, which includes a common module and multiple alternative branch modules, and each alternative branch module corresponds to a communication subnet.

[0027] Among them, the common module is a module for supporting the basic operation of the terminal, or common code in the software for supporting the operation of the terminal.

[0028] In some embodiments, the terminal provided by the present disclosure can be a terminal used in any of the following application scenarios: Digital Subscriber Line (DSL) communication scenario, Fiber to the Room (FTTR) communication scenario, Fiber To The Home (FTTH) communication scenario, and Gigabit-Capable Passive Optical Network (GPON) communication scenario.

[0029] As Figure 1 shown, this communication method includes but is not limited to the following steps.

[0030] Step S101, determine that the current communication subnet is the target communication subnet.

[0031] Among them, the current communication subnet is the communication subnet that the terminal has currently entered. If the communication subnet where the terminal was previously located is not the target communication subnet, the terminal needs to adjust the software it runs at this time to support the communication services carried out by the terminal in the target communication subnet.

[0032] For example, the software currently running on the terminal is software that supports the first communication subnet. When the terminal enters the second communication subnet (i.e., the target communication subnet), the terminal needs to switch the software that supports the first communication subnet to software that supports the target communication subnet.

[0033] Step S102, select a target branch module corresponding to the target communication subnet from multiple alternative branch modules.

[0034] Among them, the target branch module is a module that can support the terminal to communicate in the target communication subnet.

[0035] Each alternative branch module corresponds to a communication subnet. By combining any alternative branch module with the common module, the obtained version can support the terminal to communicate in any one of multiple communication subnets.

[0036] In some embodiments, each alternative branch module can be implemented in the form of different configuration files or in the form of code branches.

[0037] Step S103, load the target branch module.

[0038] Among them, by selecting and loading the target branch module in the base version, the obtained version can support the communication of the terminal in the target communication subnet.

[0039] In the communication method of the embodiments of the present disclosure, the base version is stored in the terminal in the form of a common module and multiple alternative branch modules. Compared with the prior art in which multiple different software are stored on the terminal side, the storage space of the terminal can be saved; after determining that the current communication subnet is the target communication subnet, the terminal selects the target branch module corresponding to the target communication subnet from multiple alternative branch modules and loads the target branch module, so that the terminal can realize communication in the target communication subnet based on the base version loaded with the target branch module. Compared with the prior art, the terminal does not need to maintain multiple software, thereby improving the operation and maintenance efficiency.

[0040] In some embodiments, before performing the determination in step S101 that the current communication subnet is the target communication subnet, the method further includes: loading the common module.

[0041] Among them, the common module is a module for supporting the basic operation of the terminal, or the common code in the software for supporting the operation of the terminal. For example, the common module is a basic logic processing module such as system initialization and power-on processing, or the common code in the software versions corresponding to each alternative communication subnet supported by the terminal.

[0042] To ensure the normal operation of the terminal, as a way of the embodiments of the present disclosure, the terminal needs to first load the common module and then load the target branch module to realize the communication support for the target communication subnet, so as to realize the version formed by the base version based on the common module and the target branch module, and support the terminal to communicate in the target communication subnet.

[0043] In some embodiments, the determination in step S101 that the current communication subnet is the target communication subnet can be implemented in the following manner: in response to the received configuration message, obtain the service identifier carried in the configuration message; according to the service identifier, determine that the current communication subnet is the target communication subnet.

[0044] Among them, the service identifier is used to identify the corresponding communication subnet.

[0045] When the network-side device configures the terminal, one configuration only corresponds to opening a service channel corresponding to one communication subnet. In other words, only one service identifier corresponding to one communication subnet is carried in one configuration message. When the service identifier carried in the received configuration message is the same as the service identifier corresponding to the target communication subnet, it is determined that the current communication subnet is the target communication subnet.

[0046] As a way of an embodiment of the present disclosure, by means of the network-side device sending a configuration message to the terminal, the terminal can clearly know that the current communication network it is in is the target communication subnet, so as to facilitate the terminal to select the target branch module corresponding to the target communication subnet from multiple alternative branch modules; thereby, based on the version determined by the target branch module and the common module, support the terminal to communicate in the target communication subnet.

[0047] In some embodiments, the configuration message includes an idle field defined by a preset communication protocol, and the service identifier is stored in the idle field.

[0048] Among them, the preset communication protocol includes the communication protocol for short-range communication between the network-side device and the terminal. For example, if the short-range communication supported between the network-side device and the terminal is mobile hotspot (WiFi) communication, then the preset communication protocol is the WiFi communication protocol (such as, 802.11 ax standard protocol, etc.). If the short-range communication supported between the network-side device and the terminal is Bluetooth communication, then the preset communication protocol is the Bluetooth communication protocol.

[0049] The service identifier stored in the idle field can be any one of the following fields: the option 43 field in the Dynamic Host Configuration Protocol (DHCP), the option 15 field in the DHCP, the option 60 field in the DHCP, and the custom field in the Point-to-Point Protocol Over Ethernet (PPPoE).

[0050] By storing the service identifier in the idle field defined by the above preset communication protocol, there is no need to reconstruct the communication message again. The service identifier can be carried only through the original preset communication protocol, reducing the number of communication messages. At the same time, it can also enable the terminal to quickly know the service identifier corresponding to the target communication subnet it needs to support, which is beneficial for the terminal to quickly switch versions, support the normal communication of the terminal in the target communication subnet, and improve the communication efficiency.

[0051] In some embodiments, determining that the current communication subnet is the target communication subnet according to the service identifier includes: in response to the service identifier including the first type of target virtual local area network channel identifier, determining that the current communication subnet corresponding to the first type of target virtual local area network channel identifier is the target communication subnet.

[0052] Among them, each first - type target virtual local area network (VLAN) channel identifier corresponds to an alternative communication subnet. The first - type target VLAN channel identifier is the identifier of the terminal configured by the network - side device in the target VLAN channel.

[0053] By querying the pre - planned correspondence table between VLAN channel identifiers and each alternative communication subnet, it can be known that the first - type target VLAN channel identifier carried in the current configuration message corresponds to only one alternative communication subnet. Then, only by extracting this first - type target VLAN channel identifier can the service identifier be obtained, and then based on this first - type target VLAN channel identifier, the corresponding communication subnet is determined as the target communication subnet.

[0054] As a way of the embodiment of the present disclosure, by receiving a configuration message and confirming that the first - type target VLAN channel identifier carried in the configuration message corresponds to only one alternative communication subnet, the corresponding communication subnet can be directly determined as the target communication subnet based on this first - type target VLAN channel identifier, improving the recognition speed of the target communication subnet.

[0055] In some embodiments, determining the current communication subnet as the target communication subnet according to the service identifier includes: in response to the service identifier including a second - type target VLAN channel identifier and the device parameters of the alternative communication subnet, determining the target communication subnet according to the second - type target VLAN channel identifier and the device parameters of the alternative communication subnet.

[0056] Among them, each second - type target VLAN channel identifier corresponds to at least two alternative communication subnets, and the combination of each second - type target VLAN channel identifier and the device parameters of each alternative communication subnet corresponds to an alternative communication subnet.

[0057] By querying the pre - planned correspondence table between VLAN channel identifiers and each alternative communication subnet, it can be known that the second - type target VLAN channel identifier carried in the current configuration message corresponds to at least two alternative communication subnets, and the device parameters of each alternative communication subnet are different. Therefore, the second - type target VLAN channel identifier and the device parameters of the alternative communication subnet can be jointly used as the service identifier, and then based on this service identifier, the corresponding target communication subnet is determined to accelerate the recognition speed of the target communication subnet.

[0058] For example, by querying the correspondence table between the pre-planned VLAN channel identifiers and each alternative communication subnet, it can be determined that the second type of target VLAN channel identifier is 300, which can correspond to alternative communication subnet C or alternative communication subnet D; when the second type of target virtual local area network channel identifier carried in the configuration message received by the terminal is 300, and the device parameter of the alternative communication subnet carried is the network address information of alternative communication subnet C, the target communication subnet can be determined to be alternative communication subnet C.

[0059] Using the above method to determine the service identifier and determining the target communication subnet based on this service identifier can more accurately confirm different alternative communication subnets, so as to determine which specific alternative communication subnet the terminal is currently in based on a more accurate service identifier, improving the accuracy of determining the target communication subnet.

[0060] In some embodiments, the device parameters of the alternative communication subnet include at least one of the following: the network address identifier of the network-side device, the type information of the terminal, and the mask information of the communication subnet where the terminal is located.

[0061] In some embodiments, each alternative branch module includes alternative service parameters, and / or alternative service processing logic.

[0062] Among them, the alternative service parameters are parameters representing the business data processing in the corresponding alternative communication subnet in the alternative branch module; the alternative service processing logic is the logic for the alternative branch module to process the business data in the alternative communication subnet.

[0063] For example, the alternative service parameters include parameters such as the subnet identifier of the alternative communication subnet and the service types that the alternative communication subnet can support, and these alternative service parameters can be updated in the form of a configuration file.

[0064] For another example, the alternative service processing logic can be implemented in the form of alternative code branches. When it is determined that a certain alternative branch module needs to be used to support the business data processing in its corresponding alternative communication subnet, the alternative code branch corresponding to the identifier of the alternative communication subnet can be selected in the basic version to implement the processing of the business data of the alternative communication subnet.

[0065] By characterizing the processing method of service data in an alternative communication subnet based on alternative service parameters and / or alternative service processing logics, the service data in the alternative communication subnet can be processed more precisely, thereby improving the processing accuracy of service data. At the same time, the terminal does not need to store specific software corresponding to the alternative communication subnet anymore. It only needs to screen and load alternative branch modules based on the basic version to obtain a version that can support the processing of service data in the alternative communication subnet, thereby reducing the occupied proportion of the storage space of the terminal and improving the processing speed of the terminal for service data.

[0066] In some embodiments, before loading the target branch module in step S103, the method further includes: unloading the historical branch module.

[0067] The historical branch module is the branch module used at the previous moment when entering the current communication subnet.

[0068] For example, it is set that the communication subnet where the terminal is located at the first moment is the first communication subnet, and the communication subnet where the terminal is located at the second moment is the second communication subnet, and the first moment is the previous moment of the second moment; then when the terminal switches from the first communication subnet to the second communication subnet, it needs to unload the historical branch module corresponding to the first communication subnet in the version used at the first moment, and then load the target branch module corresponding to the second communication subnet, so as to obtain a new version that can support the service processing of the terminal in the second communication subnet (i.e., the target communication subnet).

[0069] It should be noted that when the terminal is in the factory settings, a default branch module is default set in the stored basic version. The default version generated by the default branch module and the common module can support the terminal to process corresponding service data in the communication subnet corresponding to the default branch module.

[0070] When the terminal first enters an actual communication subnet (such as the first communication subnet) for communication, its corresponding default branch module can also be regarded as a historical branch module; at this time, the terminal needs to unload the default branch module and load the target branch module corresponding to the first communication subnet, so that the loaded version corresponds to the first communication subnet and supports the terminal to process corresponding service data in the first communication subnet.

[0071] By adopting the above-mentioned offloading historical branch module and loading the target branch module, the replacement of the software of different communication subnets on the terminal is realized. Compared with the method in the prior art where the terminal needs to store the software codes and versions corresponding to multiple alternative communication subnets, it can obtain the version corresponding to the target communication subnet more quickly and conveniently, and support the terminal to process the corresponding service data in the target communication subnet. This not only reduces the occupation ratio of the storage space of the terminal, but also improves the processing efficiency of the service data in the target communication subnet by the terminal.

[0072] In some embodiments, the terminal in the present disclosure can be any one of the following devices: a router, a gateway device, and an ONU in an optical network.

[0073] For example, the terminal is an optical network unit ONU in an optical network; the network address identifier of the network-side device is the network address identifier of the target optical line terminal OLT connected to the ONU.

[0074] For example, Figure 2 It is a block diagram of the composition of a communication system provided by an embodiment of the present disclosure. As Figure 2 shown, the communication system includes an optically connected optical line terminal (Optical Line Terminal, OLT) 201 and an optical network unit (Optical Network Unit, ONU) 202.

[0075] Among them, the ONU 202 stores a basic version to support the ONU to communicate in the communication subnet corresponding to the target OLT (such as, OLT 201). The basic version includes a common module and multiple alternative branch modules, and each alternative branch module corresponds to a communication subnet.

[0076] Figure 3 It is another block diagram of the composition of a communication system provided by an embodiment of the present disclosure. As Figure 3 shown, a broadband remote access server (Broadband Remote Access Server, BRAS) 310 is connected to an optical line terminal OLT 320, and the optical line terminal OLT 320 is connected to an optical network unit ONU 330.

[0077] Among them, the ONU 330 includes: an ONU management and control interface (ONU Management and Control Interface, OMCI) module 331, a network connection module 332, and multiple service sub-modules (such as, a first service sub-module 3331, a second service sub-module 3332,..., a kth service sub-module 333k, etc., where k is an integer greater than or equal to 1).

[0078] The BRAS 310 is used to allocate corresponding Internet Protocol (IP) addresses to Wide Area Network (WAN) connections corresponding to multiple main operators, so as to distinguish different main operators using different IP addresses.

[0079] The OLT 320 is used to configure the VLAN channel of the WAN connection to which the ONU 330 belongs through OMCI messages.

[0080] Among them, the OMCI message can be a configuration message, and the configuration message carries the target virtual local area network identifier of the target main operator corresponding to the OLT 320, and / or the network address identifier of the network side device.

[0081] In some embodiments, the BRAS 310 may use the value of DHCP option 43 (or, the value of DHCP option 15, or, the value of DHCP option 60, or, the value corresponding to the custom field in DHCP, or, the value corresponding to the custom field in PPOE, etc.) to represent the network address identifier of the network side device, so as to distinguish the identifier of the target sub-operator under the target main operator.

[0082] The OMCI module 331 is used to receive and parse the configuration message sent by the OLT 320 to obtain the target virtual local area network channel identifier configured by the OLT 320; and send the target virtual local area network channel identifier to the network connection module 332, so that the network connection module 332 can select the service sub-module corresponding to the target virtual local area network channel identifier from multiple service sub-modules according to the target virtual local area network channel identifier for service data processing.

[0083] The network connection module 332 is used to select a target service sub-module (such as the second service sub-module 3332) from multiple service sub-modules according to the received target virtual local area network channel identifier and / or the network address identifier of the network side device, and specify the target service sub-module to execute the target service of the target sub-operator under the target main operator.

[0084] The target service sub-module in the ONU 330 processes the service data in the corresponding target communication subnet (that is, the communication subnet corresponding to the target sub-operator) based on its corresponding target virtual local area network channel identifier.

[0085] In some embodiments, when the target service sub-module is selected as the second service sub-module 3332, based on the identifier of the target sub-operator corresponding to the second service sub-module 3332, on the basis of the common module in the basic version, a target branch module corresponding to the identifier of the target sub-operator is loaded to obtain a version for processing the service data of the target sub-operator, so that each module in the ONU 330 can, based on the service processing logic of this version, cooperate with the second service sub-module 3332 to execute the corresponding processing of the service data.

[0086] By storing the basic version in an ONU in the form of a common module and multiple alternative branch modules, compared with the prior art of storing multiple different software codes and versions on the terminal side, it is possible to save the storage space of the ONU; moreover, it can achieve high sharing of software, reduce the workload of software development and maintenance, and improve the scalability and flexibility of the terminal.

[0087] In some embodiments, each sub-operator is an operator that leases the basic network resources provided by the main operator, so that each sub-operator can perform corresponding communication service processing based on the basic network resources provided by the main operator. For example, a certain sub-operator sets different communication packages to meet the service usage requirements of different terminal users.

[0088] In some embodiments, the main operator is an operator that can provide comprehensive network services (such as, including broadband services, mobile network access services, etc.) for each sub-operator.

[0089] In some embodiments, the number of service sub-modules in the ONU 330 is 4, corresponding to supporting the service processing of 4 different sub-operators (such as, sub-operator A, sub-operator B, sub-operator C, sub-operator D).

[0090] Among them, in the process of network planning, the BRAS 310 will set that sub-operator A corresponds to use the preset virtual local area network (VLAN) channel identifier of 100, sub-operator B corresponds to use the preset VLAN channel identifier of 200, sub-operators C and D correspond to use the preset VLAN channel identifier of 300, the network address of the OLT corresponding to sub-operator C is C, and the network address of the OLT corresponding to sub-operator D is D.

[0091] In some embodiments, the preset VLAN channel is the communication channel corresponding to each virtual local area network (VLAN) included in the wide area network (WAN).

[0092] The network addresses of different OLTs are characterized by the value of DHCP option 43 (or the value of DHCP option 15, or the value of DHCP option 60, or the value corresponding to the custom field in DHCP, or the value corresponding to the custom field in PPOE, etc.) carried in the configuration message.

[0093] Figure 4 It is a schematic flowchart of another communication method provided by an embodiment of the present disclosure. As Figure 4 shown, the communication method includes but is not limited to the following steps.

[0094] Step S401, when the ONU 330 requests to access the OLT 320, the OLT 320 configures a corresponding network channel for the ONU 330 according to the attribute information of the ONU 330.

[0095] Among them, the attribute information of the ONU 330 includes the type information of the ONU, the type information of the sub - operators supported by the ONU, etc. When the OLT 320 configures the network channel for the ONU 330, each configuration only corresponds to opening the service channel corresponding to one communication subnet.

[0096] It should be noted that when the ONU 330 is powered on and initialized, it needs to load the common module in the basic version and the default branch module with default configuration to realize the software support for the ONU 330.

[0097] Among them, the default branch module is a module used to support the ONU 330 to communicate in its default communication subnet.

[0098] Step S402, the ONU 330 responds to the configuration message sent by the OLT 320, parses the configuration message, and obtains the service identifier carried in the configuration message.

[0099] Among them, the service identifier characterizes which alternative communication subnet the ONU 330 is currently in, so as to determine which alternative branch module in the basic version the ONU 330 specifically uses to support the ONU 330 to communicate in its current communication subnet.

[0100] In some embodiments, the service identifier includes the first - type target virtual local area network channel identifier, and each first - type target virtual local area network channel identifier corresponds to an alternative communication subnet.

[0101] In some embodiments, the service identifier includes a second type of target virtual local area network (VLAN) channel identifier and device parameters of an alternative communication subnet; wherein, each second type of target VLAN channel identifier corresponds to at least two alternative communication subnets, and a combination of each second type of target VLAN channel identifier and device parameters of each alternative communication subnet corresponds to an alternative communication subnet.

[0102] In some embodiments, the OMCI module 331 in the ONU 330 is configured to receive a configuration message sent by the OLT 320, parse the configuration message to obtain the service identifier carried in the configuration message, and then send the service identifier to the network connection module 332, so that the network connection module 332 selects a corresponding service sub-module according to the service identifier to process corresponding service data.

[0103] Wherein, each service sub-module in the ONU 330 corresponds to an alternative branch module in the base version.

[0104] Step S403, the ONU 330 determines whether the target VLAN channel identifier in the service identifier is 100.

[0105] If it is determined that the target VLAN channel identifier in the service identifier is 100, step S404 is executed; if it is determined that the target VLAN channel identifier in the service identifier is not 100, step S405 is executed.

[0106] Step S404, the ONU 330 determines that the current communication subnet is the target communication subnet corresponding to the VLAN channel identifier of 100, and selects a target branch module corresponding to the target communication subnet from multiple alternative branch modules (such as, Figure 3 multiple service sub-modules in) in the base version; unloads the default branch module, and loads the target branch module to obtain a version corresponding to the target branch module.

[0107] In some embodiments, the default branch module may also be a historical branch module, which is used to represent the branch module used by the ONU 330 before obtaining the configuration message; the historical branch module is used to support the ONU 330 to communicate in the communication subnet corresponding to the historical branch module.

[0108] Step S405, the ONU 330 determines whether the target VLAN channel identifier in the service identifier is 200.

[0109] If it is determined that the target VLAN channel identifier in the service identifier is 200, step S406 is executed; if it is determined that the target VLAN channel identifier in the service identifier is not 200, step S407 is executed.

[0110] Step S406: The ONU 330 determines that the current communication subnet is the target communication subnet corresponding to the virtual local area network (VLAN) channel identifier 200, and selects the target branch module corresponding to the target communication subnet from multiple alternative branch modules in the base version (such as, Figure 3 multiple service sub-modules therein); unloads the default branch module and loads the target branch module to obtain the version corresponding to the target branch module.

[0111] Step S407: The ONU 330 determines whether the target VLAN channel identifier in the service identifier is 300.

[0112] If it is determined that the target VLAN channel identifier in the service identifier is 300, step S408 is executed; if it is determined that the target VLAN channel identifier in the service identifier is not 300, the process ends.

[0113] Step S408: The ONU 330 determines whether the network address of the OLT in the service identifier is C.

[0114] If it is determined that the network address of the OLT in the service identifier is C, step S409 is executed; if it is determined that the network address of the OLT in the service identifier is not C, step S410 is executed.

[0115] Step S409: The ONU 330 determines that the current communication subnet is the target communication subnet, and the service identifier corresponding to the target communication subnet includes a VLAN channel identifier of 300 and an OLT network address of C; selects the target branch module corresponding to the target communication subnet from multiple alternative branch modules in the base version (such as, Figure 3 multiple service sub-modules therein); unloads the default branch module and loads the target branch module to obtain the version corresponding to the target branch module.

[0116] Step S410: The ONU 330 determines whether the network address of the OLT in the service identifier is D.

[0117] If it is determined that the network address of the OLT in the service identifier is D, step S411 is executed; if it is determined that the network address of the OLT in the service identifier is not D, the process ends.

[0118] Step S411: The ONU 330 determines that the current communication subnet is the target communication subnet, and the service identifier corresponding to the target communication subnet includes a VLAN channel identifier of 300 and an OLT network address of D; selects the target branch module corresponding to the target communication subnet from multiple alternative branch modules in the base version (such as, Figure 3 multiple service sub-modules therein); unloads the default branch module and loads the target branch module to obtain the version corresponding to the target branch module.

[0119] Step S412, the ONU 330 runs based on the version corresponding to the target branch module.

[0120] In this embodiment, by storing the base version in the terminal in the form of a common module and multiple alternative branch modules, compared with the prior art of storing multiple different software on the terminal side, the terminal in this embodiment does not need to store the software corresponding to multiple communication subnets separately, but only distinguishes different communication subnets in the form of alternative branch modules, thereby saving the storage space of the terminal, realizing the highly shared code in the software, and greatly reducing the development workload. Further, when it is necessary to maintain or update the base version according to actual usage requirements, only the respective alternative branch modules need to be selected, and no operation needs to be performed on the common module, reducing the complexity and risk of maintenance.

[0121] Moreover, when a new communication subnet needs to be supported by the terminal, the terminal only needs to add the backup branch module corresponding to the newly added communication subnet (for example, implemented by adding based on a configuration file, etc.), thereby enhancing the compatibility and scalability of the terminal.

[0122] In a third aspect, the embodiments of the present disclosure provide a terminal, a computer-readable medium, and a computer program product.

[0123] Figure 5 It is a block diagram of the composition of a terminal provided by the embodiments of the present disclosure.

[0124] As Figure 5 shown, the terminal includes: at least one processor 501, at least one memory 502, and one or more I / O interfaces 503. Among them, the processor 501, the memory 502, and the I / O interface 503 are interconnected through a bus 504. The memory 502 stores one or more computer programs, and the one or more computer programs are executed by at least one processor 501 so that at least one processor 501 can implement any one of the communication methods described in the above embodiments.

[0125] Each module in the above terminal can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or independent of it, or stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above respective modules.

[0126] The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, wherein the computer program implements any one of the communication methods described in the above embodiments when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.

[0127] An embodiment of the present disclosure also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of a terminal, the processor in the terminal executes the above communication method.

[0128] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and appropriate combinations thereof. In the hardware implementation, the division of the functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be executed by several physical components in cooperation.

[0129] Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable storage medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium typically includes computer-readable program instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.

[0130] The computer-readable program instructions described herein can be downloaded to various computing / processing devices from a computer-readable storage medium or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.

[0131] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state-setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer-readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field-programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the present disclosure.

[0132] The computer program product described herein may be implemented specifically by hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is specifically embodied as a computer storage medium. In another alternative embodiment, the computer program product is specifically embodied as a software product, such as a Software Development Kit (SDK), etc.

[0133] Aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and the combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0134] These computer-readable program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, when executed by the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions may also be stored in a computer-readable storage medium that causes a computer, a programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises a manufacture including instructions which implement various aspects of the functions / acts specified in one or more boxes of the flowchart and / or block diagram.

[0135] The computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices, such that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other devices to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other devices implement the functions / acts specified in one or more boxes of the flowchart and / or block diagram.

[0136] The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, a segment of code, or a portion of an instruction, which comprises one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending upon the functionality involved in each of the blocks. It should also be noted that each block of the block diagrams and / or flowchart, and combinations of blocks in the block diagrams and / or flowchart, may be implemented by special-purpose hardware-based systems that perform the specified functions or acts, or combinations of special-purpose hardware and computer instructions.

[0137] Example embodiments have been disclosed herein, and while specific terms are employed, they are used in a general descriptive sense only and are not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise explicitly stated, the features, characteristics, and / or elements described in connection with a particular embodiment may be used singly or in combination with those described in connection with other embodiments. Accordingly, it will be understood by those skilled in the art that various forms and details may be changed without departing from the scope of the present disclosure.

Claims

1. A communication method, applied to a terminal, wherein the terminal stores a basic version, wherein the basic version includes a common module and a plurality of candidate branch modules, each of the candidate branch modules corresponding to a communication subnet; the method comprises: Determine the current communication subnet as the target communication subnet; Selecting a target branch module corresponding to the target communication subnet from the plurality of candidate branch modules; Load the target branch module.

2. The method according to claim 1, wherein: Before determining the current communication subnet as the target communication subnet, the method further includes: The common module is loaded.

3. The method according to claim 1, wherein: The step of determining the current communication subnet as the target communication subnet includes: In response to the received configuration message, obtaining a service identifier carried in the configuration message; According to the service identifier, the current communication subnet is determined to be the target communication subnet.

4. The method according to claim 3, wherein: The configuration message includes an idle field defined by a preset communication protocol, and the service identifier is stored in the idle field.

5. The method according to claim 3 or 4, wherein: The step of determining, according to the service identifier, that the current communication subnet is the target communication subnet comprises: In response to the service identifier including a first-type target virtual local area network channel identifier, determining that a current communication subnet corresponding to the first-type target virtual local area network channel identifier is the target communication subnet; Each of the first-type target virtual local area network channel identifiers corresponds to an alternative communication subnet.

6. The method according to claim 3 or 4, wherein: The step of determining, according to the service identifier, that the current communication subnet is the target communication subnet comprises: In response to the service identifier including a second type of target virtual local area network channel identifier and equipment parameters of the candidate communication subnet, determining the target communication subnet according to the second type of target virtual local area network channel identifier and the equipment parameters of the candidate communication subnet; Each of the second-type target virtual local area network channel identifiers corresponds to at least two of the candidate communication subnets, and a combination of each of the second-type target virtual local area network channel identifiers and a device parameter of each of the candidate communication subnets corresponds to one of the candidate communication subnets.

7. The method according to claim 6, wherein: The device parameters of the candidate communication subnet include at least one of the following: a network address identifier of a network-side device, type information of the terminal, and mask information of the communication subnet where the terminal is located.

8. The method according to claim 1, wherein: Each of the candidate branch modules includes candidate service parameters and / or candidate service processing logic.

9. The method according to claim 1, wherein: Before loading the target branch module, the method further includes: Uninstall the historical branch module; the historical branch module is the branch module used at the last moment before entering the current communication subnet.

10. A terminal comprising a memory and a processor; the memory stores a computer program executable by the processor, and the computer program, when executed by the processor, implements the communication method according to any one of claims 1 to 9.

11. A computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the communication method according to any one of claims 1 to 9.

12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the communication method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Communication processing method and device, terminal equipment and computer readable storage medium

    CN114585002A

  • Application execution method and device, computer system and readable storage medium

    CN119621164A

  • Device emulation for testing data network configurations

    US7555421B1

  • Methods, aggregation devices, and computer program products for distinguishing between sub-networks coupled to aggregation device ports by using an independent sub-network identifier domain space for each port

    US7912059B1

  • Cross-regional infrastructure configurations for disaster recovery

    WO2024258573A1