CN107547453B - A kind of method and terminal for realizing switch port polymerization - Google Patents

A kind of method and terminal for realizing switch port polymerization Download PDF

Info

Publication number
CN107547453B
CN107547453B CN201610463264.XA CN201610463264A CN107547453B CN 107547453 B CN107547453 B CN 107547453B CN 201610463264 A CN201610463264 A CN 201610463264A CN 107547453 B CN107547453 B CN 107547453B
Authority
CN
China
Prior art keywords
port
virtual
polymerization
server end
link
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
CN201610463264.XA
Other languages
Chinese (zh)
Other versions
CN107547453A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201610463264.XA priority Critical patent/CN107547453B/en
Publication of CN107547453A publication Critical patent/CN107547453A/en
Application granted granted Critical
Publication of CN107547453B publication Critical patent/CN107547453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of methods for realizing switch port polymerization, which comprises creates the physics aggregation port of physical port, wherein the physical port is unique in the exchange generator terminal overall situation;Member port group is correspondingly created according to physics aggregation port;The port being connected with server end is added into the member port group of creation, the physical link of configuration physics aggregation port polymerize ID;At least one virtual aggregation port is correspondingly created according to physics aggregation port, and configures the virtual link polymerization ID of virtual aggregation port;If receiving the polymerization connection request from server end, the distribution virtual aggregation port ID is polymerize to polymerize connection with server end formation according to physical link.The present invention enables the server for having been turned on SR-IOV function to complete the high-availability configuration with interchanger by way of link aggregation, and the virtual aggregation port on interchanger is polymerize with the aggregation port of server, realizes one-to-many polymerization purpose.

Description

