CN108848018B - Method and device for determining assigned VLAN ID - Google Patents

Method and device for determining assigned VLAN ID Download PDF

Info

Publication number
CN108848018B
CN108848018B CN201810928634.1A CN201810928634A CN108848018B CN 108848018 B CN108848018 B CN 108848018B CN 201810928634 A CN201810928634 A CN 201810928634A CN 108848018 B CN108848018 B CN 108848018B
Authority
CN
China
Prior art keywords
vlan
designated
enabled
determining
vlan ids
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
CN201810928634.1A
Other languages
Chinese (zh)
Other versions
CN108848018A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201810928634.1A priority Critical patent/CN108848018B/en
Publication of CN108848018A publication Critical patent/CN108848018A/en
Application granted granted Critical
Publication of CN108848018B publication Critical patent/CN108848018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a method and a device for determining an appointed VLAN ID, which relate to the field of communication and can improve the efficiency and reliability of determining the appointed VLAN ID. The TRILL network comprises a first routing bridge RB and a second RB, and the first RB and the second RB are both configured as: when receiving the handshake message carrying the designated MAC address, not performing VLAN check on the VLAN ID carried in the handshake message. The method comprises the following steps: acquiring all enabling VLAN IDs configured by the first RB and all enabling VLAN IDs configured by the second RB in a mode of receiving and transmitting each one-time handshake message; determining the first RB as a designated RB; and indicating the appointed RB to determine the appointed VLAN ID according to all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB.

Description

