CN116094869B - Corresponding relation generation method and device, server and storage medium - Google Patents

Corresponding relation generation method and device, server and storage medium Download PDF

Info

Publication number
CN116094869B
CN116094869B CN202310011647.3A CN202310011647A CN116094869B CN 116094869 B CN116094869 B CN 116094869B CN 202310011647 A CN202310011647 A CN 202310011647A CN 116094869 B CN116094869 B CN 116094869B
Authority
CN
China
Prior art keywords
user
vlan
correspondence
identified
corresponding relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310011647.3A
Other languages
Chinese (zh)
Other versions
CN116094869A (en
Inventor
李夏娜
周远阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310011647.3A priority Critical patent/CN116094869B/en
Publication of CN116094869A publication Critical patent/CN116094869A/en
Application granted granted Critical
Publication of CN116094869B publication Critical patent/CN116094869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Abstract

The application provides a corresponding relation generation method, a corresponding relation generation device, a corresponding relation generation server and a corresponding relation generation storage medium, relates to the technical field of communication, and solves the technical problem that the occupation condition checked and input by maintenance personnel in the related technology may not be consistent with the actual occupation condition of a beam splitter, and the accuracy of the occupation of number line resources may not be ensured in the process of on-site checking by the maintenance personnel. The method comprises the following steps: and acquiring a first corresponding relation and a second corresponding relation, wherein the first corresponding relation comprises a relation between a plurality of VLANs and a plurality of users, and the second corresponding relation comprises a corresponding relation between a plurality of VLANs and a plurality of optical splitters. And generating a target corresponding relation based on the first corresponding relation and the second corresponding relation, wherein the target corresponding relation comprises the corresponding relation between the plurality of users and the plurality of optical splitters.

Description

Corresponding relation generation method and device, server and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a server, and a storage medium for generating a correspondence.
Background
Currently, the service personnel can check the occupancy of the beam splitter on site and input the occupancy into the server.
However, in the above method, the occupation condition checked and input by the maintenance personnel may not be consistent with the actual occupation condition of the optical splitter, and the accuracy of the occupation of the number line resources cannot be ensured.
Disclosure of Invention
The application provides a corresponding relation generation method, a corresponding relation generation device, a server and a storage medium, which solve the technical problem that the accuracy of the occupation of number line resources may not be ensured in the process of checking and inputting the occupation condition of a beam splitter by a maintenance personnel in the related technology.
In a first aspect, the present application provides a correspondence generating method, including: acquiring a first corresponding relation and a second corresponding relation, wherein the first corresponding relation comprises corresponding relations between a plurality of virtual local area networks (virtual local area network, VLANs) and a plurality of users, and the second corresponding relation comprises corresponding relations between a plurality of VLANs and a plurality of optical splitters; and generating a target corresponding relation based on the first corresponding relation and the second corresponding relation, wherein the target corresponding relation comprises the corresponding relation between the plurality of users and the plurality of optical splitters.
Optionally, determining a first optical splitter corresponding to the first VLAN based on the second correspondence; acquiring identifiers of at least two VLANs corresponding to the first optical splitter; and allocating the identifier of a second VLAN to the first user or the second user, wherein the second VLAN is a VLAN except the first VLAN in the at least two VLANs.
Optionally, if the VLAN corresponding to the user to be identified is not included in the first correspondence, acquiring an internet protocol (internet protocol address, IP) address of an optical line terminal (optical line terminal, OLT) corresponding to the user to be identified; determining a VLAN corresponding to the IP address of the OLT as a VLAN corresponding to the user to be identified; and adding the corresponding relation between the user to be identified and the VLAN corresponding to the user to be identified into the first corresponding relation.
Optionally determining a passive optical network (passive optical network, PON) port corresponding to a VLAN to be identified, where the VLAN to be identified is a VLAN corresponding to the user to be identified; and determining the optical splitter corresponding to the PON port as the optical splitter corresponding to the user to be identified.
Optionally, in the case that the second optical splitter is a first-stage optical splitter, determining whether a next-hop device of the second optical splitter is a second-stage optical splitter; determining the second-stage beam splitter as a beam splitter corresponding to the third user in the case that the next-hop device of the second beam splitter is the second-stage beam splitter; and adding the corresponding relation between the third user and the secondary beam splitter into the target corresponding relation.
In a second aspect, the present application provides a correspondence generating apparatus, including: the device comprises an acquisition module, a generation module, a determination module, a processing module and an addition module; the acquisition module is used for acquiring a first corresponding relation and a second corresponding relation, wherein the first corresponding relation comprises corresponding relations between a plurality of Virtual Local Area Network (VLAN) and a plurality of users, and the second corresponding relation comprises corresponding relations between a plurality of VLAN and a plurality of optical splitters; the generating module is configured to generate a target corresponding relationship based on the first corresponding relationship and the second corresponding relationship, where the target corresponding relationship includes a corresponding relationship between the plurality of users and the plurality of optical splitters.
Optionally, the user corresponding to the first VLAN includes a first user and a second user, the first VLAN is one of the plurality of VLANs, and the correspondence generating device further includes a determining module and a processing module; the determining module is configured to determine, based on the second correspondence, a first optical splitter corresponding to the first VLAN; the processing module is configured to allocate an identifier of a second VLAN to the first user or the second user, where the second VLAN is a VLAN other than the first VLAN of the at least two VLANs.
Optionally, the obtaining module is further configured to obtain an internet protocol IP address of an optical line terminal OLT corresponding to the user to be identified when the VLAN corresponding to the user to be identified is not included in the first correspondence; the determining module is used for determining the VLAN corresponding to the IP address of the OLT as the VLAN corresponding to the user to be identified; the adding module is configured to add a correspondence between the user to be identified and a VLAN corresponding to the user to be identified to the first correspondence.
Optionally, the determining module is further configured to determine a PON port of the passive optical network corresponding to a VLAN to be identified, where the VLAN to be identified is a VLAN corresponding to the user to be identified; the determining module is further configured to determine the optical splitter corresponding to the PON port as the optical splitter corresponding to the user to be identified.
Optionally, the target correspondence includes a correspondence between a third user and a second optical splitter, where the third user is one of the plurality of users, and the second optical splitter is one of the plurality of optical splitters; the determining module is further configured to determine, if the second optical splitter is a first-stage optical splitter, whether a next-hop device of the second optical splitter is a second-stage optical splitter; the determining module is further configured to determine, when the next-hop device of the second optical splitter is the second optical splitter, the second optical splitter as an optical splitter corresponding to the third user; the determining module is further configured to add a correspondence between the third user and the second-stage beam splitter to the target correspondence.
In a third aspect, the present application provides a server comprising: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the above-described optional correspondence generation methods of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having instructions stored thereon that, when executed by a server, enable the server to perform any one of the above-described optional correspondence generation methods of the first aspect.
The corresponding relation generating method, device, server and storage medium provided by the application can obtain a first corresponding relation and a second corresponding relation, wherein the first corresponding relation comprises the corresponding relation between a plurality of VLANs and a plurality of users, and the second corresponding relation comprises the relation between a plurality of VLANs and a plurality of optical splitters; and then the server generates a target corresponding relation based on the first corresponding relation and the second corresponding relation, wherein the target corresponding relation comprises the corresponding relation between the plurality of users and the plurality of optical splitters. In the method, the server can smartly correspond a plurality of users to the optical splitters occupied (or used) by the users based on two different corresponding relations, each optical splitter in the plurality of optical splitters can be accurately represented to be occupied by the users, manual checking and input are not needed, the accuracy of number line resource occupation can be guaranteed, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flow chart of a correspondence generating method provided in an embodiment of the present application;
fig. 2 is a flow chart of another correspondence generating method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a VLAN allocation method according to an embodiment of the present application;
fig. 4 is a flow chart of another correspondence generating method provided in the embodiment of the present application;
fig. 5 is a flow chart of another correspondence generating method according to an embodiment of the present application;
fig. 6 is a flow chart of another correspondence generating method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a correspondence generating device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another correspondence relation generating device according to an embodiment of the present application.
Detailed Description
The following describes in detail a correspondence relation generating method, a device, a server and a storage medium provided in the embodiments of the present application with reference to the accompanying drawings.
The terms "first" and "second" and the like in the description and the drawings of the present application are used for distinguishing between different objects and not for describing a particular order of objects, for example, a first correspondence and a second correspondence and the like are used for distinguishing between different correspondences and not for describing a particular order of correspondences.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The term "and/or" as used herein includes the use of either or both of these methods.
In the description of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more.
Based on the description in the background art, the process of checking and inputting the occupation condition of the beam splitter by the maintainer in the related art may not guarantee the accuracy of the occupation of the number line resources. Based on this, the embodiment of the application provides a corresponding relation generating method, a corresponding relation generating device, a corresponding relation generating server and a corresponding relation generating storage medium server, which can subtly correspond a plurality of users to optical splitters occupied (or used) by the users based on two different corresponding relations, can accurately represent that each optical splitter in the plurality of optical splitters is occupied by the users, does not need to rely on manual checking and input, can ensure the accuracy of number line resource occupation, and improves user experience.
As shown in fig. 1, the correspondence generating method provided in the embodiment of the present application may include S101-S102.
S101, the server acquires the first corresponding relation and the second corresponding relation.
The first correspondence includes correspondence between a plurality of VLANs and a plurality of users, and the second correspondence includes correspondence between a plurality of VLANs and a plurality of splitters.
Alternatively, the server may obtain the first correspondence relationship from a certain billing management system (or billing system). The server may further obtain the second correspondence from a number line resource system (or a number line system).
The above-described billing management system may be, for example, a sub-trusted system. The server may obtain the identifiers of the plurality of VLANs, the identifiers of the plurality of users, the names of the plurality of users, and the like from the sub-trusted system.
S102, the server generates a target corresponding relation based on the first corresponding relation and the second corresponding relation.
The target correspondence includes correspondence between the plurality of users and the plurality of splitters.
It will be appreciated that the target correspondence is used to characterize the occupancy (or usage) of the plurality of beamsplitters. Specifically, for a certain optical splitter of the plurality of optical splitters, if the optical splitter has a correspondence relationship with at least one user of the plurality of users, it is indicated that the at least one user occupies (or uses) the optical splitter.
In one case, the first correspondence may include identifiers of the plurality of VLANs and identifiers of users to which the identifiers of the plurality of VLANs respectively correspond. The second correspondence may include identifiers of the plurality of VLANs and identifiers of the optical splitters corresponding to the identifiers of the plurality of VLANs. At this time, the target correspondence generated by the server based on the first correspondence and the second correspondence includes the identifiers of the plurality of users and the identifiers of the optical splitters to which the identifiers of the plurality of users respectively correspond.
In another case, the first correspondence may include names of the plurality of VLANs and names of users to which the names of the plurality of VLANs respectively correspond. The second correspondence may include names of the plurality of VLANs and identifiers of the optical splitters corresponding to the names of the plurality of VLANs. At this time, the target correspondence generated by the server based on the first correspondence and the second correspondence includes names of the plurality of users and identifiers of the optical splitters to which the names of the plurality of users respectively correspond.
In one implementation manner of the embodiment of the present application, the server may obtain, from the centralized service support system (central business support system, CBSS), the identities of the plurality of users, the names of the plurality of users, the addresses (including the installed address and the contact address) of the plurality of users, the product numbers of the plurality of users (used to characterize whether the plurality of users are accounts), the product types used by the plurality of users, the broadband rates corresponding to the plurality of users, and so on. And the server may backfill the content acquired from the CBSS into the server, specifically, may be to add correspondence between the plurality of users and addresses of the plurality of users to the target correspondence.
In another implementation of the embodiments of the present application, the Serial Number (SN) of the cat used by the user may be incomplete. At this time, the server may obtain a related work order from the service development system (or installation system), where the work order includes an SN (specifically, a complete SN) corresponding to the user. Then the server may backfill the SN corresponding to the user into the server, specifically, may add the correspondence between the user and the SN to the target correspondence.
The technical scheme provided by the embodiment at least has the following beneficial effects: from S101 to S102, it is known that: the server may obtain a first correspondence and a second correspondence, where the first correspondence includes a correspondence between a plurality of VLANs and a plurality of users, and the second correspondence includes a relationship between a plurality of VLANs and a plurality of splitters; and then the server generates a target corresponding relation based on the first corresponding relation and the second corresponding relation, wherein the target corresponding relation comprises the corresponding relation between the plurality of users and the plurality of optical splitters. In the embodiment of the application, the server can smartly correspond the plurality of users to the optical splitters occupied (or used) by the plurality of users based on two different corresponding relations, each optical splitter in the plurality of optical splitters can be accurately represented to be occupied by the user, manual checking and input are not needed, the accuracy of the number line resource occupation can be ensured, and the user experience is improved.
In one implementation manner of the embodiment of the present application, the user corresponding to the first VLAN includes a first user and a second user, where the first VLAN is one of the multiple VLANs. Referring to fig. 1, as shown in fig. 2, the correspondence generating method provided in the embodiment of the present application further includes S103-105.
S103, the server determines a first optical splitter corresponding to the first VLAN based on the second corresponding relation.
In connection with the above description of the embodiments, it should be understood that the second correspondence includes correspondence between a plurality of VLANs and a plurality of splitters. The server may determine, based on the second correspondence and the first VLAN, an optical splitter corresponding to the first VLAN, that is, the first optical splitter.
S104, the server acquires the identifiers of at least two VLANs corresponding to the first optical splitter.
In an alternative implementation, one splitter corresponds to one VLAN segment, and the identifiers of the at least two VLANs may also be understood as identifiers included in the VLAN segment corresponding to the first splitter.
S105, the server distributes the identification of the second VLAN for the first user or the second user.
Wherein the second VLAN is a VLAN other than the first VLAN of the at least two VLANs.
It should be understood that the second VLAN may also be understood as an unused (or occupied) VLAN of the at least two VLANs.
It can be understood that the users corresponding to the first VLAN include a first user and a second user, which means that more than one user corresponding to the first VLAN, specifically, the first VLAN is used by the two users (i.e., the first user and the second user) at the same time, and since one VLAN can only have a binding relationship with one user, the first VLAN cannot be bound to the two users at the same time. And one splitter (e.g., the first splitter) may correspond to at least two VLANs, at which time the server may assign an identification of an unused (or occupied) one of the at least two VLANs to either of the two users. The binding relation between one VLAN and one user can be ensured, and the accuracy of the number line resource is improved while the requirement of effectively distributing VLAN identification to the user is met.
Alternatively, VLANs in embodiments of the present application may include a customer VLAN (abbreviated as CVLAN) and a service VLAN (abbreviated as SVLAN). The CVLAN is the VLAN of the user side, and the SVLAN is the VLAN of the OLT equipment. It will be appreciated that when a data stream is sent from the subscriber to the OLT apparatus, the CVLAN in the data stream is converted into the SVLAN.
The following illustrates, in one example, a procedure provided by an embodiment of the present application for reassigning the identity of a VLAN for a user.
For example, as shown in fig. 3, it is assumed that the user a is the first user, the user B is the second user, the SVLAN corresponding to the user a is 1001, the CVLAN corresponding to the user a is 3020, the SVLAN corresponding to the user B is 1001, and the CVLAN corresponding to the user a is 3020.
At this time, the server can identify a splitter (assumed to be splitter C) corresponding to the SVLAN (i.e., 1001) or the CVLAN (i.e., 3020). Further assume that the CVLAN segment corresponding to the splitter C is 3001-3065, where the server may allocate a VLAN other than 3020 to the user B from the CVLAN segment, for example, the server may allocate 3065 to the user B as the identifier of the VLAN corresponding to the user B.
Referring to fig. 1, as shown in fig. 4, the correspondence generating method in the embodiment of the present application may further include S106 to S108.
And S106, under the condition that the VLAN corresponding to the user to be identified is not included in the first corresponding relation, the server acquires the IP address of the OLT corresponding to the user to be identified.
It should be understood that, in the case where the VLAN corresponding to the user to be identified is not included in the first correspondence relationship, it is explained that the user to be identified does not belong to the plurality of users, and the server cannot determine the VLAN corresponding to the user to be identified. At this time, the server may obtain the IP address of the OLT corresponding to the user to be identified.
Specifically, the identifier of the subscriber to be identified has a correspondence with the IP address of a certain broadband access server (broad remote access server, BRAS), and the IP address of the BRAS has a correspondence with the IP address of a certain OLT. The electronic device may determine an IP address of a BRAS corresponding to the user to be identified based on the identification of the user to be identified, and determine an IP address of an OLT corresponding to the IP address of the BRAS based on the IP address of the BRAS, that is, determine and obtain the IP address of the OLT corresponding to the user to be identified.
And S107, the server determines the VLAN corresponding to the IP address of the OLT as the VLAN corresponding to the user to be identified.
It is understood that the IP address of an OLT may correspond to a VLAN. The server can determine the obtained VLAN corresponding to the IP address of the OLT corresponding to the user to be identified as the VLAN corresponding to the user to be identified, namely the VLAN corresponding to the user to be identified can be accurately and effectively determined.
S108, the server adds the corresponding relation between the user to be identified and the VLAN corresponding to the user to be identified into the first corresponding relation.
It should be understood that after determining the VLAN corresponding to the user to be identified, the server may add the correspondence between the user to be identified and the VLAN corresponding to the user to be identified to the first correspondence, and further the server may determine the beam splitter corresponding to the user to be identified based on the updated first correspondence and the second correspondence.
In this embodiment of the present application, the server adding the correspondence between the user to be identified and the VLAN corresponding to the user to be identified to the first correspondence includes the server adding the identifier (and/or name) of the user to be identified and the identifier (and/or name) of the VLAN corresponding to the user to be identified to the first correspondence.
Referring to fig. 4, as shown in fig. 5, the correspondence generating method in the embodiment of the present application may further include: S109-S110.
S109, the server determines a PON port corresponding to the VLAN to be identified.
The VLAN to be identified is the VLAN corresponding to the user to be identified.
S110, the server determines the optical splitter corresponding to the PON port as the optical splitter corresponding to the user to be identified.
It should be understood that one PON port is an interface on one of a plurality of boards included in one OLT, and one PON port may correspond to one optical splitter.
In the embodiment of the application, the server determines the optical splitter corresponding to the PON port by determining the PON port corresponding to the VLAN to be identified, i.e., may determine the optical splitter corresponding to the VLAN to be identified. And because the VLAN to be identified has a corresponding relation with the user to be identified, the server can determine the beam splitter corresponding to the VLAN to be identified as the beam splitter corresponding to the user to be identified. The occupation (or use) condition of each beam splitter, specifically, which user occupies each beam splitter, can be accurately and effectively determined.
In an implementation manner of the embodiment of the present application, the target correspondence includes a correspondence between a third user and a second optical splitter, where the third user is one of the plurality of users, and the second optical splitter is one of the plurality of optical splitters. Referring to fig. 1, as shown in fig. 6, the correspondence generating method provided in the embodiment of the present application further includes S111-S113.
And S111, in the case that the second optical splitter is a first-stage optical splitter, the server determines whether the next-hop equipment of the second optical splitter is the second-stage optical splitter.
It will be appreciated that where the second splitter is a primary splitter, the presence of the next-hop device for the second splitter is illustrated, and the server may determine whether the next-hop device for the second splitter is a secondary splitter.
And S112, when the next-hop equipment of the second beam splitter is a second beam splitter, the server determines the second beam splitter as the beam splitter corresponding to the third user.
It should be understood that, in the case that the next-hop device of the second optical splitter is the second optical splitter, it is illustrated that the second optical splitter is connected to the terminal of the third user, and the server may determine that the second optical splitter is the optical splitter corresponding to the third user, that is, determine that the second optical splitter has a corresponding relationship with the third user.
In this embodiment of the present application, the first-stage beam splitter (or the centralized beam splitter) is a beam splitter (or a central device) centralized in a certain position, which may be understood as a device between a machine room and an intermediate point. A secondary beam splitter is a beam splitter that is closer to the user (or the user's terminal) and can be understood as a device between the intermediate point and the user's terminal.
In an alternative implementation, in the case that the next-hop device of the second optical splitter is not a secondary optical splitter (for example, a fiber box), the server determines that the optical splitter corresponding to the third user remains unchanged, specifically, the optical splitter corresponding to the third user remains a primary optical splitter, specifically, the second optical splitter described above.
S113, the server adds the corresponding relation between the third user and the secondary beam splitter to the target corresponding relation.
It should be understood that the server adds the correspondence between the third user and the second optical splitter to the target correspondence, that is, modifies the correspondence between the third user and the second optical splitter in the target correspondence to the correspondence between the third user and the second optical splitter, so that the correspondence between each user and the optical splitter can be accurately identified.
The embodiment of the present application may divide the functional modules of the server or the like according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
In the case of dividing the respective functional modules with the respective functions, fig. 7 shows a schematic diagram of one possible configuration of the correspondence relation generating apparatus involved in the above-described embodiment, and as shown in fig. 7, the correspondence relation generating apparatus 10 may include: an acquisition module 101, a generation module 102, a determination module 103, a processing module 104, and an addition module 105;
an obtaining module 101, configured to obtain a first correspondence and a second correspondence, where the first correspondence includes a correspondence between a plurality of virtual local area networks VLANs and a plurality of users, and the second correspondence includes a correspondence between a plurality of VLANs and a plurality of optical splitters;
the generating module 102 is configured to generate a target correspondence based on the first correspondence and the second correspondence, where the target correspondence includes correspondences between the plurality of users and the plurality of splitters.
Optionally, the user corresponding to the first VLAN includes a first user and a second user, the first VLAN is one of the multiple VLANs, and the correspondence generating apparatus further includes a determining module 103 and a processing module 104;
a determining module 103, configured to determine, based on the second correspondence, a first optical splitter corresponding to the first VLAN;
a processing module 104, configured to assign an identifier of a second VLAN to the first user or the second user, where the second VLAN is a VLAN other than the first VLAN of the at least two VLANs.
Optionally, the obtaining module 101 is further configured to obtain an internet protocol IP address of the OLT corresponding to the user to be identified, where the VLAN corresponding to the user to be identified is not included in the first correspondence;
a determining module 103, configured to determine a VLAN corresponding to the IP address of the OLT as a VLAN corresponding to the user to be identified;
and the adding module 105 is configured to add the correspondence between the user to be identified and the VLAN corresponding to the user to be identified to the first correspondence.
Optionally, the determining module 103 is further configured to determine a PON port of the passive optical network corresponding to a VLAN to be identified, where the VLAN to be identified is a VLAN corresponding to the user to be identified;
the determining module 103 is further configured to determine the optical splitter corresponding to the PON port as the optical splitter corresponding to the user to be identified.
Optionally, the target correspondence includes a correspondence between a third user and a second optical splitter, where the third user is one of the plurality of users, and the second optical splitter is one of the plurality of optical splitters;
the determining module 103 is further configured to determine, if the second optical splitter is a first-stage optical splitter, whether a next-hop device of the second optical splitter is a second-stage optical splitter;
the determining module 103 is further configured to determine, when the next-hop device of the second optical splitter is the second optical splitter, the second optical splitter as an optical splitter corresponding to the third user;
the determining module 103 is further configured to add a correspondence between the third user and the second-stage beam splitter to the target correspondence.
In the case of employing an integrated unit, fig. 8 shows a possible structural diagram of the correspondence relation generating apparatus involved in the above-described embodiment. As shown in fig. 8, the correspondence relation generating apparatus 20 may include: a processing module 201 and a communication module 202. The processing module 201 may be configured to control and manage the operation of the correspondence relation generating apparatus 20. The communication module 202 may be used to support communication of the correspondence generating apparatus 20 with other entities. Alternatively, as shown in fig. 8, the correspondence generating apparatus 20 may further include a storage module 203 for storing the program code and data of the correspondence generating apparatus 20.
Wherein the processing module 201 may be a processor or a controller. The communication module 202 may be a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 203 may be a memory.
When the processing module 201 is a processor, the communication module 202 is a transceiver, and the storage module 203 is a memory, the processor, the transceiver, and the memory may be connected through a bus. The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The buses may be divided into address buses, data buses, control buses, etc.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber terminal line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A correspondence generation method, characterized in that the method comprises:
acquiring a first corresponding relation and a second corresponding relation, wherein the first corresponding relation comprises corresponding relations between a plurality of Virtual Local Area Network (VLAN) and a plurality of users, the second corresponding relation comprises corresponding relations between a plurality of VLAN and a plurality of optical splitters, the user corresponding to a first VLAN comprises a first user and a second user, and the first VLAN is one of the VLAN;
generating a target corresponding relation based on the first corresponding relation and the second corresponding relation, wherein the target corresponding relation comprises corresponding relations between the plurality of users and the plurality of optical splitters;
determining a first optical splitter corresponding to the first VLAN based on the second corresponding relation;
acquiring identifiers of at least two VLANs corresponding to the first optical splitter;
and allocating the identifier of a second VLAN to the first user or the second user, wherein the second VLAN is a VLAN except the first VLAN in the at least two VLANs.
2. The correspondence generation method according to claim 1, characterized in that the method further comprises:
under the condition that the VLAN corresponding to the user to be identified is not included in the first corresponding relation, acquiring an Internet Protocol (IP) address of an Optical Line Terminal (OLT) corresponding to the user to be identified;
determining a VLAN corresponding to the IP address of the OLT as the VLAN corresponding to the user to be identified;
and adding the corresponding relation between the user to be identified and the VLAN corresponding to the user to be identified into the first corresponding relation.
3. The correspondence generation method according to claim 2, characterized in that the method further comprises:
determining a passive optical network PON port corresponding to a VLAN to be identified, wherein the VLAN to be identified is a VLAN corresponding to the user to be identified;
and determining the optical splitter corresponding to the PON port as the optical splitter corresponding to the user to be identified.
4. The correspondence generating method according to any one of claims 1 to 3, wherein the target correspondence includes a correspondence between a third user, which is one of the plurality of users, and a second beam splitter, which is one of the plurality of beam splitters, the method further comprising:
determining whether a next-hop device of the second optical splitter is a second optical splitter or not under the condition that the second optical splitter is a first optical splitter;
determining the second-stage beam splitter as a beam splitter corresponding to the third user in the case that the next-hop device of the second beam splitter is the second-stage beam splitter;
and adding the corresponding relation between the third user and the secondary beam splitter to the target corresponding relation.
5. A correspondence relation generating apparatus, comprising: the device comprises an acquisition module, a generation module, a determination module and a processing module;
the acquiring module is configured to acquire a first correspondence and a second correspondence, where the first correspondence includes a correspondence between a plurality of virtual local area networks VLANs and a plurality of users, the second correspondence includes a correspondence between a plurality of VLANs and a plurality of splitters, a user corresponding to a first VLAN includes a first user and a second user, and the first VLAN is one of the plurality of VLANs;
the generating module is configured to generate a target corresponding relationship based on the first corresponding relationship and the second corresponding relationship, where the target corresponding relationship includes a corresponding relationship between the plurality of users and the plurality of optical splitters;
the determining module is configured to determine, based on the second correspondence, a first optical splitter corresponding to the first VLAN;
the processing module is configured to allocate an identifier of a second VLAN to the first user or the second user, where the second VLAN is a VLAN other than the first VLAN of at least two VLANs.
6. The correspondence generating apparatus according to claim 5, wherein,
the obtaining module is further configured to obtain an internet protocol IP address of an optical line terminal OLT corresponding to the user to be identified, where the VLAN corresponding to the user to be identified is not included in the first correspondence;
the determining module is further configured to determine a VLAN corresponding to the IP address of the OLT as a VLAN corresponding to the user to be identified;
the processing module is further configured to add a correspondence between the user to be identified and a VLAN corresponding to the user to be identified to the first correspondence.
7. The correspondence generating apparatus according to claim 6, wherein,
the determining module is further configured to determine a PON port of a passive optical network corresponding to a VLAN to be identified, where the VLAN to be identified is a VLAN corresponding to the user to be identified;
the determining module is further configured to determine the optical splitter corresponding to the PON port as the optical splitter corresponding to the user to be identified.
8. The correspondence generating apparatus according to any one of claims 5 to 7, wherein the target correspondence includes a correspondence between a third user, which is one of the plurality of users, and a second beam splitter, which is one of the plurality of beam splitters;
the determining module is further configured to determine, when the second optical splitter is a first-stage optical splitter, whether a next-hop device of the second optical splitter is a second-stage optical splitter;
the determining module is further configured to determine, when the next-hop device of the second optical splitter is the second optical splitter, the second optical splitter as an optical splitter corresponding to the third user;
the determining module is further configured to add a correspondence between the third user and the second-stage beam splitter to the target correspondence.
9. A server, the server comprising:
a processor;
a memory configured to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the correspondence generation method as recited in any one of claims 1-4.
10. A computer readable storage medium having instructions stored thereon, which when executed by a server, enable the server to perform the correspondence generation method as claimed in any one of claims 1-4.
CN202310011647.3A 2023-01-05 2023-01-05 Corresponding relation generation method and device, server and storage medium Active CN116094869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310011647.3A CN116094869B (en) 2023-01-05 2023-01-05 Corresponding relation generation method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310011647.3A CN116094869B (en) 2023-01-05 2023-01-05 Corresponding relation generation method and device, server and storage medium

Publications (2)

Publication Number Publication Date
CN116094869A CN116094869A (en) 2023-05-09
CN116094869B true CN116094869B (en) 2024-04-09

Family

ID=86205816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310011647.3A Active CN116094869B (en) 2023-01-05 2023-01-05 Corresponding relation generation method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN116094869B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009027538A (en) * 2007-07-20 2009-02-05 Nippon Telegr & Teleph Corp <Ntt> Optical network termination device, optical access system, and communicating service system
WO2010034255A1 (en) * 2008-09-28 2010-04-01 华为技术有限公司 Data transmission method and network node and data transmission system
WO2013172698A1 (en) * 2012-05-17 2013-11-21 Mimos Berhad A system and method for propagating vlan traffic over a wireless multi-hop network
CN206728037U (en) * 2017-05-22 2017-12-08 广东工业大学 It is a kind of can disaster tolerance conference system
CN109698758A (en) * 2017-10-20 2019-04-30 中国移动通信集团广东有限公司 A kind of network resource information check method and system
CN110460371A (en) * 2018-05-07 2019-11-15 中国电信股份有限公司 Light resource inspection method and system
CN110505100A (en) * 2019-08-30 2019-11-26 浙江岩华文化传媒有限公司 Network work order configuration method, device, electronic equipment and computer-readable medium
CN112468480A (en) * 2020-11-23 2021-03-09 中国移动通信集团黑龙江有限公司 Data association method, device, equipment and computer storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009027538A (en) * 2007-07-20 2009-02-05 Nippon Telegr & Teleph Corp <Ntt> Optical network termination device, optical access system, and communicating service system
WO2010034255A1 (en) * 2008-09-28 2010-04-01 华为技术有限公司 Data transmission method and network node and data transmission system
WO2013172698A1 (en) * 2012-05-17 2013-11-21 Mimos Berhad A system and method for propagating vlan traffic over a wireless multi-hop network
CN206728037U (en) * 2017-05-22 2017-12-08 广东工业大学 It is a kind of can disaster tolerance conference system
CN109698758A (en) * 2017-10-20 2019-04-30 中国移动通信集团广东有限公司 A kind of network resource information check method and system
CN110460371A (en) * 2018-05-07 2019-11-15 中国电信股份有限公司 Light resource inspection method and system
CN110505100A (en) * 2019-08-30 2019-11-26 浙江岩华文化传媒有限公司 Network work order configuration method, device, electronic equipment and computer-readable medium
CN112468480A (en) * 2020-11-23 2021-03-09 中国移动通信集团黑龙江有限公司 Data association method, device, equipment and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
" FTTx工程管理及挂测系统设计与实现";张坤,张琳;《电信技术》;20181025;全文 *

Also Published As

Publication number Publication date
CN116094869A (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
CN105577420A (en) Method and system for automatic generation of server network topology
DE60121296D1 (en) ASSIGNING A SERVER ADDRESS TO A TERMINAL
CN106713337B (en) Method and system for accessing super computing center and scheduling server
CN113225628B (en) Business data configuration method, device, equipment and computer storage medium
CN105376347A (en) IP address allocation method and system
CN106454829B (en) Method and device for authorizing network access
CN113194012B (en) Multi-agent management method, device, equipment and storage medium based on Internet of things
CN116094869B (en) Corresponding relation generation method and device, server and storage medium
CN103888435A (en) Service admission control method, device and system
CN116112572A (en) Service processing method, device, network equipment and storage medium
CN114124404B (en) Data processing method, device, server and storage medium
CN113904871B (en) Access method of network slice, PCF entity, terminal and communication system
CN110691012A (en) Message processing method and tester
CN107241207B (en) Equipment management method and device
CN111466134B (en) Method and arrangement for allocating communication resources in a communication network
CN109561170B (en) Address pool creating method and device, address pool management system and storage medium
CN112188319A (en) Data processing method of optical fiber distribution frame and rear-end monitoring platform
CN103392322B (en) Method for communication and components in a communications network
CN116056067B (en) Terminal identification method, device, server and storage medium
CN117527406A (en) Address allocation method and device, electronic equipment and storage medium
CN114866371B (en) Method and device for establishing IPSec tunnel, storage medium and electronic equipment
CN116647537A (en) Determination method and device of address to be allocated, electronic equipment and storage medium
CN114244695B (en) Terminal online configuration method and device of isolated network and network management system
CN113132146B (en) Service processing method and related device

Legal Events

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