A kind of method and terminal for realizing switch port polymerization
Technical field
The present invention relates to field of communication technology more particularly to a kind of methods and terminal for realizing switch port polymerization.
Background technique
Currently, (Single-Root I/O Virtualization, one kind are virtual by the network interface card starting SR-IOV of server end Change technology) function when can not with exchange generator terminal carry out link aggregation.Because not supporting starting SR-IOV function in linux kernel The server end network interface card of energy carries out link aggregation with generator terminal is exchanged, and leads to the server for having been turned on SR-IOV function, can not The high-availability configuration with interchanger is completed by way of link aggregation.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and terminal for realizing switch port polymerization, can make to have opened The server of dynamic SR-IOV function can complete the high-availability configuration with interchanger by way of link aggregation;In addition, logical It crosses and polymerize the virtual aggregation port on interchanger with the aggregation port in server, realize one-to-many polymerization purpose.
A method of realizing switch port polymerization, which comprises
Create the physics aggregation port of physical port, wherein the physical port is unique in the exchange generator terminal overall situation;
Member port group is correspondingly created according to the physics aggregation port;
The port being connected with server end is added into the member port group of the creation, and configures the physics polymerization The physical link of port polymerize ID;
At least one virtual aggregation port is correspondingly created according to the physics aggregation port, and configures the virtual aggregation The virtual link of port polymerize ID;
If receiving the polymerization connection request from server end, ID is polymerize according to the physical link and distributes virtual aggregation Port is to polymerize connection with server end formation.
Specifically, the physical link of the configuration physics aggregation port polymerize ID, specifically include: acquisition and server The port numbers of the connected port in end;The physical link polymerization ID is automatically generated according to the port numbers and preset algorithm.
Specifically, the virtual link of the configuration virtual aggregation port polymerize ID, specifically include, according to the physics Link aggregation ID automatically generates the virtual link polymerization ID.
Specifically, described polymerize the distribution virtual aggregation port ID according to the physical link to polymerize with server end formation Connection, specifically includes: according to the polymerization connection request of server end, order-assigned virtual aggregation port and server end virtual machine In aggregation port formed polymerization logic;It polymerize company according to what polymerization logic completed the virtual aggregation port and server end It connects.
Specifically, described polymerize the distribution virtual aggregation port ID according to the physical link to polymerize with server end formation After connection, further includes: carry out dynamic link selection according to the port being connected with server end.
A kind of terminal, comprising:
First creation module, for creating the physics aggregation port of physical port, wherein the physical port is in interchanger It is unique for holding the overall situation;
Second creation module, for correspondingly creating member port group according to the physics aggregation port;
Module being added, for being added the port being connected with server end into the member port group of the creation, and matching Set the physical link polymerization ID of the physics aggregation port;
Third creation module, for correspondingly creating at least one virtual aggregation port according to the physics aggregation port, And configure the virtual link polymerization ID of the virtual aggregation port;
It polymerize link block, if for receiving the polymerization connection request from server end, according to the physical link The distribution virtual aggregation port polymerization ID is to polymerize connection with server end formation.
Specifically, the addition module, further includes: module is obtained, for obtaining the end for the port being connected with server end Slogan;First automatically-generating module polymerize ID for automatically generating the physical link according to the port numbers and preset algorithm.
Specifically, the third creation module, further includes, the second automatically-generating module, for according to the physical link Polymerization ID automatically generates the virtual link polymerization ID.
Specifically, the polymerization link block, also particularly useful for the polymerization connection request according to server end, order-assigned Virtual aggregation port polymerize logic with the aggregation port formation in server end virtual machine;It is completed according to polymerization logic described virtual Aggregation port polymerize connection with server end.
Specifically, the terminal further includes, dynamic link selecting module, for according to the port being connected with server end into Mobile state link selection.
In conclusion the invention has the following advantages: the present invention passes through the physics in interchanger creation physical port Aggregation port, and at least one virtual aggregation port is correspondingly created according to the physics aggregation port, come when interchanger receives From the polymerization connection request of server end, the polymerization connection at switch-to-server end is realized, to make to have been turned on SR-IOV function The server of energy can complete the high-availability configuration with interchanger by way of link aggregation;In addition, by by interchanger On virtual aggregation port polymerize with the aggregation port in server, realize one-to-many polymerization purpose.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic flow diagram for method for realizing switch port polymerization that preferred embodiment provides.
Fig. 2 is a kind of functional block diagram of terminal provided in an embodiment of the present invention.
Fig. 3 is a kind of another functional block diagram of terminal provided in an embodiment of the present invention.
Fig. 4 is a kind of another functional block diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the invention provides it is a kind of realize switch port polymerization method, this method include with Lower step:
Step S100 creates the physics aggregation port of physical port in exchange generator terminal.In this step, the physical port It is unique in the overall situation of interchanger.
Step S200 correspondingly creates member port group according to the physics aggregation port created.
Specifically, in this step, the member port group created refers to configuring one group of port in exchange generator terminal, it is used to The specified port being connected with server end is added in the member port group, can be convenient the management of port and can be united One configuration.
The port being connected with server end is added into the member port group created, and configures physics by step S300 The physical link of aggregation port polymerize ID.
Specifically, in this step, for having been turned on virtualization technology (Single-Root I/O Virtualization, SR-IOV) server end of function need to pass through multiple connecting pins in the practical connection with interchanger Mouth (such as port1, port2 etc.) and interchanger realize physical connection, therefore the port being connected with server end is added to institute In the member port group of creation, when polymerizeing connection, while also guaranteeing the normal physical connection in switch-to-server end.Into one Step, the physical link of the configuration physics aggregation port polymerize ID, specifically includes: by obtaining switch-to-server end phase The port numbers of port even, and physical link polymerization is automatically generated in exchange generator terminal according to acquired port numbers and preset algorithm ID;Wherein, the preset algorithm in the embodiment of the present invention is standard dynamic link road aggregation protocol (Link Aggregation Control Protocol, LACP) in link aggregation algorithm.
Step S400 according at least one virtual aggregation port of the creation of physics aggregation port correspondingly, and is configured virtual The virtual link of aggregation port polymerize ID.
Specifically, in this step, the virtual link of the configuration virtual aggregation port polymerize ID, specifically include, according to Physical link polymerization ID automatically generates virtual link polymerization ID, and exactly, physics aggregation port can create one or more The virtual link polymerization ID of a virtual aggregation port, each virtual aggregation port is carried out on the basis of physical link polymerize ID Corresponding parameter factors to be added to be formed, each virtual aggregation port is created in the example of physics aggregation port, Therefore, parameter factors are added by the physical link polymerization ID of physics aggregation port, parameter factors can be by: 1,2,3 etc. I Uncle's number composition thus can configure virtual link to each virtual aggregation port under physics aggregation port and polymerize ID.
Step S500 thens follow the steps S600 if receiving the polymerization connection request from server end;Otherwise step is executed Rapid S800.
Specifically, in this step, in the polymerization connection request that server end is sent, carrying server end virtual machine Aggregation port information, the aggregation port information of server end virtual machine include server end virtual machine aggregation port ID and Member port information in server end virtual machine, exactly, the member port information in server end virtual machine is specially The port information for each virtual functions (Virtual Function, VF) being connect with server end virtual machine.
Step S600 polymerize the distribution virtual aggregation port ID according to physical link to polymerize connection with server-side formation.
Specifically, in this step, it is described according to the physical link polymerize the distribution virtual aggregation port ID with service Device end forms polymerization connection, specifically includes: according to the polymerization connection request of server end, order-assigned virtual aggregation port and clothes The aggregation port being engaged in the virtual machine of device end forms polymerization logic;The virtual aggregation port and server are completed according to polymerization logic The polymerization at end connects.It should be noted that the aggregation port in server end virtual machine is that server end has been turned on SR-IOV The aggregation port of fictitious host computer creation virtual functions (Virtual Function, VF) of function;Interchanger comes from receiving After the polymerization connection request of server end, need to virtual aggregation port formed polymerize connection, according to polymerize connection needs, with it is every When a virtual aggregation port trunking connects, the creation sequence according to every virtual aggregation port is allocated and is polymerize connection, is protected The formation of card polymerization logic is regular.Meanwhile realizing the one-to-many polymerization purpose at switch-to-server end.
Step S700 after completing above-mentioned polymerization connection, will carry out dynamic link choosing according to the port being connected with server end It selects.
Specifically, in this step, the association attributes in port being connected according to switch-to-server end carry out dynamic Link selection is exactly by standard dynamic link road aggregation protocol (Link Aggregation Control Protocol, LACP) according to the automatic selective polymerization port of connection status at switch-to-server end, it is more precisely, right In order-assigned polymerization connection switch-to-server end, as server end aggregation port AGG1 order-assigned respectively with Virtual aggregation port VAGG1, VAGG2, VAGG3 of interchanger polymerize connection, when a certain virtual aggregation port of exchange generator terminal (such as VAGG1) since network failure (such as network configuration error) causes the road to polymerize connection failure, then it is virtual to may be selected by other Aggregation port (such as VAGG2, VAGG3) carries out dynamic link selection;This step can guarantee that link can be according to fault condition (such as Network configuration error, route damage etc.) automatically switched.
Step S800 terminates.
As shown in Fig. 2, corresponding a kind of above-mentioned method for realizing switch port polymerization, the present invention also propose a kind of terminal, The terminal applies are in interchanger, or the network equipment with switch function.The terminal includes: the first creation module 010, second Module 030, third creation module 040, polymerization link block 050 and dynamic link selecting module 060 is added in creation module 020.
Wherein the first creation module 010, for creating the physics aggregation port of physical port, wherein the physical port It is unique in the exchange generator terminal overall situation.
Second creation module 020, for correspondingly creating member port group according to the physics aggregation port.Module is added 030, for being added the port being connected with server end into the member port group of the creation, and configure the physics polymerization The physical link of port polymerize ID.
Third creation module 040, for correspondingly creating at least one virtual aggregation end according to the physics aggregation port Mouthful, and configure the virtual link polymerization ID of the virtual aggregation port.
It polymerize link block 050, if for receiving the polymerization connection request from server end, according to the physics chain The road distribution virtual aggregation port polymerization ID is to polymerize connection with server end formation.
Dynamic link selecting module 060, for carrying out dynamic link selection according to the port being connected with server end.
Specifically, as shown in figure 3, module 030 is added, further includes: module 031 is obtained, for obtaining and server end phase The port numbers of port even;First automatically-generating module 032, it is described for being automatically generated according to the port numbers and preset algorithm Physical link polymerize ID.
Specifically, the second automatically-generating module 041 is used for basis as shown in figure 4, third creation module 040, further includes The physical link polymerization ID automatically generates the virtual link polymerization ID.
Specifically, polymerization link block 050, also particularly useful for the polymerization connection request according to server end, order-assigned Virtual aggregation port polymerize logic with the aggregation port formation in server end virtual machine;It is completed according to polymerization logic described virtual Aggregation port polymerize connection with server end.
Compared with prior art, pass through the beneficial effects of the present invention are: the present invention and create the object of physical port in interchanger Aggregation port is managed, and at least one virtual aggregation port is correspondingly created according to the physics aggregation port, when interchanger receives Polymerization connection request from server end realizes the polymerization connection at switch-to-server end, to make to have been turned on SR-IOV The server of function can complete the high-availability configuration with interchanger by way of link aggregation;In addition, by that will exchange Virtual aggregation port on machine is polymerize with the aggregation port in server, realizes one-to-many polymerization purpose.
The above is a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, any ripe It knows those skilled in the art in the technical scope disclosed by the present invention, various equivalent modifications can be readily occurred in or replaces It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of method for realizing switch port polymerization, which is characterized in that the described method includes:
Create the physics aggregation port of physical port, wherein the physical port is unique in the exchange generator terminal overall situation;
Member port group is correspondingly created according to the physics aggregation port;
The port being connected with server end is added into the member port group of the creation, and configures the physics aggregation port Physical link polymerize ID;
At least one virtual aggregation port is correspondingly created according to the physics aggregation port, and configures the virtual aggregation port Virtual link polymerize ID;
If receiving the polymerization connection request from server end, ID is polymerize according to the virtual link and distributes virtual aggregation port To polymerize connection with server end formation.
2. the method as described in claim 1, which is characterized in that the physical link polymerization of the configuration physics aggregation port ID is specifically included:
Obtain the port numbers for the port being connected with server end;
The physical link polymerization ID is automatically generated according to the port numbers and preset algorithm.
3. the method as described in claim 1, which is characterized in that the virtual link polymerization of the configuration virtual aggregation port ID is specifically included, and is polymerize ID according to the physical link and is automatically generated the virtual link polymerization ID.
4. the method as described in claim 1, which is characterized in that described to polymerize ID distribution virtual aggregation according to the virtual link Port is specifically included with polymerizeing connection with server end formation:
According to the polymerization connection request of server end, order-assigned virtual aggregation port polymerize end with server end virtual machine Mouth forms polymerization logic;
It polymerize connection according to what polymerization logic completed the virtual aggregation port and server end.
5. the method as described in claim 1, which is characterized in that described to polymerize ID distribution virtual aggregation according to the virtual link After port is to polymerize connection with server end formation, further includes: carry out dynamic link choosing according to the port being connected with server end It selects.
6. a kind of terminal characterized by comprising
First creation module, for creating the physics aggregation port of physical port, wherein the physical port is complete in exchange generator terminal Office is unique;
Second creation module, for correspondingly creating member port group according to the physics aggregation port;
Module being added, for being added the port being connected with server end into the member port group of the creation, and configuring institute State the physical link polymerization ID of physics aggregation port;
Third creation module for correspondingly creating at least one virtual aggregation port according to the physics aggregation port, and is matched Set the virtual link polymerization ID of the virtual aggregation port;
It polymerize link block, if polymerizeing for receiving the polymerization connection request from server end according to the virtual link ID distributes virtual aggregation port to polymerize connection with server end formation.
7. terminal as claimed in claim 6, which is characterized in that the addition module, further includes: module is obtained, for obtaining The port numbers for the port being connected with server end;First automatically-generating module, for according to the port numbers and preset algorithm from It is dynamic to generate the physical link polymerization ID.
8. terminal as claimed in claim 6, which is characterized in that the third creation module further includes that second automatically generates mould Block automatically generates the virtual link polymerization ID for polymerizeing ID according to the physical link.
9. terminal as claimed in claim 6, which is characterized in that the polymerization link block, also particularly useful for according to server The polymerization connection request at end, order-assigned virtual aggregation port polymerize with the aggregation port formation in server end virtual machine to be patrolled Volume;It polymerize connection according to what polymerization logic completed the virtual aggregation port and server end.
10. terminal as claimed in claim 6, which is characterized in that the terminal further includes that dynamic link selecting module is used for Dynamic link selection is carried out according to the port being connected with server end.
CN201610463264.XA 2016-06-23 2016-06-23 A kind of method and terminal for realizing switch port polymerization Active CN107547453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610463264.XA CN107547453B (en) 2016-06-23 2016-06-23 A kind of method and terminal for realizing switch port polymerization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610463264.XA CN107547453B (en) 2016-06-23 2016-06-23 A kind of method and terminal for realizing switch port polymerization