Method and device for determining assigned VLAN ID
Technical Field
The present application relates to the field of data communications, and in particular, to a method and an apparatus for determining a specified VLAN ID.
Background
At present, in a Transparent Interconnection of Lots of Links (TRILL) network, after a Virtual Local area network Identifier (VLAN ID) and an enabling VLAN ID are manually configured for each Routing Bridge (RB), an intersection of the enabling VLAN ID and the advertising VLAN ID configured for each RB may be obtained by receiving and sending a handshake message (e.g., a HELLO message). Then, the same VLAN ID in the intersection of the enable VLAN ID and the advertisement VLAN ID allocated to each RB is set as a designated VLAN ID (designated VLAN ID).
However, the above method needs to configure not only an enable VLAN ID for each RB, but also an advertisement VLAN ID for each RB, and needs to transmit and receive the HELLO packet every 3 seconds before determining the specified VLAN ID. Therefore, when the number of RBs in the TRILL network is large, and the number of the advertisement VLAN ID and the number of the enabling VLAN ID configured for the RB are large, the configuration workload is large, the complexity is high, and each round may need to receive and transmit a large number of HELLO messages, which consumes a large number of processing resources of the RB, thereby affecting the processing efficiency of normal services. In addition, after the designated VLAN ID is determined, all configured advertised VLAN IDs are idle, further occupying processing resources of normal traffic.
Disclosure of Invention
The application provides a method and a device for determining an appointed VLAN ID, which do not need to configure an announcement VLAN ID for each RB, can reduce the number of handshake messages which need to be sent and received for acquiring an enabling VLAN ID configured by all RBs, improve the efficiency and the reliability of determining the appointed VLAN ID, reduce processor resources occupied by determining the appointed VLAN ID, and further improve the processing efficiency of normal services.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the application provides a method for determining a designated VLAN ID, which is applied to a transparent interconnection of lots of links TRILL network. The TRILL network includes a first routing bridge RB and a second RB, and both the first RB and the second RB are configured to: when receiving the handshake message carrying the designated MAC address, not performing VLAN check on the VLAN ID carried in the handshake message. The method comprises the following steps: and acquiring all the enabling VLAN IDs configured by the first RB and all the enabling VLAN IDs configured by the second RB in a mode of transmitting and receiving handshake messages. Then, the first RB is determined as the designated RB. And then, the designated RB is instructed to determine the designated VLAN ID according to all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB.
In a second aspect, the present application provides a device for determining a specified VLAN ID. The device is applied to a transparent interconnection of lots of links TRILL network, the TRILL network comprises a first routing bridge RB and a second RB, and the first RB and the second RB are both configured as: when receiving the handshake message carrying the designated MAC address, not performing VLAN check on the VLAN ID carried in the handshake message. The device includes: the device comprises an acquisition module, a determination module, an indication module and a storage module. The obtaining module is configured to obtain all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB in a manner of transceiving handshake messages. A determining module to determine the first RB as the designated RB. And the indicating module is used for indicating the appointed RB to determine the appointed VLAN ID according to all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB. And the storage module is used for storing instructions and data.
In a third aspect, the present application provides a device for determining a specified VLAN ID. The device includes: a processor, a transceiver, and a memory. Wherein the memory is used to store one or more programs. The one or more programs include computer executable instructions which, when executed by the apparatus, cause the apparatus to perform the method of determining a specified VLAN ID as set forth in any one of the first aspect and its various alternative implementations.
In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and when the instructions are executed by a computer, the computer performs the method for determining a specified VLAN ID according to any one of the first aspect and various alternative implementations thereof.
In a fifth aspect, the present application provides a communication network comprising at least two routing bridges RB and means for determining a specified VLAN ID as set forth in any one of the second or third aspects and their various alternative implementations.
According to the method and the device for determining the designated VLAN ID, the first RB and the second RB can acquire all the enabled VLAN IDs of the first RB and the second RB by receiving and sending a handshake message once, then the first RB and the second RB elect the designated RB, the designated RB determines the designated VLAN ID according to all the enabled VLAN IDs of the first RB and the second RB, namely, only one handshake message needs to be sent and a reply handshake message is received, all the enabled VLAN IDs configured by the other RB can be acquired, the number of handshake messages sent and received for acquiring all the enabled VLAN IDs configured by the other RB can be reduced, the efficiency of determining the designated VLAN ID is improved, the probability of failure in determining the designated VLAN ID due to the fact that all the enabled VLAN IDs configured by adjacent RBs are not acquired in the process of determining the designated VLAN ID can be avoided, and the reliability of determining the designated VLAN ID is improved, and processor resources occupied in the process of determining the appointed VLAN ID can be reduced, so that the processing efficiency of normal services can be improved.
Drawings
Fig. 1 is a schematic structural diagram of a communication network to which the method and apparatus for determining a specified VLAN ID according to the embodiment of the present application are applied;
fig. 2 is a first flowchart illustrating a method for determining a specified VLAN ID according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a second method for determining a specified VLAN ID according to an embodiment of the present application;
fig. 4 is a third schematic flowchart of a method for determining a specified VLAN ID according to an embodiment of the present application;
fig. 5 is a fourth flowchart illustrating a method for determining a specified VLAN ID according to an embodiment of the present application;
fig. 6 is a fifth flowchart illustrating a method for determining a specified VLAN ID according to an embodiment of the present application;
fig. 7 is a first schematic structural diagram of a device for determining a specified VLAN ID according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a device for determining a specified VLAN ID according to an embodiment of the present application.
Detailed Description
The following describes in detail a method, an apparatus, and a system for determining a designated VLAN ID according to embodiments of the present application with reference to the drawings.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" and the like in the description and drawings of the present application are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly 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 "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
The method for determining the designated VLAN ID provided in the embodiment of the present application may be applied to the communication network shown in fig. 1, where the communication network is a TRILL network. As shown in fig. 1, the TRILL network may include: a first RB and a second RB. Wherein the first RB and the second RB are mainly used as intermediate RBs for establishing a layer 2, L2 connection between the TRILL network and other communication networks and a layer connection between the first RB and the second RB. The two-layer connections between the first RB and the second RB, and between the TRILL network and other communication networks may be network connections established in a wired manner such as a network cable or an optical fiber. It should be noted that fig. 1 is only an exemplary architecture diagram, and besides the functional units shown in fig. 1, the network architecture may further include other functional units, for example, other RBs, and a terminal device for accessing the TRILL network, which is not limited in this embodiment of the present application.
The embodiment of the application provides a method for determining a specified VLAN ID, which is applied to a TRILL network shown in fig. 1. As shown in fig. 1, the TRILL network may include a first routing bridge RB and a second RB, and both the first RB and the second RB are configured to: when receiving the handshake message carrying the designated MAC address, not performing VLAN check on the VLAN ID carried in the handshake message.
It should be noted that, according to the specification of ieee.org, the starting multicast MAC of the TRILL protocol is 01:80: C2:00:00:40, and the ending MAC address is 01:80: C2:00:00: 4F. The MAC address of the handshake packet, e.g., Hello packet, is 01:80: c2:00:00: 41. The network devices, such as the first RB and the second RB, to which the present application is applicable are configured as follows by default: when the destination MAC address carried in the handshake message is 01:80: c2:00:00:41, the destination MAC address is immediately sent to a Central Processing Unit (CPU) of the RB device for processing, and the RB device is not required to perform VLAN check. Since the VLAN check is prior art, the embodiments of the present application are not described in detail.
As shown in fig. 2, the method includes S201-S203:
s201, acquiring all enabling VLAN IDs configured by the first RB and all enabling VLAN IDs configured by the second RB in a mode of transceiving handshake messages.
Illustratively, the first RB or the second RB may also execute S201 according to a preconfigured execution flow.
The receiving and sending handshake messages can be realized as the following steps:
the method comprises the following steps: and the first RB sends a first handshake message to the second RB.
The first handshake message includes a first extension field, which is used to carry all enabled VLAN IDs configured by the first RB. For example, the first handshake packet may be a HELLO packet supporting a TRILL protocol, or may be another packet supporting the TRILL protocol, which is not limited in this embodiment of the present application.
Step two: and the first RB receives a second handshake message replied by the second RB.
And the second handshake message comprises a second extension field used for carrying all the enabled VLAN IDs configured by the second RB. For example, the second handshake message may be a message of the same type as the first handshake message, or may also be a message of a different type from the first handshake message, which is not limited in this embodiment of the application.
It is to be understood that by performing steps one and two, the first RB can obtain all the enabled VLAN IDs of its own and adjacent second RB configurations.
Of course, S201 may also be initiated by the second RB to execute, that is, the second RB sends the first handshake message to the first RB, and receives the second handshake message replied by the first RB, which is not limited in this embodiment of the present application.
S202, determining the first RB as the designated RB.
Exemplarily, in conjunction with fig. 2, as shown in fig. 3, the determining S202 the first RB as the designated RB may include S301:
s301, if the priority of the first RB is higher than that of the second RB, the first RB is determined as the designated RB.
In other words, the RB with the higher priority will be preferentially set as the designated RB. The priority may be a default configured priority when the RB is powered on, or may be a priority updated by the master control device such as the server after the RB is powered on.
It can be understood that if the priority of the second RB is higher, the second RB is determined to be the designated RB, and details of the embodiment of the present application are not repeated.
It should be noted that S202 and S301 may be executed by the first RB and notify the result to the second RB, may also be executed by the second RB and notify the execution result to the first RB, and may also be executed by the first RB and the second RB simultaneously and notify the execution result to each other, so as to verify whether the execution results of each other are consistent.
In order to avoid that the first RB and the second RB have the same priority and that the designated RB determined by the first RB is different from the designated RB determined by the second RB, for example, in conjunction with fig. 2, as shown in fig. 4, S202 determines the first RB as the designated RB, and may further include S401:
s401, if the priority of the first RB is the same as that of the second RB, and the MAC address of the first RB is larger than that of the second RB, the first RB is determined to be the designated RB.
S203, the designated RB is instructed to determine the designated VLAN ID according to all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB.
Optionally, with reference to any one of fig. 2 to 4, taking fig. 2 as an example, as shown in fig. 5, the step S203 of indicating that the designated RB determines the designated VLAN ID according to all enabled VLAN IDs configured by the first RB and all enabled VLAN IDs configured by the second RB may include the step S501:
s501, indicating the appointed RB to determine the appointed VLAN ID according to a preset election rule, all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB.
The preset election rule refers to an election rule which specifies a VLAN ID and is specified by a TRILL protocol. Exemplarily, referring to fig. 5, as shown in fig. 6, the step S501 of determining the designated VLAN ID according to the preset election rule and all enabled VLAN IDs of the first RB configuration and all enabled VLAN IDs of the second RB configuration may include steps S601 to S602:
s601, indicating the designated RB to determine the intersection of all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB.
The TRILL protocol specifies: adjacent RBs need to communicate using the same assigned VLAN ID. In view of this, it is necessary to first determine an intersection of all enabled VLAN IDs of the first RB configuration and all enabled VLAN IDs of the second RB configuration.
S602, indicating the designated RB to determine the minimum enabled VLAN ID in the intersection as the designated VLAN ID.
It should be noted that, if it is determined that the designated VLAN ID fails, the methods shown in S201 to S203 may be executed again when the system time reaches a preset period, for example, 3 seconds, so as to improve the success rate of determining the designated VLAN ID.
In the method for determining an assigned VLAN ID provided in this embodiment of the present application, a first RB and a second RB may obtain all enabled VLAN IDs of the first RB and the second RB by sending and receiving a handshake message once, then the first RB and the second RB elect the assigned RB, the assigned RB determines the assigned VLAN ID according to all enabled VLAN IDs of the first RB and the second RB, that is, only one handshake message needs to be sent and a reply handshake message is received, and then all enabled VLAN IDs configured by the other RB may be obtained, which may reduce the number of handshake messages sent and received to obtain all enabled VLAN IDs configured by the other RB, thereby improving the efficiency of determining the assigned VLAN ID, and may avoid the probability of failure in determining the assigned VLAN ID due to not obtaining all enabled VLAN IDs configured by adjacent RBs in the process of determining the assigned VLAN ID, and improve the reliability of determining the assigned VLAN ID, and processor resources occupied in the process of determining the appointed VLAN ID can be reduced, so that the processing efficiency of normal services can be improved.
In the embodiment of the present application, the device may be divided into the functional modules or the functional units according to the method example, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 7 is a schematic diagram showing a possible configuration of the determination device for specifying a VLAN ID involved in the above embodiment. The device is applied to the transparent interconnection of lots of links TRILL network shown in figure 1. The TRILL network includes a first routing bridge RB and a second RB, and both the first RB and the second RB are configured to: when receiving the handshake message carrying the designated MAC address, not performing VLAN check on the VLAN ID carried in the handshake message.
As shown in fig. 7, the apparatus includes: an obtaining module 701, a determining module 702, an indicating module 703 and a storing module 704.
The acquiring module 701 is configured to acquire all enabled VLAN IDs configured by the first RB and all enabled VLAN IDs configured by the second RB in a manner of transceiving a handshake message;
a determining module 702, configured to determine a first RB as a designated RB;
an indicating module 703, configured to indicate the designated RB to determine the designated VLAN ID according to all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB;
a storage module 704 for storing instructions and data.
Optionally, the determining module 702 is further configured to determine the first RB as the designated RB if the priority of the first RB is higher than the priority of the second RB.
Optionally, the determining module 702 is further configured to determine the first RB as the designated RB if the priority of the first RB is the same as the priority of the second RB and the MAC address of the first RB is greater than the MAC address of the second RB.
Optionally, the indicating module 703 is further configured to indicate the designated RB to determine the designated VLAN ID according to the preset election rule, and all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB.
Optionally, the indicating module 703 is further configured to indicate the designated RB to determine an intersection of all enabled VLAN IDs configured by the first RB and all enabled VLAN IDs configured by the second RB;
the indicating module 703 is further configured to indicate that the designated RB determines the minimum enabled VLAN ID in the intersection as the designated VLAN ID.
In the device for determining an assigned VLAN ID provided in this embodiment of the present application, the first RB and the second RB can obtain all enabled VLAN IDs of the first RB and the second RB by sending and receiving a handshake message once, then the first RB and the second RB elect the assigned RB, the assigned RB determines the assigned VLAN ID according to all enabled VLAN IDs of the first RB and the second RB, that is, only one handshake message needs to be sent and a reply handshake message is received, and then all enabled VLAN IDs configured by the other RB can be obtained, which can reduce the number of handshake messages sent and received for obtaining all enabled VLAN IDs configured by the other RB, thereby improving the efficiency of determining the assigned VLAN ID, and can avoid the probability of failure in determining the assigned VLAN ID due to not obtaining all enabled VLAN IDs configured by adjacent RBs in the process of determining the assigned VLAN ID, and improve the reliability of determining the assigned VLAN ID, and processor resources occupied in the process of determining the appointed VLAN ID can be reduced, so that the processing efficiency of normal services can be improved.
Fig. 8 is a schematic diagram showing still another possible configuration of the determination device for specifying a VLAN ID involved in the above embodiment. The device includes: a processing unit 801 and a communication unit 802. The processing unit 801 is used to control and manage the actions of the device, e.g., perform the steps performed by the determination module 702 and the storage module 704 described above, and/or other processes for performing the techniques described herein. The communication unit 802 is configured to support communication between the apparatus and other network entities, for example, perform the steps performed by the obtaining module 701 and the indicating module 703. The apparatus may further include a storage unit 803 and a bus 804, the storage unit 803 storing program codes and data of the apparatus.
The processing unit 801 may be a processor or controller in the apparatus, which may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure. The processor or controller may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The communication unit 802 may be a transceiver, a transceiving circuit, a communication interface, or the like in the device.
The storage unit 803 may be a memory in a device or the like, which may include a volatile memory such as a random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 804 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 804 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
The apparatus may be one of the first RB and the second RB, may also be another network device connected to the first RB and the second RB, such as a server, and may also be software installed on at least one of the first RB, the second RB, and the network device, which is not limited in this embodiment of the present application.
The embodiment of the application provides a communication network, which can comprise the device, the first RB and the second RB, wherein the device is used for the first RB and the second RB to execute the determination method for the designated VLAN ID provided by the embodiment of the application. For the description of the apparatus, the first RB and the second RB, reference may be specifically made to the description in the method embodiment and the apparatus embodiment, and details are not repeated here.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed by a computer, the computer may perform each step performed by the apparatus in the method flow shown in the foregoing method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should 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 method for determining a specified VLANID is applied to a transparent interconnection of lots of links (TRILL) network, wherein the TRILL network comprises a first Routing Bridge (RB) and a second RB, and the first RB and the second RB are both configured as: when receiving a handshake message carrying a specified Media Access Control (MAC) address, not performing VLAN (virtual local area network) check on a virtual local area network identification (VLAN ID) carried by the handshake message; the method for determining the designated VLAN ID comprises the following steps:
acquiring all enabled VLAN IDs configured by the first RB and all enabled VLAN IDs configured by the second RB by receiving and sending the handshake messages, wherein the handshake messages sent by the first RB carry all enabled VLAN IDs of the first RB, and the handshake messages sent by the second RB carry all enabled VLAN IDs of the second RB;
determining the first RB as a designated RB;
and indicating the appointed RB to determine the appointed VLAN ID according to the intersection of all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB.
2. The method of claim 1, wherein determining the first RB as a designated RB comprises:
and if the priority of the first RB is higher than that of the second RB, determining the first RB as a designated RB.
3. The method of claim 2, wherein determining the first RB as a designated RB further comprises:
and if the priority of the first RB is the same as that of the second RB, and the MAC address of the first RB is larger than that of the second RB, determining the first RB as the designated RB.
4. The method of any of claims 1-3, wherein the instructing the designated RB to determine a designated VLAN ID based on all enabled VLAN IDs of the first RB configuration and all enabled VLAN IDs of the second RB configuration comprises:
and indicating the appointed RB to determine the appointed VLAN ID according to a preset election rule, all the enabled VLAN IDs configured by the first RB and all the enabled VLAN IDs configured by the second RB.
5. The method of claim 4, wherein the indicating the designated RB to determine the designated VLAN ID according to a preset election rule and all enabled VLAN IDs of the first RB configuration and all enabled VLAN IDs of the second RB configuration comprises:
instructing the designated RB to determine an intersection of all enabled VLAN IDs of the first RB configuration and all enabled VLAN IDs of the second RB configuration;
and indicating the designated RB to determine the minimum enabled VLANID in the intersection as the designated VLAN ID.
6. A device for determining a specified vlan id, for use in a transparent interconnection of lots of links (TRILL) network, said TRILL network comprising: a first routing bridge RB and a second RB; the first RB and the second RB are each configured to: when receiving a handshake message carrying a specified Media Access Control (MAC) address, not performing VLAN (virtual local area network) check on a virtual local area network identification (VLAN ID) carried by the handshake message;
the means for determining the specified vlan id comprises: the device comprises an acquisition module, a determination module and an indication module; wherein the content of the first and second substances,
the obtaining module is configured to obtain all enabled VLAN IDs configured by the first RB and all enabled VLAN IDs configured by the second RB in a manner of receiving and sending the handshake message, where the handshake message sent by the first RB carries all enabled VLAN IDs of the first RB, and the handshake message sent by the second RB carries all enabled VLAN IDs of the second RB;
the determining module is configured to determine the first RB as a designated RB;
the indicating module is configured to indicate the designated RB to determine the designated VLAN ID according to an intersection of all enabled VLAN IDs configured by the first RB and all enabled VLAN IDs configured by the second RB.
7. The apparatus for specifying VLAN ID as claimed in claim 6,
the determining module is further configured to determine the first RB as a designated RB if the priority of the first RB is higher than the priority of the second RB.
8. The apparatus for specifying VLAN ID as claimed in claim 7,
the determining module is further configured to determine the first RB as a designated RB if the priority of the first RB is the same as the priority of the second RB and the MAC address of the first RB is greater than the MAC address of the second RB.
9. The apparatus for determining a specified VLANID according to any of claims 6-8,
the indicating module is further configured to indicate the designated RB to determine the designated VLAN ID according to a preset election rule, all enabled VLAN IDs configured by the first RB and all enabled VLAN IDs configured by the second RB.
10. The apparatus for specifying VLAN ID as claimed in claim 9,
the indicating module is further configured to indicate the designated RB to determine an intersection of all enabled VLAN IDs configured by the first RB and all enabled VLAN IDs configured by the second RB;
the indicating module is further configured to indicate the designated RB to determine the minimum enabled VLAN ID in the intersection as the designated VLAN ID.
CN201810928634.1A 2018-08-15 2018-08-15 Method and device for determining assigned VLAN ID Active CN108848018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810928634.1A CN108848018B (en) 2018-08-15 2018-08-15 Method and device for determining assigned VLAN ID

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810928634.1A CN108848018B (en) 2018-08-15 2018-08-15 Method and device for determining assigned VLAN ID

