WO2017215381A1 - 虚拟扩展端口的指示方法和装置、存储介质 - Google Patents

虚拟扩展端口的指示方法和装置、存储介质 Download PDF

Info

Publication number
WO2017215381A1
WO2017215381A1 PCT/CN2017/084017 CN2017084017W WO2017215381A1 WO 2017215381 A1 WO2017215381 A1 WO 2017215381A1 CN 2017084017 W CN2017084017 W CN 2017084017W WO 2017215381 A1 WO2017215381 A1 WO 2017215381A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
identity information
information
extension
extended
Prior art date
Application number
PCT/CN2017/084017
Other languages
English (en)
French (fr)
Inventor
孟非
曹淑玲
王同乐
郑炎
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017215381A1 publication Critical patent/WO2017215381A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Definitions

  • the present invention relates to communication technologies, and in particular, to a method and device for indicating a virtual extension port, and a storage medium.
  • Extended Birdge also known as vertical stacking
  • the vertical stacking architecture generally consists of two important parts: Control Bridge (CB, Controlling Bridge) and Interface Expansion Equipment (PE, Port Extended).
  • CB Control Bridge
  • PE Interface Expansion Equipment
  • Vertical stacking deploys remote switches as CBs. Configure the physical access switch or the software virtual switch as the PE. Set the CB's expansion port and the PE's uplink port to establish multiple extended channels (E-Channels, Extended Channels) between the CB and the PE.
  • the CB is responsible for each one.
  • the PE port generates a corresponding virtual extended interface (BEP) and allocates the corresponding E-channel Identifier (E-CID). It is also responsible for forwarding unicast packets. It is the starting point for multicast forwarding.
  • the media access control layer (MAC) learns and forwards according to the E-CID, thereby solving the management problem caused by the proliferation of virtual machines in the data center.
  • MAC media access control layer
  • the CB and PE use the Link Layer Discovery Protocol (LLDP) packet to discover the peer device.
  • the CB passes the port extension control and status protocol (PE CSP, Port Extender Control and Status). Protocol) Discovers the PE port, creates a corresponding BEP port, and assigns an E-CID to the port to form a vertical stack network.
  • PE CSP Port Extender Control and Status
  • Protocol Discovers the PE port, creates a corresponding BEP port, and assigns an E-CID to the port to form a vertical stack network.
  • the interaction process consists of two expansion ports between the CB and a PE.
  • the interaction process mainly includes the following steps:
  • Step S101 A port of the CB discovers the peer PE device through the LLDP protocol, initializes an internal interface extension device, and enables the PE CSP protocol on the port. Similarly, one port of the PE discovers the peer CB device through the LLDP protocol, and This port enables the PE CSP protocol.
  • Step S102 The CB and the PE send a CSP Open message to the opposite end through the corresponding port, and send a CSP Open reply message to the opposite end after receiving the CSP Open message sent by the peer end.
  • Step S103 The CB sends a Port Parameter Set message to the PE, and the PE is required to set the parameter of the uplink port. After the PE sets the uplink port parameter, the PE sends a Port Parameters Set Reply message to the CB.
  • the PE requests the CB to create an extension port in the CB.
  • the PE sends the extended port to the CB through the uplink port.
  • Step S105 After receiving the Extended Port Create message, the CB creates a corresponding BEP interface and allocates an E-CID, and the CB sends an Extended Port Create Reply message to the PE.
  • Step S106 The PE receives the Extended Port Create Reply message, and writes the correspondence between the E-CID value assigned by the CB and the port to the PE.
  • Step S107 The CB sends two Port Parameters Set messages to the PE to set parameters of the two BEP interfaces on the PE, such as a virtual local area network (VLAN) and port attributes.
  • VLAN virtual local area network
  • Step S108 The PE receives the parameter information carried in the Port Parameters Set message, and sends a Port Parameters Set Reply message to the CB after the corresponding port is set.
  • the Extended Port Create message from the PE received by the CB includes a Command type-length-value (TLV, Type-Length-Value), and an index field is used to represent the corresponding A PE port, where the index field contains a 12-bit port sequence number (PortNum) field, which is used to indicate the port, but the 802.1BR standard does not specify the specific composition of the 12-bit PortNum field.
  • the field is assigned a globally uniquely-identified PE port.
  • the port name of the BEP port generated based on the 12-bit digital index does not contain the specific information of the PE port, such as port 1 on a PE.
  • the PE sends two PE CSP Extended Port Create messages to the CB, which carry the 12-bit digital index of the corresponding PE port.
  • the BB port generates two BEP ports according to the received 12-bit digital index.
  • the BEP port name may be BEP M and BEP N, and the corresponding E-CIDs are assigned to the two ports BEP M and BEP N.
  • the value may be X.
  • the Y; the CB notifies the PE by the PE CSP Extended Port Create Reply message, and the BEP port is successfully created.
  • the generated BEP M and BEP N have no practical meaning. They must be indexed by the original E-CID value. After the query is performed on the CB and the PE, the BEP M on the CB corresponding to Port 1 on the PE and the BEP N corresponding to Port 2 are found.
  • the embodiment of the invention provides a method and a device for indicating a virtual extended port and a storage medium, so as to at least solve the technical problem that the management efficiency of the BEP port in the related art is low.
  • a method for indicating a virtual extension port comprising: receiving request information for creating a virtual extension port for a physical extension port of an interface extension device, where the request information carries a physical Port information of the extended port; creating a virtual extension port requested by the request information, and assigning an extended channel identifier to the created virtual extension port; generating identity information of the created virtual extension port based on the port information of the physical extension port; transmitting identity information and The assigned extended channel is identified to the interface expansion device.
  • generating the identity information of the created virtual extension port based on the port information of the physical extension port includes: acquiring the saved identity information generation manner; and generating, according to the saved identity information, the generation manner corresponding to the created virtual extension port and carrying the physical The identity information of the port information of the extended port.
  • the method for generating the identity information includes a user-defined generation mode and a method for generating port information based on the physical extension port
  • the saved identity information generation mode is a method for generating port information based on the physical extension port
  • the created virtual extension is generated.
  • the method further includes: if receiving the configuration command, determining whether the identity information generation manner indicated by the configuration instruction is the same as the saved identity information generation manner; and the identity information indicated by the configuration instruction
  • the stored identity information generation method is configured as the identity information generation method indicated by the configuration command.
  • the method further includes: deleting the created virtual extension port and the corresponding extended channel identifier; and sending the indication to delete the extended channel identifier Information to the interface extension device.
  • the port information of the physical extension port includes port location information.
  • a device for indicating a virtual extension port includes: a receiving unit configured to receive request information for creating a virtual extension port for a physical extension port of the interface extension device, where The request information carries the port information of the physical extension port; the creation unit is configured to create a virtual extension port that is requested to be created by the request information, and allocates an extension channel identifier for the created virtual extension port; and the generation unit is configured to be based on the physical extension port.
  • the port information generates identity information of the created virtual extension port; the sending unit is configured to send the identity information and the allocated extended channel identifier to the interface extension device.
  • the generating unit includes: an obtaining module, configured to obtain a saved identity information generating manner; and a generating module configured to generate port information corresponding to the created virtual extended port and carrying the physical extended port according to the saved identity information generating manner Identity information.
  • the method for generating the identity information includes a user-defined generation mode and a method for generating port information based on the physical extension port, where the saved identity information generation mode is a method for generating port information based on the physical extension port, and the device further includes: determining The unit is configured to determine, according to the configuration instruction, whether the identity information generation manner indicated by the configuration instruction is the same as the saved identity information generation manner, and the configuration unit is configured to generate the identity information generation manner and the saved identity indicated by the configuration instruction. When the information generation methods are different, the saved identity information generation method is configured as the identity information generation method indicated by the configuration command.
  • the device further includes: a deleting unit configured to delete the created virtual extended port and the corresponding extended channel identifier; and the sending unit configured to send the indication to delete the extended channel identifier Information to the interface extension device.
  • the port information of the physical extension port includes port location information.
  • a readable storage medium which stores an executable program, and when the executable program is executed by a processor, implements a method for indicating a virtual extension port provided by an embodiment of the present invention.
  • an information reminding apparatus including:
  • a memory for storing an executable program
  • the processor when configured to run the executable program stored in the memory, executes the indication method of the virtual extension port provided by the embodiment of the invention.
  • the request is to create a request information of the virtual extension port for the physical extension port of the interface extension device, where the request information carries the port information of the physical extension port, and the virtual extension port that is requested to be created by the request information is created, and
  • the created virtual extension port allocates an extended channel identifier; the identity information of the created virtual extension port is generated based on the port information of the physical extension port; the identity information and the assigned extension channel identifier are sent to the interface extension device, because the port information is based on the physical extension port.
  • the identity information of the generated virtual extension port when the interface extension device receives the identity information of the virtual extension port (ie, the BEP port), the corresponding physical extension port can be determined for management, thereby solving the related art BEP port.
  • the technical problem of low management efficiency achieves the technical effect of improving the management efficiency of the BEP port.
  • FIG. 2 is a flowchart of a method for indicating a virtual extension port according to an embodiment of the present invention
  • FIG. 3 is a flowchart of an indication method of an optional virtual extension port according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a network device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a pointing device of a virtual extension port according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of hardware of a pointing device for a virtual extension port according to an embodiment of the present invention.
  • a method embodiment of a method for indicating a virtual extension port is provided. It should be noted that the steps shown in the flowchart of the drawing may be executed in a computer system such as a set of computer executable instructions. And, although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • the extension port naming method generated by the existing 802.1BR protocol standard that does not parse the 12-bit PortNum field carried in the Extended Port Create message may be simply referred to as Simple-Interface Mode, and the BEP generated by this mode.
  • the port name does not have a practical meaning, and the corresponding port on the PE needs to be searched for by the allocated E-CID, which is inconvenient to manage the port.
  • the embodiment of the present invention proposes the following method to improve the management efficiency of the port.
  • FIG. 2 is a flowchart of a method for indicating a virtual extension port according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step S201 Receive request information for creating a virtual extension port for the physical extension port of the interface extension device, where the request information carries port information of the physical extension port.
  • Step S202 creating a virtual extension port that is requested to be created by the request information, and creating a virtual The proposed expansion port assignment extension channel identifier.
  • Step S203 Generate identity information of the created virtual extension port based on the port information of the physical extension port.
  • Step S204 sending the identity information and the allocated extended channel identifier to the interface extension device.
  • the request is to create a request information of the virtual extension port for the physical extension port of the interface extension device, where the request information carries the port information of the physical extension port; the virtual extension port requested to be created by the request information is created, and is created.
  • the virtual extension port allocates an extended channel identifier; the identity information of the created virtual extension port is generated based on the port information of the physical extension port; the identity information and the allocated extension channel identifier are sent to the interface extension device, which is generated based on the port information of the physical extension port.
  • the identity information of the virtual extension port when the interface extension device receives the identity information of the virtual extension port (ie, the BEP port), the corresponding physical extension port can be determined for management, thereby solving the management efficiency of the BEP port in the related art.
  • the lower technical problem achieves the technical effect of improving the management efficiency of the BEP port.
  • the execution body of the foregoing steps may be a control bridge or the like, but is not limited thereto.
  • the identity information of the virtual extended port refers to information for identifying the identity of the virtual extended port, and the identity information includes but is not limited to the port name of the virtual extended port; the port information of the physical extended port includes but is not limited to the port location. Information (such as port physical address). The embodiment of the present application is described in detail by taking the port name and port location information as an example.
  • the foregoing request information may be an Extended Port Create message; when the identity information and the allocated extended channel identifier are sent, the information may be carried in the Extended Port Create Reply message.
  • the generating the identity information of the created virtual extension port based on the port information of the physical extension port includes: acquiring the saved identity information generation manner; generating and carrying the virtual extension port corresponding to the created identity information according to the saved identity information generation manner.
  • the saved identity information is generated by a physical extension port based port letter. How to generate a port name.
  • the manner in which the virtual extension port generates the identity information may be referred to as a detailed interface naming mode (Detail-Interface Mode), and the extended port Create message carries the PE port information, such as the physical location information of the port, and the generated BEP port name. Contains information about specific ports on the PE, such as physical location information.
  • the method for generating the identity information includes the user-defined generation mode (which may be a user-defined generation mode, or the simple interface naming manner described above, which is not limited in this application) and the port information based on the physical extension port.
  • the generated identity information is generated by the method of generating the port information based on the physical extended port.
  • the configuration command is received, determining the identity information indicated by the configuration command is generated.
  • the method is the same as the method for generating the saved identity information. If the identity information generation mode indicated by the configuration command is different from the saved identity information generation mode, the saved identity information generation mode is configured as the identity information indicated by the configuration command. How to generate.
  • the BEP port name with the PE physical port location (that is, the identity information of the virtual extension port mentioned above) is generated and the E-CID (that is, the extended channel identifier) is allocated. . If you want to switch to the simple interface naming mode, delete the existing BEP port name and E-CID, and then re-request the BEP port name and E-CID according to the simple interface naming mode.
  • the method can provide a user with a BEP port naming manner with a physical location that is convenient for commercial use, and also provides a simplified BEP port naming manner that meets the compatibility requirements of different vendors, and provides differentiated services for different users. Can make the user experience better.
  • Both the simple interface mode and the detailed interface naming mode can be switched to another way to regenerate the BEP port name to provide differentiated services for different users.
  • the user experience is better.
  • An embodiment of the present invention will be described in detail below with reference to FIG. 3, as shown in FIG.
  • Step S301 Configure a BEP port generation mode for the detailed interface naming mode on the CB, and record the mode type of the configuration.
  • the BEP port generation method that can be set includes simple interface naming and detailed interface naming.
  • Step S302 the CB receives the Extended Port Create message from the PE.
  • Step S303 the CB parses the 12-bit digital index in the Command TLV in the message.
  • step S304 the CB reads the BEP port generation mode configuration. If the detailed interface naming mode is used, the BEP port name with the PE physical port location is generated.
  • a BEP port name with a PE physical port location is generated, and the format includes but is not limited to the following form: “BEP a/b/c/d/e”, where “a” represents a PE-ID, that is, an interface extension device.
  • No. "b” stands for shelf-id, which is the number of the chassis.
  • “c” stands for slot-id, which is the number of the slot where the service card is located.
  • “d” stands for sub-slot-id, that is, the sub-slot.
  • the number, "e” stands for port-id, which is the port number.
  • step S305 the CB allocates an E-CID to the BEP port.
  • Step S306 the CB sends the generated BEP port and the E-CID relationship to the PE by using an Extended Port Create Reply message.
  • Step S307 After receiving the Extended Port Create Reply message, the PE records the correspondence between the port and the E-CID value in the local database.
  • Step S308 determining the BEP port generation mode configuration type, and if it is a simple interface naming manner, executing step S309.
  • step S309 the CB checks the existing BEP port generation mode. If it is not the simple interface naming mode, the existing BEP port name and the E-CID are deleted.
  • the created virtual extension port and the corresponding extended channel identifier may be deleted; and the information indicating that the extended channel identifier is deleted is sent to the interface. Expand the device. Specifically, it can be achieved by the following steps.
  • Step S310 the CB sends an Extended Port Delete (Delete) message to the PE.
  • Step S311 the PE deletes the local port and the E-CID information, and resends the Extended Port Create to the CB.
  • step S312 the CB reads the configuration of the BEP port generation mode. If it is a simple interface naming mode, it generates a BEP port without the physical port location of the PE.
  • a BEP port without a PE physical port location may be generated in the format of “BEP M”, but is not limited thereto, and “M” is a random value assigned by the CB to the BEP port.
  • step S313 the CB allocates an E-CID to the newly generated BEP port.
  • step S314 the CB sends the newly generated BEP port (or BEP port name) and the E-CID relationship to the PE by using the Extended Port Create Reply message.
  • Step S315 After receiving the Extended Port Create Reply message, the PE records the port and the E-CID correspondence in the local database.
  • the present invention further provides a network device.
  • the network device includes: a BEP port naming module 401, a packet transceiver module 402, a packet processing module 403, a BEP port module 404, and an E. - CID database module 405.
  • the BEP port naming module 401 is configured to set a simple interface naming mode or a detailed interface naming mode on the CB, and record the mode type of the configuration.
  • the BEP port generation mode that can be set includes the common simple interface naming method specified by the 802.1BR protocol and the detailed interface naming manner of the present invention.
  • the packet sending and receiving module 402 is configured to receive or send the Extended Port Create message, the Extended Port Create Reply message, and the Extended Port from the PE. Delete message.
  • the message processing module 403 is configured to process the Extended Port Create, the Extended Port Create Reply, and the Extended Port Delete message received by the message sending and receiving module 402.
  • the BEP port module 404 is configured to generate a BEP port according to the configuration mode of the BEP port naming module.
  • a BEP port name with a PE physical port location is generated, and the format includes but is not limited to the following form: “BEP a/b/c/d/e”, where “a” represents a PE-ID, that is, an interface extension device. ID, "b” stands for shelf-id, “c” stands for slot-id, “d” stands for sub-slot-id, and “e” stands for port-id; BEP without physical port location of PE is generated by simple interface naming
  • the format of the port includes but is not limited to the following format: "BEP M", where M is a random value assigned on the CB.
  • the E-CID database module 405 is configured to store an E-CID assigned to the generated BEP port.
  • the BEP port name with the PE physical port location (that is, the identity information of the virtual extension port mentioned above) is generated and the E-CID (that is, the extended channel identifier) is allocated. . If you want to switch to the simple interface naming mode, delete the existing BEP port name and E-CID, and then re-request the BEP port name and E-CID according to the simple interface naming mode.
  • the method can provide a user with a BEP port naming manner with a physical location that is convenient for commercial use, and also provides a simplified BEP port naming manner that meets the compatibility requirements of different vendors, and provides differentiated services for different users. Can make the user experience better.
  • the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a storage medium such as a read only memory (ROM, Read). -Only Memory), Random Access Memory (RAM, Random Access) Memory, disk, and optical disk include instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • ROM read only memory
  • RAM Random Access Memory
  • disk and optical disk
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.
  • a pointing device for a virtual extension port is also provided in the embodiment of the present invention.
  • the device is used to implement the above embodiments and preferred embodiments, and the description thereof has been omitted.
  • the term "module" may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 5 is a schematic diagram of a pointing device of a virtual extension port according to an embodiment of the present invention.
  • the apparatus may include: a receiving unit 51, a creating unit 52, a generating unit 53, and a transmitting unit 54.
  • the receiving unit 51 is configured to receive the request information for creating a virtual extension port for the physical extension port of the interface extension device, where the request information carries the port information of the physical extension port.
  • the creation unit 52 is configured to create a virtual extension port that is requested to be created by the request information, and allocate an extension channel identifier for the created virtual extension port.
  • the generating unit 53 is configured to generate the identity information of the created virtual extension port based on the port information of the physical extension port.
  • the transmitting unit 54 is configured to transmit the identity information and the assigned extended channel identifier to the interface extension device.
  • the receiving unit receives the request information for creating a virtual extension port for the physical extension port of the interface extension device, where the request information carries the port information of the physical extension port; and the virtual expansion port requested by the creation unit creation request information is created. And assigning an extended channel identifier to the created virtual extended port; the generating unit generates the identity information of the created virtual extended port based on the port information of the physical extended port; the sending unit sends the identity information and the allocated extended channel identifier to the interface extending device, because the Virtually generated port information of the physical extension port The identity information of the extended port is determined.
  • the interface extension device When the interface extension device receives the identity information of the virtual extension port (that is, the BEP port), the corresponding physical extension port can be determined for management, thereby solving the management efficiency of the BEP port in the related art.
  • the low technical problem achieves the technical effect of improving the management efficiency of the BEP port.
  • the above device may be applied to a device such as a control bridge, but is not limited thereto.
  • the identity information of the virtual extended port refers to information for identifying the identity of the virtual extended port, and the identity information includes but is not limited to the port name of the virtual extended port; the port information of the physical extended port includes but is not limited to the port location. information.
  • the embodiment of the present application is described in detail by taking the port name and port location information as an example.
  • the foregoing request information may be an Extended Port Create message; when the identity information and the allocated extended channel identifier are sent, the information may be carried in the Extended Port Create Reply message.
  • the generating unit includes: an obtaining module configured to acquire the saved identity information generating manner; and a generating module configured to generate the virtual extended port corresponding to the created virtual extended port according to the saved identity information generating manner Identity information for port information.
  • the manner in which the virtual extension port generates the identity information may be referred to as a detailed interface naming mode (Detail-Interface Mode), and the extended port Create message carries the PE port information, such as the physical location information of the port, and the generated BEP port name. Contains information about specific ports on the PE, such as physical location information.
  • the method for generating the identity information includes a user-defined generation mode and a method for generating port information based on the physical extension port, where the saved identity information generation mode is a method for generating port information based on the physical extension port, and the device further includes: determining The unit is configured to determine, according to the configuration instruction, whether the identity information generation manner indicated by the configuration instruction is the same as the saved identity information generation manner, and the configuration unit is configured to generate the identity information generation manner and the saved identity indicated by the configuration instruction.
  • the identity information generator that will be saved if the information generation method is different
  • the configuration is configured to generate the identity information indicated by the instruction.
  • the device further includes: a deleting unit, configured to delete the created virtual extended port and the corresponding extended channel identifier; and the sending unit is configured to send information indicating that the extended channel identifier is deleted to the interface expansion device.
  • a deleting unit configured to delete the created virtual extended port and the corresponding extended channel identifier
  • the sending unit is configured to send information indicating that the extended channel identifier is deleted to the interface expansion device.
  • the BEP port name with the physical port location of the PE (that is, the identity information of the virtual extension port mentioned above) is generated and the E-CID is allocated. If you want to switch to the simple interface naming mode, delete the existing BEP port name and E-CID, and then re-request the BEP port name and E-CID according to the simple interface naming mode.
  • the method can provide a user with a BEP port naming manner with a physical location that is convenient for commercial use, and also provides a simplified BEP port naming manner that meets the compatibility requirements of different vendors, and provides differentiated services for different users. Can make the user experience better.
  • Both the simple interface mode and the detailed interface naming mode can be switched to another way to regenerate the BEP port name to provide differentiated services for different users. The user experience is better.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiments of the present invention also provide a storage medium, optionally, the storage medium may be configured to store program code for performing the following steps:
  • the request information is used to create a virtual extension port for the physical extension port of the interface extension device, where the request information carries the port information of the physical extension port.
  • the identity information of the created virtual extended port is generated based on the port information of the physical extended port. interest;
  • the storage medium is further arranged to store program code configured to perform the following steps:
  • the foregoing storage medium may include, but is not limited to, a U disk, a ROM, a RAM (Random Access Memory), a mobile hard disk, a magnetic disk, or an optical disk, and the like.
  • the processor executes, according to the stored program code in the storage medium, the request information for creating a virtual extension port for the physical extension port of the interface extension device, where the request information carries the physics.
  • Port information of the extended port creating a virtual extension port requested by the request information, and assigning an extended channel identifier to the created virtual extension port; generating identity information of the created virtual extension port based on the port information of the physical extension port; transmitting identity information and The assigned extended channel is identified to the interface expansion device.
  • the processor is configured to: obtain the saved identity information generation manner according to the stored program code in the storage medium; and generate and carry the virtual extension port corresponding to the created identity information according to the saved identity information generation manner.
  • the identity information of the port information of the physical extension port is configured to: obtain the saved identity information generation manner according to the stored program code in the storage medium; and generate and carry the virtual extension port corresponding to the created identity information according to the saved identity information generation manner.
  • FIG. 6 is a schematic diagram of a hardware structure of a virtual extension port indication device according to an embodiment of the present invention, including:
  • the method includes at least one processor 601, a memory 602, and at least one network interface 603. Virtual The various components in the pointing device of the intended expansion port are coupled together by a bus system 604. It will be appreciated that bus system 604 is used to implement connection communication between these components.
  • the bus system 604 includes a power bus, a control bus, and a status signal bus in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 604 in FIG.
  • memory 602 can be either volatile memory or non-volatile memory, and can include both volatile and nonvolatile memory.
  • the non-volatile memory may be a ROM, a Programmable Read-Only Memory (PROM), or an Erasable Programmable Read-Only Memory (EPROM).
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • the memory 602 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
  • the memory 602 in the embodiment of the present invention is used to store various types of data to support the operation of the pointing device of the virtual extension port.
  • Examples of such data include any computer program for operating on a pointing device of a virtual expansion port, such as operating system 6021 and application 6022.
  • the operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks.
  • the application 6022 can include various applications, and programs that implement the methods of the embodiments of the present invention can be included in the application 6022.
  • Processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 601 or an instruction in a form of software.
  • the processor 601 described above may be a general purpose processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like.
  • DSP digital signal processor
  • the processor 601 can implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present invention.
  • a general purpose processor can be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiment of the present invention may be directly implemented as a hardware decoding processor, or by using a decoding processor.
  • the combination of hardware and software modules in the implementation is completed.
  • the software module can reside in a storage medium located in memory 602, and processor 601 reads the information in memory 602 and, in conjunction with its hardware, performs the steps of the foregoing method.
  • the indication device of the virtual expansion port may be configured by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), and Complex Programmable Logics.
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal processors
  • PLDs Programmable Logic Devices
  • Complex Programmable Logics Device
  • CPLD Complex Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • general-purpose processor controller
  • controller microcontroller (Micro Controller Unit) (MCU), microprocessor (Microprocessor), Or other electronic components are implemented to perform the aforementioned methods.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the invention provides a method and device for indicating a virtual expansion port and a storage medium.
  • the method includes: receiving a request to create a virtual extension port for a physical extension port of the interface extension device Request information, the request information carries port information of the physical extension port; creates a virtual extension port requested by the request information, and allocates an extended channel identifier for the created virtual extension port; generates a virtual created based on the port information of the physical extension port.
  • the identity information of the extended port; the identity information and the assigned extended channel identifier are sent to the interface extension device.
  • the invention solves the technical problem that the management efficiency of the BEP port is low in the related art, and further achieves the effect of improving the management efficiency of the BEP port.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明提供了一种虚拟扩展端口的指示方法和装置、存储介质。其中,该方法包括:接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,请求信息中携带有物理扩展端口的端口信息;创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息;发送身份信息和分配的扩展通道标识至接口扩展设备。