Publications (2)

Publication Number Publication Date
CN107547453A CN107547453A (en) 2018-01-05
CN107547453B true CN107547453B (en) 2019-12-03

Family

ID=60960693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610463264.XA Active CN107547453B (en) 2016-06-23 2016-06-23 A kind of method and terminal for realizing switch port polymerization

Country Status (1)

Country Link
CN (1) CN107547453B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11245644B2 (en) * 2018-01-19 2022-02-08 Super Micro Computer, Inc. Automatic multi-chassis link aggregation configuration
CN114697949B (en) * 2018-06-04 2023-08-01 柏思科技有限公司 Method and system for using remote subscriber identity module at device
CN109327386B (en) * 2018-10-24 2021-12-07 深圳市共进电子股份有限公司 Link aggregation method, device, equipment and readable storage medium
CN112953824B (en) * 2021-01-28 2022-03-29 新华三信息安全技术有限公司 Link aggregation configuration method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992729A (en) * 2005-12-27 2007-07-04 国际商业机器公司 Data processing system and method
CN104852869A (en) * 2014-02-14 2015-08-19 杭州华三通信技术有限公司 Port aggregation method and device
CN105515802A (en) * 2014-09-22 2016-04-20 杭州华三通信技术有限公司 Network virtualization method and network virtualization apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8582423B2 (en) * 2010-08-04 2013-11-12 Alcatel Lucent Multi-chassis inter-process communication
US10476698B2 (en) * 2014-03-20 2019-11-12 Avago Technologies International Sales Pte. Limited Redundent virtual link aggregation group

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992729A (en) * 2005-12-27 2007-07-04 国际商业机器公司 Data processing system and method
CN104852869A (en) * 2014-02-14 2015-08-19 杭州华三通信技术有限公司 Port aggregation method and device
CN105515802A (en) * 2014-09-22 2016-04-20 杭州华三通信技术有限公司 Network virtualization method and network virtualization apparatus