Publications (2)

Publication Number Publication Date
CN108848018A CN108848018A (en) 2018-11-20
CN108848018B true CN108848018B (en) 2021-07-27

Family

ID=64189231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810928634.1A Active CN108848018B (en) 2018-08-15 2018-08-15 Method and device for determining assigned VLAN ID

Country Status (1)

Country Link
CN (1) CN108848018B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387078A (en) * 2011-10-19 2012-03-21 杭州华三通信技术有限公司 Method and routing bridge for maintaining neighbourship in TRILL (Transparent Interconnection of Lots of Links) network
CN103746932A (en) * 2013-12-20 2014-04-23 杭州华三通信技术有限公司 Method and apparatus for determining appointed VLAN-x forwarder

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780486B (en) * 2012-10-26 2017-03-08 杭州华三通信技术有限公司 A kind of mirror image message transmission method in TRILL network and equipment
CN103078780A (en) * 2013-01-31 2013-05-01 杭州华三通信技术有限公司 Dynamic negotiation method and equipment for designated virtual local area network (VLAN) in transparent interconnection of lots of links network (TRILL)
CN104301226B (en) * 2013-07-16 2017-11-10 新华三技术有限公司 A kind of specified routing bridge electoral machinery, equipment and system
CN103825836B (en) * 2013-12-20 2016-10-05 杭州华三通信技术有限公司 Determine the method and device specifying VLAN to turn originator
CN105490909B (en) * 2014-09-18 2018-10-09 新华三技术有限公司 AVF processing method and processing devices in TRILL network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387078A (en) * 2011-10-19 2012-03-21 杭州华三通信技术有限公司 Method and routing bridge for maintaining neighbourship in TRILL (Transparent Interconnection of Lots of Links) network
CN103746932A (en) * 2013-12-20 2014-04-23 杭州华三通信技术有限公司 Method and apparatus for determining appointed VLAN-x forwarder