Description

虚拟扩展端口的指示方法和装置、存储介质
相关申请的交叉引用
本申请基于申请号为201610411088.5、申请日为2016年6月13日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的内容在此引入本申请作为参考。
技术领域
本发明涉及通信技术,具体而言,涉及一种虚拟扩展端口的指示方法和装置、存储介质。
背景技术
随着数据中心的快速发展,可通过虚拟化提高处理器的使用效率来进一步降低成本。随着云计算的发展,虚拟机的猛增,企业的数据中心也不可避免的产生了一些管理的难题,为了使网络技术的发展适应新的虚拟化技术趋势,电气和电子工程师协会(IEEE,Institute of Electrical and Electronics Engineers)组织针对数据中心虚拟机迁移等新技术提出了一系列新的802.1标准,包括拥塞通告(Congestion notification)IEEE 802.1Qau、增强传输选择技术(ETS,Enhanced Transmission Selection)IEEE 802.1Qaz、基于优先级的流控(PFC,Priority-based Flow Control)IEEE 802.1Qbb、边缘虚拟桥(Edge Virtual Bridging)802.1Qbg、虚拟桥接口扩展(Bridge Port Extension)802.1BR等。
扩展桥(Extended Birdge,又称纵向堆叠)使用802.1BR标准,纵向堆叠的体系结构一般包括2个重要的部分:控制网桥(CB,Controlling Bridge)和接口扩展设备(PE,Port Extended)。纵向堆叠可将远程交换机部署为CB, 将实体接入交换机或软件虚拟交换机部署为PE,通过设置CB的级联口和PE的上行口在CB和PE之间建立多个扩展通道(E-Channel,Extended Channel),CB负责为每一个PE端口生成对应的虚拟扩展接口(BEP,Bridge Extended Port),并分配对应的扩展通道标识(E-CID,E-channel Identifier),还负责转发单播报文,是多播转发的起点;PE不用进行媒体介入控制层(MAC,Media Access Control)学习,而根据E-CID进行转发,从而解决数据中心中由于虚拟机的激增而引发的管理难题。
在802.1BR标准中,规定了CB和PE使用链路层发现协议(LLDP,Link Layer Discovery Protocol)报文来发现对端设备,CB通过端口扩展控制和状态协议(PE CSP,Port Extender Control and Status Protocol)报文发现PE端口,创建对应的BEP口,并为端口分配E-CID,从而组建纵向堆叠网络。
以CB和1个PE之间创建2个扩展端口为例,如图1所示,交互过程主要包括以下步骤:
步骤S101,CB的一个端口通过LLDP协议发现对端PE设备,初始化一个内部接口扩展设备,并在该端口开启PE CSP协议,同样的,PE的一个端口通过LLDP协议发现对端CB设备,并在该端口开启PE CSP协议;
步骤S102,CB和PE通过对应的端口向对端发送CSP开启(Open)消息,并在收到对端发来的CSP Open消息后,向对端发送CSP Open reply(应答)消息;
步骤S103,CB向PE发送端口参数集(Port Parameters Set)消息,要求PE设置上行口的参数,PE设置完上行口参数后,会向CB发送Port Parameters Set Reply消息;
步骤S104,PE为本设备除上行端口外的2个端口依次向CB申请创建扩展端口,即PE通过上行口向CB先后发送扩展端口创建(Extended Port  Create)消息,来请求CB创建对应的扩展接口、E-channel,并将E-channel绑定到扩展接口;
步骤S105,CB收到Extended Port Create消息后,创建对应的BEP接口并分配E-CID,CB先后向PE发送Extended Port Create Reply消息;
步骤S106,PE收到Extended Port Create Reply消息,将CB分配的E-CID值与端口间的对应关系写入到PE中;
步骤S107,CB先后向PE发送两个Port Parameters Set消息,来设置PE上两个BEP口的参数,如虚拟局域网(VLAN,Virtual Local Area Network)、端口属性等信息;
步骤S108,PE收到Port Parameters Set消息中携带的参数信息,将对应端口设置完毕后向CB发送Port Parameters Set Reply消息。
其中,在步骤S104中,在CB收到的来自PE的Extended Port Create消息中含有命令(Command)类型-长度-值(TLV,Type-Length-Value),其索引(index)域用于表征对应的一个PE端口,此处的index域中含有12比特(bit)的端口序列号(PortNum)字段,用来表示端口,但802.1BR标准没有规定这12比特的PortNum字段的具体构成,各厂商一般给该字段赋予一个全局唯一标识的PE端口的、无具体意义的数字索引,根据这12比特的数字索引生成的BEP端口的端口名不含有PE端口的具体信息,比如一个PE上的port 1和port 2端口要创建BEP端口,则PE向CB发送2个PE CSP Extended Port Create消息,分别携带了对应PE端口的12比特数字索引。CB上根据收到的12比特数字索引生成2个BEP端口,BEP端口名称可能为BEP M、BEP N,并为BEP M和BEP N这2个端口分配相应的E-CID,其值可能为X和Y;CB将分配的E-CID值通过PE CSP Extended Port Create Reply消息通知PE,此时BEP端口创建成功。但是生成的BEP M和BEP N无任何实际意义,使用时必须以当初分配的E-CID值为索引分别在 CB和PE上进行查询,进行比较后才能找到PE上Port 1对应的CB上BEP M,Port 2对应的BEP N。
实际应用中,常常需要对BEP端口进行业务配置、管理、监控等操作,按照现有的端口解析方法进行操作时,操作较为繁琐,从而影响对BEP端口的配置、管理及监控效率。
针对相关技术中对BEP端口的管理效率较低的技术问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种虚拟扩展端口的指示方法和装置、存储介质,以至少解决相关技术中对BEP端口的管理效率较低的技术问题。
根据本发明实施例的一个方面,提供了一种虚拟扩展端口的指示方法,该方法包括:接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,其中,请求信息中携带有物理扩展端口的端口信息;创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息;发送身份信息和分配的扩展通道标识至接口扩展设备。
可选地,基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息包括:获取保存的身份信息生成方式;按照保存的身份信息,生成方式生成对应于创建的虚拟扩展端口的且携带物理扩展端口的端口信息的身份信息。
可选地,身份信息生成方式包括用户指定的生成方式和基于物理扩展端口的端口信息生成的方式,保存的身份信息生成方式为基于物理扩展端口的端口信息生成的方式,在生成创建的虚拟扩展端口的身份信息之后;该方法还包括:若接收到配置指令,则判断配置指令所指示的身份信息生成方式与保存的身份信息生成方式是否相同;在配置指令所指示的身份信 息生成方式与保存的身份信息生成方式不相同的情况下,将保存的身份信息生成方式配置为配置指令所指示的身份信息生成方式。
可选地,在将保存的身份信息生成方式配置为配置指令所指示的身份信息生成方式之后,该方法还包括:删除已创建的虚拟扩展端口和对应的扩展通道标识;发送指示删除扩展通道标识的信息至接口扩展设备。
可选地,物理扩展端口的端口信息包括端口位置信息。
根据本发明实施例的另一个方面,提供了一种虚拟扩展端口的指示装置,该装置包括:接收单元,配置为接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,其中,请求信息中携带有物理扩展端口的端口信息;创建单元,配置为创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;生成单元,配置为基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息;发送单元,配置为发送身份信息和分配的扩展通道标识至接口扩展设备。
可选地,生成单元包括:获取模块,配置为获取保存的身份信息生成方式;生成模块,配置为按照保存的身份信息生成方式生成对应于创建的虚拟扩展端口的且携带物理扩展端口的端口信息的身份信息。
可选地,身份信息生成方式包括用户指定的生成方式和基于物理扩展端口的端口信息生成的方式,保存的身份信息生成方式为基于物理扩展端口的端口信息生成的方式,该装置还包括:判断单元,配置为若接收到配置指令,则判断配置指令所指示的身份信息生成方式与保存的身份信息生成方式是否相同;配置单元,配置为在配置指令所指示的身份信息生成方式与保存的身份信息生成方式不相同的情况下,将保存的身份信息生成方式配置为配置指令所指示的身份信息生成方式。
可选地,该装置还包括:删除单元,配置为删除已创建的虚拟扩展端口和对应的扩展通道标识;发送单元,配置为发送指示删除扩展通道标识 的信息至接口扩展设备。
可选地,物理扩展端口的端口信息包括端口位置信息。
根据本发明的实施例的另一个方面,提供了一种可读存储介质,存储有可执行程序,所述可执行程序被处理器执行时实现本发明实施例提供的虚拟扩展端口的指示方法。
根据本发明的实施例的另一个方面,提供了一种信息提醒装置,包括:
存储器,用于存储可执行程序;
处理器,配置为运行所述存储器中存储的可执行程序时,执行发明实施例提供的虚拟扩展端口的指示方法。
在本发明实施例中,接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,请求信息中携带有物理扩展端口的端口信息;创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息;发送身份信息和分配的扩展通道标识至接口扩展设备,由于是基于物理扩展端口的端口信息生成的虚拟扩展端口的身份信息,接口扩展设备在接收到虚拟扩展端口(即BEP端口)的身份信息时即可确定对应的物理扩展端口,以便于管理,从而解决了相关技术中对BEP端口的管理效率较低的技术问题,实现了提高BEP端口的管理效率的技术效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是相关技术中生成虚拟扩展端口的流程图;
图2是根据本发明实施例的虚拟扩展端口的指示方法的流程图;
图3是根据本发明实施例的可选的虚拟扩展端口的指示方法的流程图;
图4是根据本发明实施例的一种网络设备的示意图;
图5是根据本发明实施例的虚拟扩展端口的指示装置的示意图;
图6是本发明实施例提供的虚拟扩展端口的指示装置的硬件结构示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
根据本发明实施例,提供了一种虚拟扩展端口的指示方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
将现有的遵循802.1BR协议标准对Extended Port Create消息中携带的12比特的PortNum字段不进行解析方式生成的扩展端口命名方式可简称为简单接口模式(Simple-Interface Mode),此模式生成的BEP端口名不含实际意义,需要用分配的E-CID查找PE上的对应端口,不便于对端口的管理,为了解决该问题,本发明实施例提出了如下方法来提高端口的管理效率。
图2是根据本发明实施例的虚拟扩展端口的指示方法的流程图,如图2所示,该方法包括如下步骤:
步骤S201,接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,其中,请求信息中携带有物理扩展端口的端口信息。
步骤S202,创建请求信息所请求创建的虚拟扩展端口,并为创建的虚 拟扩展端口分配扩展通道标识。
步骤S203,基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息。
步骤S204,发送身份信息和分配的扩展通道标识至接口扩展设备。
通过上述实施例,接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,请求信息中携带有物理扩展端口的端口信息;创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息;发送身份信息和分配的扩展通道标识至接口扩展设备,由于是基于物理扩展端口的端口信息生成的虚拟扩展端口的身份信息,接口扩展设备在接收到虚拟扩展端口(即BEP端口)的身份信息时即可确定对应的物理扩展端口,以便于管理,从而解决了相关技术中对BEP端口的管理效率较低的技术问题,实现了提高BEP端口的管理效率的技术效果。
可选地,上述步骤的执行主体可以为控制网桥等,但不限于此。
上述的虚拟扩展端口的身份信息是指用于标识虚拟扩展端口的身份的信息,身份信息包括但不局限于虚拟扩展端口的端口名;上述的物理扩展端口的端口信息包括但不局限于端口位置信息(如端口物理地址)。后续以端口名和端口位置信息为例详述本申请的实施例。
需要说明的是,上述的请求信息可以为Extended Port Create消息;发送身份信息和分配的扩展通道标识时,可以将信息携带于Extended Port Create Reply报文中。
在上述实施例中,基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息包括:获取保存的身份信息生成方式;按照保存的身份信息生成方式生成对应于创建的虚拟扩展端口的且携带物理扩展端口的端口信息的身份信息。保存的身份信息生成方式为基于物理扩展端口的端口信 息生成端口名的方式。
上述的虚拟扩展端口生成身份信息(即命名)的方式可称为详细接口命名方式(Detail-Interface Mode),在Extended Port Create消息中携带PE端口信息,例如端口物理位置信息,生成的BEP端口名中包含PE上具体端口的信息,例如物理位置信息。
可选地,身份信息生成方式包括用户指定的生成方式(可以是用户自定的生成方式,也可以是上述的简单接口命名方式,本申请对此不做限定)和基于物理扩展端口的端口信息生成的方式,保存的身份信息生成方式为基于物理扩展端口的端口信息生成的方式,在生成创建的虚拟扩展端口的身份信息之后,若接收到配置指令,则判断配置指令所指示的身份信息生成方式与保存的身份信息生成方式是否相同;在配置指令所指示的身份信息生成方式与保存的身份信息生成方式不相同的情况下,将保存的身份信息生成方式配置为配置指令所指示的身份信息生成方式。
采用详细接口命名方式,在接收到PE发送的Extended Port Create消息后生成带有PE物理端口位置的BEP端口名(即上述的虚拟扩展端口的身份信息)并分配E-CID(即扩展通道标识)。如果要切换到简单接口命名方式,则删除现有的BEP端口名及E-CID,重新要求PE发送Extended Port Create消息后,按简单接口命名方式重新生成BEP端口名称及E-CID。该方法可为用户提供便于实际商用的带有物理位置的BEP端口命名方式,也提供了满足不同厂商对接兼容性要求的简单化BEP端口命名方式,实现了为不同的用户提供有区别的服务,可使用户体验较好。
无论是处于简单接口方式模式还是详细接口命名方式下,均可以自由切换到另外一种方式重新生成BEP端口名,以实现为不同的用户提供有区别的服务,用户体验较好。下面结合图3详述本发明的实施例,如图3所示:
步骤S301,在CB上配置详细接口命名方式的BEP端口生成方式,并记录下该配置的方式类型。
例如,可以设置的BEP端口生成方式包括简单接口命名方式和详细接口命名方式。
步骤S302,CB接收来自PE的Extended Port Create消息。
步骤S303,CB对消息中Command TLV中的12比特数字索引进行解析。
步骤S304,CB读取BEP端口生成方式配置,如果是详细接口命名方式,则生成带PE物理端口位置的BEP端口名。
例如,生成带PE物理端口位置的BEP端口名,其格式包括但不限于如下形式:“BEP a/b/c/d/e”,其中,“a”代表PE-ID,即接口扩展设备的编号,“b”代表shelf-id,即机框的编号,“c”代表slot-id,即业务板卡所在的槽位的编号,“d”代表sub-slot-id,即子槽位的编号,“e”代表port-id,即端口序号。
步骤S305,CB对BEP端口分配E-CID。
步骤S306,CB将生成的BEP端口和E-CID对应关系以Extended Port Create Reply消息发给PE。
步骤S307,PE收到Extended Port Create Reply消息后将端口以及E-CID值对应关系记录到本地数据库中。
步骤S308,判断BEP口生成方式配置类型,若是简单接口命名方式则执行步骤S309。
可在CB上设置简单接口命名方式的BEP端口生成方式,并记录下该配置的方式类型。
步骤S309,CB检查现有BEP端口生成方式,如果不是简单接口命名方式则删除现有的BEP端口名以及E-CID。
可选地,在将保存的身份信息生成方式配置为配置指令所指示的身份信息生成方式之后,可删除已创建的虚拟扩展端口和对应的扩展通道标识;发送指示删除扩展通道标识的信息至接口扩展设备。具体可通过下述的步骤实现。
步骤S310,CB发送Extended Port删除(Delete)消息给PE。
步骤S311,PE删除本地端口以及E-CID信息,并重新发送Extended Port Create给CB。
步骤S312,CB读取BEP端口生成方式配置,如果是简单接口命名方式,则生成不带PE物理端口位置的BEP端口。
例如,生成不带PE物理端口位置的BEP端口,其格式可以为“BEP M”,但不限于此,“M”为CB分配给BEP端口的一个随机值。
步骤S313,CB对新生成BEP端口分配E-CID。
步骤S314,CB将新生成的BEP端口(或BEP端口名)和E-CID对应关系以Extended Port Create Reply消息发给PE。
步骤S315,PE收到Extended Port Create Reply消息后将端口以及E-CID对应关系记录到本地数据库中。
为实现上述方法,本发明还提供一种网络设备,如图4所示,该网络设备包括:BEP端口命名模块401、报文收发模块402、报文处理模块403、生成BEP端口模块404以及E-CID数据库模块405。
BEP端口命名模块401,配置为在CB上设置简单接口命名方式或详细接口命名方式,并记录下该配置的方式类型。
例如,可以设置的BEP端口生成方式包括802.1BR协议规定的普通的简单接口命名方式和本发明的详细接口命名方式。
报文收发模块402,配置为CB的级联口接收或者发送来自PE的Extended Port Create报文、Extended Port Create Reply报文和Extended Port  Delete报文。
报文处理模块403,配置为对报文收发模块402接收到的Extended Port Create、Extended Port Create Reply和Extended Port Delete报文进行处理。
生成BEP端口模块404,配置为根据BEP端口命名模块的配置方式生成BEP端口。
例如,生成带PE物理端口位置的BEP端口名,其格式包括但不限于如下形式:“BEP a/b/c/d/e”,其中,“a”代表PE-ID,即接口扩展设备的ID,“b”代表shelf-id,“c”代表slot-id,“d”代表sub-slot-id,“e”代表port-id;按简单接口命名方式生成不带PE物理端口位置的BEP端口,其格式包括但不限于如下格式:“BEP M”,M为CB上分配的一个随机值。
E-CID数据库模块405,配置为存储为生成的BEP端口分配的E-CID。
采用详细接口命名方式,在接收到PE发送的Extended Port Create消息后生成带有PE物理端口位置的BEP端口名(即上述的虚拟扩展端口的身份信息)并分配E-CID(即扩展通道标识)。如果要切换到简单接口命名方式,则删除现有的BEP端口名及E-CID,重新要求PE发送Extended Port Create消息后,按简单接口命名方式重新生成BEP端口名称及E-CID。该方法可为用户提供便于实际商用的带有物理位置的BEP端口命名方式,也提供了满足不同厂商对接兼容性要求的简单化BEP端口命名方式,实现了为不同的用户提供有区别的服务,可使用户体验较好。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质,如只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access  Memory)、磁碟、光盘中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
本发明实施例中还提供了一种虚拟扩展端口的指示装置。该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图5是根据本发明实施例的虚拟扩展端口的指示装置的示意图。如图5所示,该装置可以包括:接收单元51、创建单元52、生成单元53以及发送单元54。
接收单元51配置为接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,其中,请求信息中携带有物理扩展端口的端口信息。
创建单元52配置为创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识。
生成单元53配置为基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息。
发送单元54配置为发送身份信息和分配的扩展通道标识至接口扩展设备。
通过上述实施例,接收单元接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,请求信息中携带有物理扩展端口的端口信息;创建单元创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;生成单元基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息;发送单元发送身份信息和分配的扩展通道标识至接口扩展设备,由于是基于物理扩展端口的端口信息生成的虚拟 扩展端口的身份信息,接口扩展设备在接收到虚拟扩展端口(即BEP端口)的身份信息时即可确定对应的物理扩展端口,以便于管理,从而解决了相关技术中对BEP端口的管理效率较低的技术问题,实现了提高BEP端口的管理效率的技术效果。
可选地,上述装置可以应用在控制网桥等设备上,但不限于此。
上述的虚拟扩展端口的身份信息是指用于标识虚拟扩展端口的身份的信息,身份信息包括但不局限于虚拟扩展端口的端口名;上述的物理扩展端口的端口信息包括但不局限于端口位置信息。后续以端口名和端口位置信息为例详述本申请的实施例。
需要说明的是,上述的请求信息可以为Extended Port Create消息;发送身份信息和分配的扩展通道标识时,可以将信息携带于Extended Port Create Reply报文中。
在上述实施例中,生成单元包括:获取模块,配置为获取保存的身份信息生成方式;生成模块,配置为按照保存的身份信息生成方式生成对应于创建的虚拟扩展端口的且携带物理扩展端口的端口信息的身份信息。
上述的虚拟扩展端口生成身份信息(即命名)的方式可称为详细接口命名方式(Detail-Interface Mode),在Extended Port Create消息中携带PE端口信息,例如端口物理位置信息,生成的BEP端口名中包含PE上具体端口的信息,例如物理位置信息。
可选地,身份信息生成方式包括用户指定的生成方式和基于物理扩展端口的端口信息生成的方式,保存的身份信息生成方式为基于物理扩展端口的端口信息生成的方式,该装置还包括:判断单元,配置为若接收到配置指令,则判断配置指令所指示的身份信息生成方式与保存的身份信息生成方式是否相同;配置单元,配置为在配置指令所指示的身份信息生成方式与保存的身份信息生成方式不相同的情况下,将保存的身份信息生成方 式配置为配置指令所指示的身份信息生成方式。
可选地,该装置还包括:删除单元,配置为删除已创建的虚拟扩展端口和对应的扩展通道标识;发送单元,配置为发送指示删除扩展通道标识的信息至接口扩展设备。
采用详细接口命名方式,在接收到PE发送的Extended Port Create消息后生成带有PE物理端口位置的BEP端口名(即上述的虚拟扩展端口的身份信息)并分配E-CID。如果要切换到简单接口命名方式,则删除现有的BEP端口名及E-CID,重新要求PE发送Extended Port Create消息后,按简单接口命名方式重新生成BEP端口名称及E-CID。该方法可为用户提供便于实际商用的带有物理位置的BEP端口命名方式,也提供了满足不同厂商对接兼容性要求的简单化BEP端口命名方式,实现了为不同的用户提供有区别的服务,可使用户体验较好。
无论是处于简单接口方式模式还是详细接口命名方式下,均可以自由切换到另外一种方式重新生成BEP端口名,以实现为不同的用户提供有区别的服务,用户体验较好。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
本发明的实施例还提供了一种存储介质,可选地,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,其中,请求信息中携带有物理扩展端口的端口信息;
S2,创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;
S3,基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信 息;
S4,发送身份信息和分配的扩展通道标识至接口扩展设备。
可选地,存储介质还被设置为存储配置为执行以下步骤的程序代码:
S5,获取保存的身份信息生成方式;
S6,按照保存的身份信息生成方式生成对应于创建的虚拟扩展端口的且携带物理扩展端口的端口信息的身份信息。
可选地,在本发明实施例中,上述存储介质可以包括但不限于:U盘、ROM、RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本发明实施例中,处理器根据存储介质中已存储的程序代码执行:接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,其中,请求信息中携带有物理扩展端口的端口信息;创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息;发送身份信息和分配的扩展通道标识至接口扩展设备。
可选地,在本发明实施例中,处理器根据存储介质中已存储的程序代码执行:获取保存的身份信息生成方式;按照保存的身份信息生成方式生成对应于创建的虚拟扩展端口的且携带物理扩展端口的端口信息的身份信息。
可选地,本发明实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,在此不再赘述。
本发明的实施例还提供了一种虚拟扩展端口的指示装置,参见图6,图6是本发明实施例提供的虚拟扩展端口的指示装置的硬件结构示意图,包括:
包括:至少一个处理器601、存储器602、至少一个网络接口603。虚 拟扩展端口的指示装置中的各个组件通过总线系统604耦合在一起。可理解,总线系统604用于实现这些组件之间的连接通信。总线系统604除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统604。
可以理解,存储器602可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是ROM、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)。本发明实施例描述的存储器602旨在包括但不限于这些和任意其它适合类型的存储器。
本发明实施例中的存储器602用于存储各种类型的数据以支持虚拟扩展端口的指示装置的操作。这些数据的示例包括:用于在虚拟扩展端口的指示装置上操作的任何计算机程序,如操作系统6021和应用程序6022。其中,操作系统6021包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序6022可以包含各种应用程序,实现本发明实施例方法的程序可以包含在应用程序6022中。
上述本发明实施例揭示的方法可以应用于处理器601中,或者由处理器601实现。处理器601可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器601可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器601可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器 中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器602,处理器601读取存储器602中的信息,结合其硬件完成前述方法的步骤。
在示例性实施例中,虚拟扩展端口的指示装置可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)、通用处理器、控制器、微控制器(MCU,Micro Controller Unit)、微处理器(Microprocessor)、或其他电子元件实现,用于执行前述方法。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
本发明提供了一种虚拟扩展端口的指示方法和装置、存储介质。其中,该方法包括:接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口 的请求信息,请求信息中携带有物理扩展端口的端口信息;创建请求信息所请求创建的虚拟扩展端口,并为创建的虚拟扩展端口分配扩展通道标识;基于物理扩展端口的端口信息生成创建的虚拟扩展端口的身份信息;发送身份信息和分配的扩展通道标识至接口扩展设备。本发明解决了相关技术中对BEP端口的管理效率较低的技术问题,进而达到了提高BEP端口的管理效率的效果。