Also Published As

Publication number Publication date
CN107547453A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107547453B (en) A kind of method and terminal for realizing switch port polymerization
CN105099789B (en) A kind of network element updating method and apparatus
CN107135134B (en) Private network cut-in method and system based on virtual switch and SDN technology
CN104582004B (en) WLAN layering group network systems and method based on SDN
CN108713309A (en) SD-WAN system, use method of SD-WAN system and related device
ES2827501T3 (en) Network service and network management device configuration method
CN107846313B (en) A kind of method and the network equipment of the generation of network service moulding plate
CN107222324A (en) The business collocation method and device of network service
CN103441935B (en) Automatically method and the device of the syntople of identified server and access switch
CN107306201A (en) Virtualize the dispositions method and deployment system of network
CN107544841A (en) Live migration of virtual machine method and system
CN108809794A (en) Transmission net virtual network creation method and device based on SDN and transmission network system
CN109391969A (en) Network management and system
CN105429811A (en) Network management system and method
CN108075927A (en) Network-building method, privately owned cloud platform and storage medium
CN106713010B (en) A kind of communication means and system of avionics network system
CN105991315A (en) Link protection method applied to SDN (software defined network), switching device and network controller
CN109379239A (en) The method and device of access switch is configured in a kind of OpenStack environment
CN116319296A (en) Method and device for deploying data centers in cross-SD-WAN fusion mode
CN105099743B (en) A kind of train redundancy Dynamic Configuration and system
CN104104594B (en) VSU protocol massages are sent and method of reseptance, equipment and system
CN110267130A (en) A kind of remote configuring method and device of the optical network unit based on SDN
CN110233799A (en) A kind of method and communication equipment of port configuration
CN104065664A (en) Cloud server authentication system
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment

Legal Events

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