Also Published As

Publication number Publication date
CN108848018A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN110896355B (en) Network slice selection method and device
CN109617906B (en) Access method and device of hybrid cloud
CN114025021B (en) Communication method, system, medium and electronic equipment crossing Kubernetes cluster
CN108282385B (en) Port test method and communication equipment
CN110691384A (en) Network slice using method and device
CN114143283B (en) Tunnel self-adaptive configuration method and device, central terminal equipment and communication system
CN111901387B (en) Connection method and device of cloud special line
CN113079207B (en) Method, system, terminal and medium for realizing high availability of port or network
CN111669754B (en) Verification method and device
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN108848018B (en) Method and device for determining assigned VLAN ID
US11405766B2 (en) Connecting computer processing systems and transmitting data
US11357020B2 (en) Connecting computer processing systems and transmitting data
US11290575B2 (en) Connecting computer processing systems and transmitting data
CN110868762B (en) Data stream processing method, device and system
CN109714262B (en) Data transmission method and related equipment
CN110674103B (en) Data management method and device
CN114465834A (en) User access processing method and related equipment thereof
CN110351193B (en) Route updating method and device, computer device and readable storage medium
CN114900901B (en) Service processing method and device, equipment and computer readable storage medium
CN112565048B (en) Three-layer VPN (virtual private network) network creation method, three-layer VPN network data transmission method, three-layer VPN network creation device, three-layer VPN network data transmission device and electronic equipment
CN109587027B (en) Message forwarding method and device
US20140189705A1 (en) Job homing
CN116846823A (en) Communication method, core network device, and computer-readable storage medium
CN114554540A (en) Network slice access method, device, system and storage medium

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