Claims (12)

  1. 一种虚拟扩展端口的指示方法,包括:
    接收请求信息,所述请求信息为接口扩展设备的物理扩展端口创建虚拟扩展端口,所述请求信息中携带有所述物理扩展端口的端口信息;
    创建所述请求信息所请求创建的虚拟扩展端口,并为所述创建的虚拟扩展端口分配扩展通道标识;
    基于所述物理扩展端口的端口信息,生成所述创建的虚拟扩展端口的身份信息;
    发送所述身份信息、以及分配的所述扩展通道标识至所述接口扩展设备。
  2. 根据权利要求1所述的方法,其中,所述基于所述物理扩展端口的端口信息生成所述创建的虚拟扩展端口的身份信息,包括:
    获取保存的身份信息生成方式;
    按照所述保存的身份信息生成方式,生成对应于所述创建的虚拟扩展端口、且携带所述物理扩展端口的端口信息的身份信息。
  3. 根据权利要求2所述的方法,其中,
    所述身份信息生成方式包括:用户指定的生成方式;基于物理扩展端口的端口信息生成的方式;
    所述保存的身份信息生成方式为基于物理扩展端口的端口信息生成的方式;
    所述在生成所述创建的虚拟扩展端口的身份信息之后,所述方法还包括:
    当接收到配置指令时,判断所述配置指令所指示的身份信息生成方式、与所述保存的身份信息生成方式是否相同;
    当所述配置指令所指示的身份信息生成方式、与所述保存的身份信息 生成方式不相同时,将所述保存的身份信息生成方式配置为所述配置指令所指示的身份信息生成方式。
  4. 根据权利要求3所述的方法,其中,在将所述保存的身份信息生成方式配置为所述配置指令所指示的身份信息生成方式之后,所述方法还包括:
    删除已创建的所述虚拟扩展端口和对应的所述扩展通道标识;
    发送指示删除所述扩展通道标识的信息至所述接口扩展设备。
  5. 根据权利要求1至4中任意一项所述的方法,其中,所述物理扩展端口的端口信息包括端口位置信息。
  6. 一种虚拟扩展端口的指示装置,包括:
    接收单元,配置为接收请求为接口扩展设备的物理扩展端口创建虚拟扩展端口的请求信息,其中,所述请求信息中携带有所述物理扩展端口的端口信息;
    创建单元,配置为创建所述请求信息所请求创建的虚拟扩展端口,并为所述创建的虚拟扩展端口分配扩展通道标识;
    生成单元,配置为基于所述物理扩展端口的端口信息生成所述创建的虚拟扩展端口的身份信息;
    发送单元,配置为发送所述身份信息和分配的所述扩展通道标识至所述接口扩展设备。
  7. 根据权利要求6所述的装置,其中,所述生成单元包括:
    获取模块,配置为获取保存的身份信息生成方式;
    生成模块,配置为按照所述保存的身份信息生成方式生成对应于所述创建的虚拟扩展端口的且携带所述物理扩展端口的端口信息的身份信息。
  8. 根据权利要求7所述的装置,其中,
    所述身份信息生成方式包括:用户指定的生成方式;基于物理扩展端 口的端口信息生成的方式;
    所述保存的身份信息生成方式为基于物理扩展端口的端口信息生成的方式;
    所述装置还包括:
    判断单元,配置为在生成所述创建的虚拟扩展端口的身份信息之后,当接收到配置指令时,判断所述配置指令所指示的身份信息生成方式与所述保存的身份信息生成方式是否相同;
    配置单元,配置为在所述配置指令所指示的身份信息生成方式与所述保存的身份信息生成方式不相同时,将所述保存的身份信息生成方式配置为所述配置指令所指示的身份信息生成方式。
  9. 根据权利要求8所述的装置,其中,所述装置还包括:
    删除单元,配置为删除已创建的所述虚拟扩展端口和对应的所述扩展通道标识;
    发送单元,配置为发送指示删除所述扩展通道标识的信息至所述接口扩展设备。
  10. 根据权利要求6至9中任意一项所述的装置,其中,所述物理扩展端口的端口信息包括端口位置信息。
  11. 一种可读存储介质,存储有可执行程序,所述可执行程序被处理器执行时实现权利要求1至5所述的虚拟扩展端口的指示方法。
  12. 一种信息提醒装置,包括:
    存储器,用于存储可执行程序;
    处理器,配置为运行所述可执行程序时,执行权利要求1至5所述的虚拟扩展端口的指示方法。
