CN110532457B - Method and system for acquiring network segment ID - Google Patents

Method and system for acquiring network segment ID Download PDF

Info

Publication number
CN110532457B
CN110532457B CN201910695816.3A CN201910695816A CN110532457B CN 110532457 B CN110532457 B CN 110532457B CN 201910695816 A CN201910695816 A CN 201910695816A CN 110532457 B CN110532457 B CN 110532457B
Authority
CN
China
Prior art keywords
network segment
network
array
segment
storing
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
CN201910695816.3A
Other languages
Chinese (zh)
Other versions
CN110532457A (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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN201910695816.3A priority Critical patent/CN110532457B/en
Publication of CN110532457A publication Critical patent/CN110532457A/en
Application granted granted Critical
Publication of CN110532457B publication Critical patent/CN110532457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a system for acquiring network segment IDs, which are used for detecting whether each network segment ID is used in a pre-established network segment ID array according to a preset bitmap rule, determining the network segment ID indicating that the network segment is in an unused state, extracting a network segment interval corresponding to the network segment ID in the unused state, and storing the network segment interval to an unused segments linked list. By the method, the network segment ID in the unused state is determined according to the bitmap rule, the network segment interval corresponding to the network segment ID in the unused state is extracted, and the value corresponding to the network segment interval is prompted to the user, so that the user can create a network according to the provided value corresponding to the network segment interval, and the purpose of improving network creation efficiency is achieved.

Description

Method and system for acquiring network segment ID
Technical Field
The invention relates to the technical field of cloud, in particular to a method and a system for acquiring a network segment ID.
Background
With the development of cloud technology, the Openstack cloud computing management platform is more and more widely applied to various fields. Openstack is an open-source cloud computing management platform project, which comprises components such as computing, object storage, interface management and authority management.
When a virtual local area network VLAN or a virtual expanded local area network VXLAN is created in the Openstack cloud computing management platform, the corresponding network segment ID is required to be input, namely, the VLAN ID is required to be input when a VLAN network is created, the VXLAN ID is required to be input when a VXLAN network is created, and the VLAN ID or the VXLAN ID of different VLAN networks or VXLAN networks are different.
In the prior art, an Openstack cloud computing management platform does not provide an interface for inquiring available VLAN IDs and VXLAN IDs, so that the Openstack cloud computing management platform cannot be called to inquire which VLAN IDs or VXLAN IDs are not used, only unused VLAN IDs or VXLAN IDs can be used when a network is created, and the Openstack cloud computing management platform can find available VLAN IDs or VXLAN IDs only by continuously trying to fill in VLAN IDs or VXLAN IDs according to prompt information of whether the IDs are used or not fed back by a back end, so that the efficiency of creating the network is reduced.
Disclosure of Invention
In view of this, the present invention provides a method and a system for acquiring a network segment ID, so as to achieve the purpose of improving network creation efficiency.
In order to achieve the above object, the following solutions are proposed:
the invention discloses a method for obtaining network segment ID in the first aspect, which is applied to VLAN network or VXLAN network, the method includes:
detecting a network segment ID used for indicating whether each network segment is used in a pre-established network segment ID array according to a preset bitmap rule;
determining a network segment ID indicating that a network segment is in an unused state, and extracting a network segment interval corresponding to the network segment ID in the unused state;
and storing the network segment interval to an unused segments linked list.
Preferably, the detecting, according to a preset bitmap rule, a network segment ID in a network segment ID array established in advance for indicating whether each network segment is used includes:
creating the network segment ID array;
searching array elements of the network segment ID in the network segment ID array;
if the numerical value of the array element of the network segment ID is 0, determining that the network segment ID is in an unused state;
and if the numerical value of the array element of the network segment ID is 1, determining that the network segment ID is in a used state.
Preferably, the storing the network segment interval to the unused segments linked list includes:
storing the network Segment interval into a Segment class object;
and storing the object as an element value of the unsusedsegments linked list to the unsusedsegments linked list.
Preferably, the method further comprises the following steps:
storing the network segment ID array to a database when the VLAN network or the VXLAN network is created.
Preferably, the method further comprises the following steps:
acquiring network segment IDs of external networks with non-deleted states in all VLAN networks or VXLAN networks under a center of a virtual control center;
and storing the network segment ID of the external network with the state of non-deletion to the UsedSegments linked list.
The second aspect of the present invention discloses a system for obtaining a network segment ID, which is applied to a VLAN network or a VXLAN network, and the system includes:
the indicating unit is used for detecting the network segment ID used for indicating whether each network segment is used in the pre-established network segment ID array according to the preset bitmap rule;
the extraction unit is used for determining a network segment ID indicating that a network segment is in an unused state and extracting a network segment interval corresponding to the network segment ID in the unused state;
and the first storage unit is used for storing the network segment interval to an unused segments linked list.
Preferably, the indication unit includes:
a creation module for creating the network segment ID array;
the searching module is used for searching array elements of the network segment ID in the network segment ID array;
a first determining module, configured to determine that the network segment ID is in an unused state if a value of an array element of the network segment ID is 0;
and the second determining module is used for determining that the network segment ID is in a used state if the numerical value of the array element of the network segment ID is 1.
Preferably, the first storage unit includes:
the first storage module is used for storing the network Segment interval into an object of a Segment class;
and the second storage module is used for storing the object as an element value of the unsusedsegments linked list to the unsusedsegments linked list.
Preferably, the method further comprises the following steps:
a second storage unit, configured to store the network segment ID array to a database when the VLAN network or the VXLAN network is created.
Preferably, the method further comprises the following steps:
an obtaining unit, configured to obtain a network segment ID of an external network whose state is non-deleted in all the VLAN networks or the VXLAN networks in a virtual control center;
and the third storage unit is used for storing the network segment ID of the external network with the state of non-deletion to the UsedSegments linked list.
According to the technical scheme, the network segment ID used for indicating whether each network segment is used or not in the pre-established network segment ID array is detected according to the preset bitmap rule, the network segment ID indicating that the network segment is in the unused state is determined, the network segment interval corresponding to the network segment ID in the unused state is extracted, and the network segment interval is stored to the unused segments linked list. By the method, the network segment ID in the unused state is determined according to the bitmap rule, the network segment interval corresponding to the network segment ID in the unused state is extracted, and the value corresponding to the network segment interval is prompted to the user, so that the user can create a network according to the provided value corresponding to the network segment interval, and the purpose of improving network creation efficiency is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for acquiring a network segment ID according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a process for detecting a network segment ID used for indicating whether each network segment is used in a pre-established network segment ID array according to a preset bitmap rule, according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a process of storing a network segment interval to an unused segments linked list according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system for acquiring a network segment ID according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another system for acquiring a network segment ID according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another system for acquiring a network segment ID according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As can be seen from the background art, in the prior art, an Openstack cloud computing management platform does not provide an interface for querying available VLAN IDs and VXLAN IDs, so that the Openstack cloud computing management platform cannot be invoked to query which VLAN IDs or VXLAN IDs are not used, only the unused VLAN IDs or VXLAN IDs can be used when a network is created, and the Openstack cloud computing management platform can find available VLAN IDs or VXLAN IDs only by continuously trying to fill in VLAN IDs or VXLAN IDs according to the prompt information of whether the IDs are used or not fed back by a back end, thereby reducing the efficiency of creating the network.
Therefore, the invention provides a method and a system for acquiring a network segment ID, which achieve the purpose of improving the efficiency of establishing a network.
As shown in fig. 1, a schematic flow chart of a method for acquiring a network segment ID disclosed in the embodiment of the present invention specifically includes the following steps:
step S101: and detecting the network segment ID used for indicating whether each network segment is used in a pre-established network segment ID array according to a preset bitmap rule.
In the process of implementing step S101 specifically, the numerical value of the array element of the network segment ID array established in advance according to the preset bitmap rule indicates whether each network segment is the used network segment ID.
It should be noted that the bitmap rules can be used to achieve the purpose of quickly searching and storing data in a database with a large amount of data.
The network segment ID value has a fixed range, the network segment ID value is a positive integer value within a specified range, and the range of the network segment ID value is different under different networks.
The VLAN ID is a Network segment ID under a Virtual Local Area Network (VLAN), and has a value field of [1, 4094], and the VXLAN ID is a Network segment ID under a Virtual extended Local Area Network (VXLAN), and has a value field of [1, 16777216 ].
Each network segment ID can only be used once, i.e. by one network.
A VLAN is a group of logical devices and users that are not limited by physical location and may be organized according to function, department, and application.
VXLAN is a network virtualization technology, can improve the expansion problem of large-scale cloud computing during deployment, and is an expansion of VLAN.
In the above step S101, a process of detecting a network segment ID in a pre-established network segment ID array according to a preset bitmap rule to indicate whether each network segment is used is involved, as shown in fig. 2, the method specifically includes the following steps:
step S201: creating the network segment ID array.
It should be noted that the network segment ID array corresponds to a set of network segment IDs.
Step S202: searching array elements of the network segment ID in the network segment ID array, if the numerical value of the array elements of the network segment ID is 0, executing step S203, and if the numerical value of the array elements of the network segment ID is 1, executing step S204.
In the process of implementing step S202 specifically, the use status of the network segment ID is determined by the value of the array element of the network segment ID in the network segment ID array, where the use status includes an unused status and a used status.
The array element is a basic unit constituting an array, and the array element is also a variable, and is identified by an array name and a subscript, where the subscript represents a network segment ID.
Step S203: determining that the network segment ID is in an unused state.
It should be noted that the network segment ID in an unused state can only be used to create a VLAN network or a VXLAN network.
The numerical value of the array element corresponding to the network segment ID determined to be in the unused state may be set to 0, or may be set to another numerical value, and specifically, the numerical value of the array element corresponding to the network segment ID determined to be in the unused state is set by a technician according to an actual situation.
Step S204: determining that the network segment ID is in a used state.
It should be noted that the network segment ID in the used state cannot be used to create a VLAN network or a VXLAN network.
The numerical value of the array element corresponding to the network segment ID determined to be in the used state may be set to 1, or may be set to other numerical values, and specifically, the numerical value of the array element corresponding to the network segment ID determined to be in the used state is set by a technician according to an actual situation.
Creating the network segment ID array by executing the steps S201-S204, searching array elements of the network segment IDs in the network segment ID array, determining that the network segment IDs are in an unused state when the numerical values of the array elements of the network segment IDs are 0, and determining that the network segment IDs are in a used state when the numerical values of the array elements of the network segment IDs are 1.
In one application scenario of the present invention, the network segment ID array is stored to a database when the VLAN network or the VXLAN network is created.
It should be noted that the range of the network record and the network segment ID array in the database is used to calculate the segment set of the network segment ID in the unused state, for the user to choose to use when creating the VLAN network or VXLAN network.
In the embodiment of the invention, the purpose of determining the current state of the network segment ID is realized by searching the array element of the network segment ID in the network segment ID array and determining whether the network segment ID is used or not based on the value of the array element.
Step S102: determining a network segment ID indicating that the network segment is in an unused state, and extracting a network segment interval corresponding to the network segment ID in the unused state.
In the process of implementing step S102 specifically, a network segment ID indicating that the network segment is in an unused state is determined, the network segment ID array is traversed, and a network segment interval corresponding to the network segment ID in the unused state is extracted from the network segment ID array.
Step S103: and storing the network segment interval to an unused segments linked list.
It should be noted that the unused segments linked list is used to store the network segment interval corresponding to the network segment ID in an unused state.
In the above step S103, the process of storing the network segment interval to the unused segments linked list is involved, as shown in fig. 3, the method specifically includes the following steps:
step S301: and storing the network Segment interval into an object of a Segment class.
Note that the member attribute of the Segment class includes Start and End, which respectively represent the Start Segment ID and the End Segment ID.
Step S302: and storing the object as an element value of the unsusedsegments linked list to the unsusedsegments linked list.
And storing the network Segment interval into an object of a Segment class by executing the steps S301 to S302, and storing the object into the unsusedsegments linked list as an element value of the unsusedsegments linked list.
In the embodiment of the invention, the network Segment interval is stored into the object of the Segment class, and the object is determined to be used as the element value of the unused segments linked list, so that the object is stored into the unused segments linked list as the element value of the unused segments linked list.
In an application scenario of the present invention, network segment IDs of external networks in a non-deleted state in all VLAN networks or VXLAN networks in a virtual control center are obtained, and the network segment IDs of the external networks in the non-deleted state are stored in the UsedSegments linked list.
It should be noted that one virtual control center corresponds to one openstack platform environment.
The UsedSegments linked list is used to store the network segment IDs in the used state.
Based on the above specific implementation process of acquiring the network segment ID, the following example is illustrated here:
when a VLAN network is created, a network segment ID array [1, 4094] of the VLAN network is created, array elements of network segment IDs in the network segment ID array [1, 4094] of the VLAN network are searched, when the numerical value of the array elements is 0, the network segment ID is determined to be in an unused state, a network segment interval [50, 201] corresponding to the network segment ID in the unused state is extracted, and a value is selected from the network segment interval [50, 201] corresponding to the network segment ID in the unused state to create the VLAN network.
When the VXLAN network is created, the VXLAN network is created by creating a network segment ID array [1, 16777216] of the VXLAN network, searching array elements of network segment IDs in the network segment ID array [1, 16777216] of the VXLAN network, determining that the network segment IDs are in an unused state when the numerical value of the array elements is 0, extracting network segment intervals [302, 8231] corresponding to the network segment IDs in the unused state, and selecting one value from the network segment intervals [302, 8231] corresponding to the network segment IDs in the unused state.
The embodiment of the invention discloses a method for acquiring network segment IDs, which detects the network segment IDs used for indicating whether each network segment is used in a pre-established network segment ID array according to a preset bitmap rule, determines the network segment IDs indicating that the network segments are in an unused state, extracts network segment intervals corresponding to the network segment IDs in the unused state, and stores the network segment intervals to an unused segments linked list. By the method, the network segment ID in the unused state is determined according to the bitmap rule, the network segment interval corresponding to the network segment ID in the unused state is extracted, and the value corresponding to the network segment interval is prompted to the user, so that the user can create a network according to the provided value corresponding to the network segment interval, and the purpose of improving network creation efficiency is achieved.
Based on the method for acquiring a network segment ID disclosed in the embodiment of the present invention, the embodiment of the present invention also correspondingly discloses a system for acquiring a network segment ID, and as shown in fig. 4, the system 400 for acquiring a network segment ID mainly includes:
an indicating unit 401, configured to detect, according to a preset bitmap rule, a network segment ID in a network segment ID array established in advance, where the network segment ID array is used to indicate whether each network segment is used.
An extracting unit 402, configured to determine a network segment ID indicating that a network segment is in an unused state, and extract a network segment interval corresponding to the network segment ID in the unused state.
A first storage unit 403, configured to store the network segment interval to an unused segments linked list.
Further, the indication unit 401 includes:
a creation module to create the network segment ID array.
And the searching module is used for searching array elements of the network segment ID in the network segment ID array.
A first determining module, configured to determine that the network segment ID is in an unused state if a value of an array element of the network segment ID is 0.
And the second determining module is used for determining that the network segment ID is in a used state if the numerical value of the array element of the network segment ID is 1.
Further, the first storage unit 403 includes:
and the first storage module is used for storing the network Segment interval into an object of the Segment class.
And the second storage module is used for storing the object as an element value of the unsusedsegments linked list to the unsusedsegments linked list.
As shown in fig. 5, a schematic structural diagram of another system for acquiring a network segment ID according to an embodiment of the present invention is shown, where the system further includes, on the basis of the embodiment shown in fig. 4: a second memory cell 501.
The second storage unit 501: for storing the array of network segment IDs to a database when the VLAN network or the VXLAN network is created.
As shown in fig. 6, which is a schematic structural diagram of another system for acquiring a network segment ID according to an embodiment of the present invention, the system further includes an acquiring unit 601 and a third storing unit 602 based on the embodiment shown in fig. 4.
The obtaining unit 601 is configured to obtain network segment IDs of external networks in a state of non-deletion in all the VLAN networks or the VXLAN networks in the virtual control center.
The third storing unit 602 is configured to store the network segment ID of the external network whose state is non-deletion to the UsedSegments linked list.
The specific principle and the implementation process of each unit and module in the system for acquiring a network segment ID disclosed in the embodiment of the present invention are the same as those of the method for acquiring a network segment ID disclosed in the embodiment of the present invention, and reference may be made to corresponding parts in the method for acquiring a network segment ID disclosed in the embodiment of the present invention, which are not described herein again.
The embodiment of the invention discloses a system for acquiring network segment IDs, which detects the network segment IDs used for indicating whether each network segment is used in a pre-established network segment ID array according to a preset bitmap rule, determines the network segment IDs indicating that the network segments are in an unused state, extracts network segment intervals corresponding to the network segment IDs in the unused state, and stores the network segment intervals to an unused segments linked list. Through the system, the network segment ID in the unused state is determined according to the bitmap rule, the network segment interval corresponding to the network segment ID in the unused state is extracted, and the value corresponding to the network segment interval is prompted to the user, so that the user can create a network according to the provided value corresponding to the network segment interval, and the purpose of improving network creation efficiency is achieved.
Based on the system for acquiring the network segment ID disclosed in the embodiment of the present invention, the units and modules may be implemented by a hardware device including a processor and a memory. The method specifically comprises the following steps: the units and modules are stored in a memory as program units, and the processor executes the program units stored in the memory to obtain the network segment ID.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can set one or more than one, and the network segment ID is obtained by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
Further, an embodiment of the present invention provides a processor, where the processor is configured to execute a program, where the program executes to obtain a network segment ID when running.
The equipment disclosed in the embodiment of the invention can be a server, a PC, a PAD, a mobile phone and the like.
Further, an embodiment of the present invention provides a storage medium, on which a program is stored, where the program, when executed by a processor, implements obtaining a network segment ID.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
It should be noted that, in this specification, each embodiment is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same as and similar to each other in each embodiment may be referred to. For the system-class embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The steps in the method of each embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, a division of modules is merely a logical division, and an actual implementation may have another division, for example, a plurality of modules may be combined or integrated into another module, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or modules, and may be in an electrical, mechanical or other form.
Modules described as separate components may or may not be physically separate, and components described as modules may or may not be physical modules, may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a software functional module or a sub-module form.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A method for obtaining a network segment ID, applied to a VLAN network or a VXLAN network, the method comprising:
detecting a network segment ID used for indicating whether each network segment is used in a pre-established network segment ID array according to a preset bitmap rule;
determining a network segment ID indicating that a network segment is in an unused state, and extracting a network segment interval corresponding to the network segment ID in the unused state;
storing the network segment interval to an unused segments linked list;
acquiring network segment IDs of external networks with non-deleted states in all VLAN networks or VXLAN networks under a center of a virtual control center;
and storing the network segment ID of the external network with the state of non-deletion to the UsedSegments linked list.
2. The method of claim 1, wherein the detecting the network segment ID in the pre-established network segment ID array indicating whether the network segment is used according to the preset bitmap rule comprises:
creating the network segment ID array;
searching array elements of the network segment ID in the network segment ID array;
if the numerical value of the array element of the network segment ID is 0, determining that the network segment ID is in an unused state;
and if the numerical value of the array element of the network segment ID is 1, determining that the network segment ID is in a used state.
3. The method of claim 1, wherein storing the network segment interval to an unsusedsegments linked list comprises:
storing the network Segment interval into an object of a Segment class;
and storing the object as an element value of the unsusedsegments linked list to the unsusedsegments linked list.
4. The method of claim 1, further comprising:
storing the network segment ID array to a database when the VLAN network or the VXLAN network is created.
5. A system for obtaining a network segment ID for use in a VLAN network or a VXLAN network, the system comprising:
the indicating unit is used for detecting a network segment ID used for indicating whether each network segment is used in a pre-established network segment ID array according to a preset bitmap rule;
the extraction unit is used for determining a network segment ID indicating that a network segment is in an unused state and extracting a network segment interval corresponding to the network segment ID in the unused state;
the first storage unit is used for storing the network segment interval to an unused segments linked list;
an obtaining unit, configured to obtain a network segment ID of an external network whose state is non-deleted in all the VLAN networks or the VXLAN networks in a virtual control center;
and the third storage unit is used for storing the network segment ID of the external network with the state of non-deletion to the UsedSegments linked list.
6. The system of claim 5, wherein the indication unit comprises:
a creation module for creating the network segment ID array;
the searching module is used for searching array elements of the network segment ID in the network segment ID array;
a first determining module, configured to determine that the network segment ID is in an unused state if a value of an array element of the network segment ID is 0;
and the second determining module is used for determining that the network segment ID is in a used state if the numerical value of the array element of the network segment ID is 1.
7. The system of claim 5, wherein the first storage unit comprises:
the first storage module is used for storing the network Segment interval into an object of a Segment class;
and the second storage module is used for storing the object as an element value of the uniusedsegments linked list to the uniusedsegments linked list.
8. The system of claim 5, further comprising:
and the second storage unit is used for storing the network segment ID array to a database when the VLAN network or the VXLAN network is created.
CN201910695816.3A 2019-07-30 2019-07-30 Method and system for acquiring network segment ID Active CN110532457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910695816.3A CN110532457B (en) 2019-07-30 2019-07-30 Method and system for acquiring network segment ID

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910695816.3A CN110532457B (en) 2019-07-30 2019-07-30 Method and system for acquiring network segment ID

Publications (2)

Publication Number Publication Date
CN110532457A CN110532457A (en) 2019-12-03
CN110532457B true CN110532457B (en) 2022-05-24

Family

ID=68662128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910695816.3A Active CN110532457B (en) 2019-07-30 2019-07-30 Method and system for acquiring network segment ID

Country Status (1)

Country Link
CN (1) CN110532457B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629060A (en) * 2020-05-28 2020-09-04 广东浪潮大数据研究有限公司 Method, device, equipment and storage medium for creating virtual private cloud
CN116132274A (en) * 2022-12-22 2023-05-16 中国联合网络通信集团有限公司 Communication method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1671114A (en) * 2004-03-19 2005-09-21 华为技术有限公司 A method of IP address management
EP1610577A1 (en) * 2004-06-23 2005-12-28 Samsung Electronics Co., Ltd. Method of configuring and updating connection identifier in a broadband wireless access communication system
CN105930366A (en) * 2016-04-13 2016-09-07 郑州悉知信息科技股份有限公司 Statistical method and device
CN107168651A (en) * 2017-05-19 2017-09-15 郑州云海信息技术有限公司 A kind of small documents polymerize storage processing method
CN109977373A (en) * 2019-03-28 2019-07-05 中科驭数(北京)科技有限公司 Identification number assignment method, identification number recovery method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8750122B1 (en) * 2012-03-22 2014-06-10 Avaya, Inc. Method and apparatus for layer 2 loop prevention in a multi-node switch cluster

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1671114A (en) * 2004-03-19 2005-09-21 华为技术有限公司 A method of IP address management
EP1610577A1 (en) * 2004-06-23 2005-12-28 Samsung Electronics Co., Ltd. Method of configuring and updating connection identifier in a broadband wireless access communication system
CN105930366A (en) * 2016-04-13 2016-09-07 郑州悉知信息科技股份有限公司 Statistical method and device
CN107168651A (en) * 2017-05-19 2017-09-15 郑州云海信息技术有限公司 A kind of small documents polymerize storage processing method
CN109977373A (en) * 2019-03-28 2019-07-05 中科驭数(北京)科技有限公司 Identification number assignment method, identification number recovery method and device

Also Published As

Publication number Publication date
CN110532457A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN106411970B (en) A kind of fault handling method based on service call, device and system
CN108804399B (en) Form verification method and device
CN110532457B (en) Method and system for acquiring network segment ID
CN111818175A (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN106341469B (en) Loading method and device of tree node data
CN104054308B (en) Application layer resources selection method, device and system
CN106936660B (en) Data acquisition method and device
CN107633080B (en) User task processing method and device
CN105843809B (en) Data processing method and device
CN113660359A (en) Management method and device for domain name resolution record, storage medium and electronic equipment
CN111159131A (en) Performance optimization method, device, equipment and computer readable storage medium
CN110298178B (en) Trusted policy learning method and device and trusted security management platform
CN110290172B (en) Container application cloning method and device, computer equipment and storage medium
CN113821333A (en) Android application program migration method and device
CN111475468A (en) Log access method, device, equipment and storage medium of newly added system
CN115914404A (en) Cluster flow management method and device, computer equipment and storage medium
CN115578096A (en) Block chain parallel transaction method, device, equipment and storage medium
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN107368376A (en) Message method and device, extended method, terminal
CN111221847B (en) Monitoring data storage method, device and computer readable storage medium
CN114416256A (en) Information processing method, information processing device, electronic equipment and storage medium
CN112583761B (en) Management method and device of security entity, computer equipment and storage medium
CN113312895A (en) Organization mapping method and device of autonomous system AS and electronic equipment
CN109547317B (en) Method and device for establishing connection tunnel
CN108810299B (en) Information analysis method, medium and equipment

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