PCT/CN2017/084017 2016-06-13 2017-05-11 虚拟扩展端口的指示方法和装置、存储介质 WO2017215381A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610411088.5A CN107493181B (zh) 2016-06-13 2016-06-13 虚拟扩展端口的指示方法和装置
CN201610411088.5 2016-06-13

Publications (1)

Publication Number Publication Date
WO2017215381A1 true WO2017215381A1 (zh) 2017-12-21

Family

ID=60642402

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084017 WO2017215381A1 (zh) 2016-06-13 2017-05-11 虚拟扩展端口的指示方法和装置、存储介质

Country Status (2)

Country Link
CN (1) CN107493181B (zh)
WO (1) WO2017215381A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431119A (zh) * 2023-06-12 2023-07-14 上海鉴智其迹科技有限公司 软件组件端口创建方法、装置、电子设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274516B (zh) * 2017-12-22 2022-01-25 新华三技术有限公司 一种扩展网桥及其上线控制方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480412A (zh) * 2010-11-24 2012-05-30 中兴通讯股份有限公司 实现S-channel建立的方法和系统
CN102769558A (zh) * 2011-05-06 2012-11-07 中兴通讯股份有限公司 获知端口扩展拓扑信息的方法、系统和控制桥
US20140044129A1 (en) * 2012-08-10 2014-02-13 Duane Edward MENTZE Multicast packet forwarding in a network
US20150339249A1 (en) * 2014-05-21 2015-11-26 Dell Products L.P. Remote console access of port extenders
CN105162732A (zh) * 2015-06-30 2015-12-16 杭州华三通信技术有限公司 创建扩展端口的方法、装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8051211B2 (en) * 2002-10-29 2011-11-01 Cisco Technology, Inc. Multi-bridge LAN aggregation
KR100503422B1 (ko) * 2003-06-13 2005-07-22 한국전자통신연구원 이더넷 스위치, 포트다중화장치 및 방법
US8798064B2 (en) * 2011-06-06 2014-08-05 Broadcom Corporation Method and system of frame forwarding with link aggregation in distributed ethernet bridges
US9077650B2 (en) * 2012-05-31 2015-07-07 Broadcom Corporation Multi-homing in an extended bridge
CN104468854B (zh) * 2013-09-13 2017-10-27 新华三技术有限公司 一种纵向融合架构vcf的构建方法及设备
US9473425B2 (en) * 2013-12-06 2016-10-18 Dell Products L.P. Systems and methods for integrating wireless local area networks on extended bridges

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480412A (zh) * 2010-11-24 2012-05-30 中兴通讯股份有限公司 实现S-channel建立的方法和系统
CN102769558A (zh) * 2011-05-06 2012-11-07 中兴通讯股份有限公司 获知端口扩展拓扑信息的方法、系统和控制桥
US20140044129A1 (en) * 2012-08-10 2014-02-13 Duane Edward MENTZE Multicast packet forwarding in a network
US20150339249A1 (en) * 2014-05-21 2015-11-26 Dell Products L.P. Remote console access of port extenders
CN105162732A (zh) * 2015-06-30 2015-12-16 杭州华三通信技术有限公司 创建扩展端口的方法、装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431119A (zh) * 2023-06-12 2023-07-14 上海鉴智其迹科技有限公司 软件组件端口创建方法、装置、电子设备及存储介质
CN116431119B (zh) * 2023-06-12 2023-08-29 上海鉴智其迹科技有限公司 软件组件端口创建方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN107493181B (zh) 2022-01-28
CN107493181A (zh) 2017-12-19

Similar Documents

Publication Publication Date Title
US20200195511A1 (en) Network management method and related device
US10419531B2 (en) Method for setting gateway device identity, and management gateway device
EP3070887B1 (en) Communication method, device and system for virtual extensible local area network
US11265210B2 (en) Network slice configuration method, apparatus, and system
CN107733799B (zh) 一种报文传输方法和装置
US10924966B2 (en) Management method, management unit, and system
WO2019062994A1 (zh) 网络切片的管理方法、设备及系统
US20190261186A1 (en) Network Slice Management Method, Management Unit, and System
US20170373931A1 (en) Method for updating network service descriptor nsd and apparatus
WO2017206572A1 (zh) 一种多dhcp服务器网络环境下的ip地址管理方法和dhcp客户机
EP3703321B1 (en) Configuration method and apparatus
CN109417492B (zh) 一种网络功能nf管理方法及nf管理设备
CN112953774B (zh) 一种网络拓扑生成方法、系统、设备及计算机存储介质
WO2020020096A1 (zh) 一种群组创建方法、装置及系统
US20230161541A1 (en) Screen projection method and system
CN112533177A (zh) 一种提供、发现移动边缘计算的方法及设备、装置、介质
WO2019062995A1 (zh) 网络管理方法、设备及系统
WO2017215381A1 (zh) 虚拟扩展端口的指示方法和装置、存储介质
EP3806389A1 (en) Virtual subnet constructing method and device, and storage medium
CN108881460B (zh) 一种云平台统一监控的实现方法和实现装置
EP3503484A1 (en) Message transmission method, device and network system
CN110636149B (zh) 远程访问方法、装置、路由器及存储介质
CN107534678B (zh) 建立vnfm与vim之间的连接的方法、装置及系统
CN113994649A (zh) BLE Mesh设备的访问方法、装置、设备及存储介质
WO2012167657A1 (zh) 一种实现事件转发的方法及通用信息模型cim服务器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17812492

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17812492

Country of ref document: EP

Kind code of ref document: A1