CN107306193B - Switch port information sensing method and device based on SDN network and terminal equipment - Google Patents

Switch port information sensing method and device based on SDN network and terminal equipment Download PDF

Info

Publication number
CN107306193B
CN107306193B CN201610241280.4A CN201610241280A CN107306193B CN 107306193 B CN107306193 B CN 107306193B CN 201610241280 A CN201610241280 A CN 201610241280A CN 107306193 B CN107306193 B CN 107306193B
Authority
CN
China
Prior art keywords
port
switch
information
aggregation
tunnel
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
CN201610241280.4A
Other languages
Chinese (zh)
Other versions
CN107306193A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610241280.4A priority Critical patent/CN107306193B/en
Priority to PCT/CN2017/077550 priority patent/WO2017181807A1/en
Publication of CN107306193A publication Critical patent/CN107306193A/en
Application granted granted Critical
Publication of CN107306193B publication Critical patent/CN107306193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/253Routing or path finding in a switch fabric using establishment or release of connections between ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a switch port information sensing method and device based on an SDN network and terminal equipment. The method comprises the following steps: receiving logical port information sent by a switch through a port synchronization message, wherein the logical port information comprises: extension field information for accessing an SDN network; and sensing the logical port in the switch according to the logical port information, and correspondingly controlling the logical port according to the application requirement. The method realizes flexible perception and application of the controller to the switch logic port information, and has the advantages of simple configuration, convenient modification and high practicability.

Description

Switch port information sensing method and device based on SDN network and terminal equipment
Technical Field
The invention relates to the technical field of communication, in particular to a switch port information sensing method and device based on an SDN network and terminal equipment.
Background
SDN (Software Defined Network) is a hot technology of current communication field research. The SDN includes two parts, i.e., a Controller (C) of a control plane and a Switch (SW) of a forwarding plane. According to the definition of the current SDN technology, a control instruction is issued between the controller and the switch through an OPENFLOW protocol to guide the forwarding of data flow on the switch.
At present, switches supporting the OPENFLOW protocol are divided into OPENFLOW-Only and OPENFLOW-Hybrid according to whether the switches are compatible with the traditional switch processing method or not. The OPENFLOW-Only switch supports OPENFLOW pipelining Only. The OPENFLOW-Hybrid switch supports not only OPENFLOW pipelining but also conventional ethernet switching operations. However, part of ports of the OPENFLOW-Hybrid switch may not be added into the SDN domain, and under the prospect that the SDN network is continuously upgraded and expanded and the networking may be adjusted, a demand scenario that a logical port of the OPENFLOW-Hybrid switch, which is not in the SDN domain, is modified to be added into the SDN domain and is controlled by the controller may occur.
In the related art, in order to meet the complex service requirement of the SDN network, the OPENFLOW protocol describes that the switch supports relevant information of logic terminals such as a TUNNEL portal, an LAG (Link Aggregation Group) Aggregation portal, and an LOOPBACK portal. However, the OPENFLOW protocol does not describe how these logical port information should be specifically passed between the controller and the switch. That is, the existing OPENFLOW protocol does not provide specific description and support for the application of the logical port, so that many requirements in the SDN network cannot be realized under the existing protocol.
Therefore, a method for enabling a controller to sense more complex information types and more detailed information contents is needed, so that the logical port information sensed by the controller is variable and expandable for different service requirements.
Disclosure of Invention
The present invention aims to solve at least one of the above-mentioned technical problems to a certain extent.
Therefore, a first objective of the present invention is to provide a switch port information sensing method based on an SDN network, which realizes flexible sensing and application of a controller to switch logical port information, and has the advantages of simple configuration, convenient modification, and high practicability.
The second purpose of the present invention is to provide a switch port information awareness apparatus based on an SDN network.
A third object of the present invention is to provide a terminal device.
To achieve the above object, a switch port information awareness method based on an SDN network according to an embodiment of the first aspect of the present invention includes the following steps: receiving logical port information sent by a switch through a port synchronization message, wherein the logical port information comprises: extension field information for accessing an SDN network; and sensing the logic port in the switch according to the logic port information, and correspondingly controlling the logic port according to application requirements.
According to the switch port information sensing method based on the SDN, the logic port information sent by the switch through the port synchronization message is received, and the logic port in the switch is sensed according to the extension field information and the like accessed to the SDN in the logic port information, so that the logic port is correspondingly controlled according to the application requirement. The method specifically describes the logic port of the switch through the logic port information, so as to sense the logic port of the switch according to the logic port information and provide support for the requirement of the switch, thereby realizing flexible sensing and application of the controller to the logic port information of the switch, and having simple configuration, convenient modification and high practicability.
In addition, in an embodiment of the present invention, the extension field information for accessing the SDN network includes: a logical port number field, a port type description field, a port additional information field.
In an embodiment of the present invention, the port type description field is an aggregated port type, and the receiving of the logical port information sent by the switch through the port synchronization message includes: receiving aggregation port addition information sent by a switch through a port synchronization message; the sensing the logical port in the switch according to the logical port information and correspondingly controlling the logical port according to the application requirement includes: sensing an aggregation port of the switch according to the aggregation port adding information, and establishing a topological relation of the aggregation port; and according to the topological relation of the aggregation port, measuring and calculating the forwarding cost and the quality performance of the aggregation link, and determining the switching strategy of the service path.
In one embodiment of the present invention, the aggregation port addition information includes: aggregation mode, physical member port, current member port, whether rapid detection is supported, LACP detection period, and load sharing strategy.
In one embodiment of the invention, the method further comprises: receiving a message which is sent by the switch and carries the switching state of the aggregation port; and identifying the aggregation port switched on the switch, and re-determining the forwarding strategy of the service path.
In one embodiment of the invention, the method further comprises: receiving a message which is sent by the switch and carries the failure state of the aggregation port; and identifying the fault state of the aggregation link between the switches, deleting the aggregation link, and re-determining the forwarding strategy of the service path.
In an embodiment of the present invention, the port type description field is a tunnel port type, and the receiving of the logical port information sent by the switch through the port synchronization message includes: receiving tunnel port addition information sent by a switch through a port synchronization message; the sensing the logical port in the switch according to the logical port information and correspondingly controlling the logical port according to the application requirement includes: sensing the tunnel port of the switch according to the tunnel port adding information; identifying an operation and maintenance access node corresponding to the tunnel port through the adding information of the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port; and mirroring the service flow of the switch to the operation and maintenance access node through the operation and maintenance service channel.
In an embodiment of the present invention, the tunnel port addition information includes: the destination address of the tunnel port, VPN route forwarding information, whether the tunnel port supports the authentication key and serial number information.
In an embodiment of the present invention, the identifying, by the addition information of the tunnel port, an operation and maintenance access node corresponding to the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port includes: checking and judging the safety of the tunnel port according to whether the tunnel port supports the authentication key and the serial number; and if the tunnel port is safe, identifying the safety of the operation and maintenance access node corresponding to the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port.
In order to achieve the above object, a switch port information awareness apparatus based on an SDN network according to a second aspect of the present invention includes a receiving module, configured to receive logical port information sent by a switch through a port synchronization message, where the logical port information includes: extension field information for accessing an SDN network; and the control module is used for sensing the logic port in the switch according to the logic port information and correspondingly controlling the logic port according to application requirements.
According to the switch port information sensing device based on the SDN network, the logic port information sent by the switch through the port synchronization message is received, and the logic port in the switch is sensed according to the extension field information and the like accessed to the SDN network in the logic port information, so that the logic port is correspondingly controlled according to the application requirement. The device carries out concrete description to the logic port of switch through logic port information to according to the logic port of this logic port information perception switch, and for the demand of switch provides the support, realized the nimble perception and the application of controller to switch logic port information, and the configuration is simple, and it is convenient to reform transform, and the practicality is high.
In addition, in an embodiment of the present invention, the extension field information for accessing the SDN network includes: a logical port number field, a port type description field, a port additional information field.
In an embodiment of the present invention, the port type description field is an aggregated port type, and the receiving module is configured to: receiving aggregation port addition information sent by a switch through a port synchronization message; the control module includes: the first establishing unit is used for sensing the aggregation port of the switch according to the aggregation port adding information and establishing a topological relation of the aggregation port; and the determining unit is used for measuring and calculating the forwarding cost and the quality performance of the aggregation link according to the topological relation of the aggregation port and determining the switching strategy of the service path.
In one embodiment of the present invention, the aggregation port addition information includes: aggregation mode, physical member port, current member port, whether rapid detection is supported, LACP detection period, and load sharing strategy.
In an embodiment of the present invention, the receiving module is further configured to receive a message carrying an aggregation port switching status sent by the switch; and the first determining module is used for identifying the aggregation port switched on the switch and re-determining the forwarding strategy of the service path.
In an embodiment of the present invention, the receiving module is further configured to receive a message that carries an aggregation port failure status and is sent by the switch; and the second determining module is used for identifying the fault state of the aggregation link between the switches, deleting the aggregation link and re-determining the forwarding strategy of the service path.
In an embodiment of the present invention, the port type description field is a tunnel port type, and the receiving module is configured to: receiving tunnel port addition information sent by a switch through a port synchronization message; the control module includes: the sensing unit is used for sensing the tunnel port of the switch according to the tunnel port adding information; a second establishing unit for identifying the tunnel through the added information of the tunnel port
The operation and maintenance access node corresponding to the tunnel port establishes an operation and maintenance service channel by using the tunnel port; and the mirroring unit is used for mirroring the service flow of the switch to the operation and maintenance access node through the operation and maintenance service channel.
In an embodiment of the present invention, the tunnel port addition information includes: the destination address of the tunnel port, VPN route forwarding information, whether the tunnel port supports the authentication key and serial number information.
In an embodiment of the present invention, the second establishing unit is configured to check and determine the security of the tunnel port according to whether the tunnel port supports the authentication key and the serial number; and if the tunnel port is safe, identifying the safety of the operation and maintenance access node corresponding to the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port.
To achieve the above object, a terminal device according to an embodiment of a third aspect of the present invention includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the steps of:
receiving logical port information sent by a switch through a port synchronization message, wherein the logical port information comprises: extension field information for accessing an SDN network;
and sensing the logic port in the switch according to the logic port information, and correspondingly controlling the logic port according to application requirements.
According to the terminal device provided by the embodiment of the invention, the logic port information sent by the switch through the port synchronization message is received, and the logic port in the switch is sensed according to the extension field information and the like accessed to the SDN network in the logic port information, so that the logic port is correspondingly controlled according to the application requirement. The terminal device carries out specific description on the logic port of the switch through the logic port information, so that the logic port of the switch is sensed according to the logic port information, support is provided for the requirement of the switch, flexible sensing and application of the controller to the logic port information of the switch are achieved, configuration is simple, transformation is convenient, and practicability is high.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which,
fig. 1 is a flow diagram of a switch port information awareness method based on an SDN network according to one embodiment of the invention;
fig. 2 is a flowchart of a switch port information awareness method based on an SDN network according to an embodiment of the present invention;
fig. 3 is a flow diagram of a switch port information awareness method based on an SDN network according to another embodiment of the invention;
figure 4 is a flow diagram of a switch port information awareness method based on an SDN network according to yet another embodiment of the invention;
FIG. 5 is a schematic diagram of a method of controlling an aggregation port according to an embodiment of the present invention;
FIG. 6 is a flow chart of a method of controlling an aggregation port according to an embodiment of the present invention;
figure 7 is a flow diagram of a switch port information awareness method based on an SDN network according to yet another embodiment of the invention;
FIG. 8 is a schematic diagram of a method of controlling tunnel ports according to an embodiment of the present invention;
fig. 9 is a flowchart of a method of controlling a tunnel port according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to another embodiment of the present invention;
fig. 13 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to another embodiment of the present invention; and
fig. 14 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to still another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The switch port information awareness method, device and terminal device based on the SDN network according to the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a switch port information awareness method based on an SDN network according to an embodiment of the present invention. As shown in fig. 1, the switch port information awareness method based on the SDN network includes:
s110, receiving logical port information sent by the switch through the port synchronization message, where the logical port information includes: extension field information for accessing an SDN network.
It can be understood that, in order to add an existing logical port of a switch to an SDN network to implement control of the switch in an SDN network environment, a variety of logical ports on the switch need to be configured accordingly, such as logical ports like an UNNEL tunnel port, a LAG aggregation port, a LOOPBACK, and the like. Therefore, in order to configure the logical port on the switch, it is necessary to acquire the logical port information of the switch.
Specifically, the logical PORT information sent by the switch through the PORT synchronization message, for example, the logical PORT information carried in the OFPT _ PORT _ STATUS message reported by the switch through the OPENFLOW protocol, may be received.
The logic port information includes extension field information for accessing the SDN network, the extension field information ensures that a logic port on the switch can be accessed into the SDN network, and the extension field information may include a logic port number field, a port type description field, a port additional information field, and the like.
For the purpose of clearly explaining the PORT synchronization message and the logical PORT information in this embodiment, specific data structures of the PORT synchronization message and the logical PORT information are described in the following tables 1 to 5, in this example, the PORT synchronization message is carried in an OFPT _ PORT _ STATUS field, and the logical PORT information is defined in an ofp _ PORT field, which is described as follows:
first, as shown in table 1, the data structure of the PORT synchronization message OFPT _ PORT _ STATUS may include a definition field struct of logical PORT information, which is used to define the logical PORT information.
TABLE 1
Figure BDA0000967448620000061
Further, as shown in table 2, the ofp _ port logical port information includes extension field information for accessing the SDN network, and the extension field information may include various information of the logical port, such as may include logical port field information, a reserved port number range (0 xffffffff 00-0 xffffffff 8) defined in the ofp _ port logical port information in table 2 is used to represent the logical port number, and the like.
TABLE 2
Figure BDA0000967448620000071
In addition, as shown in tables 3 and 4, the above logical port information may include a port type description field, and in this example, a logical port attribute description field properties is defined in an extended manner, an enumerated value of a logical port type field ofp _ port _ desc _ prop _ type is described, and new meanings such as TUNNEL port, LAG aggregation port, LOOPBACK port, and the like are added.
TABLE 3
Figure BDA0000967448620000072
TABLE 4
Figure BDA0000967448620000073
Figure BDA0000967448620000081
Still further, the extension field information may include a port additional information field, which in this example defines additional information for the logical port in TLV format.
TABLE 5
Figure BDA0000967448620000082
And S120, sensing the logic port in the switch according to the logic port information, and correspondingly controlling the logic port according to the application requirement.
Specifically, the logic port in the switch is sensed according to the acquired logic port information, so that the logic port is correspondingly controlled according to the application requirement. For example, if the current application requirement is the switching of the service path under the aggregation link, the corresponding control of the service path switching is performed according to the relevant logical port information in the switch, and the like.
It can be understood that the logic port of the switch is sensed through the acquired logic port information to acquire specific descriptions related to the logic port in a specific application scenario and provide corresponding supports for the specific descriptions, so as to realize specific control over the logic port and meet corresponding scenario requirements.
In summary, the switch port information sensing method based on the SDN network according to the embodiment of the present invention receives the logical port information sent by the switch through the port synchronization message, and senses the logical port in the switch according to the extension field information and the like accessed to the SDN network in the logical port information, so as to correspondingly control the logical port according to the application requirement. The method specifically describes the logic port of the switch through the logic port information, so as to sense the logic port of the switch according to the logic port information and provide support for the requirement of the switch, thereby realizing flexible sensing and application of the controller to the logic port information of the switch, and having simple configuration, convenient modification and high practicability.
In an actual application scenario, the logical ports of the switch have diversity, for example, the ports of the switch may be a TUNNEL port, a LAG aggregation port, a LOOPBACK loop, and other logical ports, and therefore, the method for controlling the logical ports is different according to different application requirements. For clearly explaining the switch port information sensing method based on the SDN network according to the embodiment of the present invention, the following description takes a logical port as an aggregation port type and a tunnel port type as examples.
First, taking the example that the logical port is an aggregation port, the following description is made:
fig. 2 is a flowchart of a switch port information awareness method based on an SDN network according to an embodiment of the present invention, and as shown in fig. 2, the switch port information awareness method based on the SDN network includes:
s210, receiving the aggregation port adding information sent by the switch through the port synchronization message.
As shown in table 6, the aggregation port add message may include an aggregation mode, a physical member port, a current member port, whether fast detection is supported, an LACP detection period, a load sharing policy, and the like.
TABLE 6
Figure BDA0000967448620000091
S220, sensing the aggregation port of the switch according to the information added by the aggregation port, and establishing a topological relation of the aggregation port.
Specifically, after the aggregation port of the information sensing switch is added according to the aggregation port, a topology detection message can be issued, and a topology relationship is established for the corresponding aggregation port according to a specific detection result of the message.
And S230, calculating the forwarding cost and the quality performance of the aggregation link according to the topological relation of the aggregation port, and determining the switching strategy of the service path.
Specifically, after the topological relation of the aggregation port is established, the forwarding cost and the quality performance of the aggregation link are measured and calculated according to the sensed adding information of the aggregation port, so as to determine the switching strategy of the service path.
For example, when the switches establishing the topological relationship are the switches SW1 and SW2, the forwarding cost and the quality performance of the SW1-SW2 aggregated link are measured according to the sensed addition information of the aggregation port of the switches, and the traffic path is determined to be switched to the SW1-SW2 aggregated link, assuming that the measurement result of the current SW1-SW2 aggregated link is better than that of the original SW1-SW3 aggregated link.
To sum up, the switch port information sensing method based on the SDN network according to the embodiment of the present invention receives aggregation port addition information sent by a switch through a port synchronization message, senses an aggregation port of the switch according to the aggregation port addition information, establishes a topological relation of the aggregation port, measures and calculates forwarding cost and quality performance of an aggregation link according to the topological relation of the aggregation port, and determines a switching policy of a service path. The optimal switching of the service path of the aggregation link is realized, and the practicability of the switch port information sensing method based on the SDN network is further improved.
Based on the above embodiment, when the ports of the aggregated link are switched due to a failure of the current logical port, etc., the switches at both ends of the link report the current information of the outgoing port in real time, thereby triggering the forwarding policy of the path to be performed again.
Specifically, fig. 3 is a flowchart of a switch port information awareness method based on an SDN network according to another embodiment of the present invention, and as shown in fig. 3, the switch port information awareness method based on the SDN network includes:
s310, receiving the message which is sent by the exchanger and carries the switching state of the aggregation port.
For example, if the switch detects that a member aggregation port of a current aggregation link fails and needs to be switched, a message carrying an aggregation port switching state is reported.
S320, identifying the switched aggregation port on the switch, and re-determining the forwarding strategy of the service path.
At this time, because the connection dead port between the switches establishing the topological relation needs to be switched, without changing the topological relation, the aggregation port on the switch where switching occurs is identified, and the forwarding policy of the traffic path is re-determined.
In summary, in the switch port information sensing method based on the SDN network according to the embodiment of the present invention, a message carrying an aggregation port switching state sent by a switch is received; and identifying the aggregation port switched on the switch, and re-determining the forwarding strategy of the service path. Therefore, when the connection port of the aggregation link needs to be switched, the forwarding strategy is determined again to determine a new connection port, and the practicability of the switch port information perception method based on the SDN network is further improved.
Based on the above embodiment, when all aggregation ports of the switch that establishes the topology relationship have a fault, the switch may report a fault status message, trigger deletion of the current aggregation link to rescan the network topology, and re-determine the forwarding policy of the path.
Fig. 4 is a flowchart of a switch port information awareness method based on an SDN network according to another embodiment of the present invention, and as shown in fig. 4, the switch port information awareness method based on the SDN network includes:
s410, receiving the message which is sent by the switch and carries the failure state of the aggregation port.
Specifically, when all aggregation ports of the member switches in the aggregation link fail, it indicates that the current aggregation link cannot implement functions such as traffic forwarding, and thus reports a message of the failure state of the aggregation port.
S420, identifying the failure state of the aggregation link between the switches, deleting the aggregation link, and re-determining the forwarding strategy of the service path.
Specifically, the failure state between the switches is identified according to the message carrying the failure state of the aggregation port, the established aggregation port is deleted, and the forwarding policy of the service path is re-determined, for example, the service can be switched back to the original aggregation link, and all switches related to the service path do not update service information such as the flow table and the group table.
In summary, in the switch port information sensing method based on the SDN network according to the embodiment of the present invention, a message carrying an aggregation port fault state sent by a switch is received; and identifying the fault state of the aggregation link between the switches and deleting the aggregation link so as to re-determine the forwarding strategy of the traffic path. According to the method, when an aggregation port on an aggregation link fails, the current aggregation link is deleted, and the forwarding strategy of a service path is re-determined, so that the practicability of the SDN-based switch port information sensing method is further improved.
In order to make the description of the embodiments of the switch port information awareness method based on the SDN network clearer, the workflow of the embodiments of the switch port information awareness method based on the SDN network is illustrated in conjunction with fig. 5 and 6. In the example illustrated by FIG. 5, the controlling switch logical ports are controller controllers, the logical ports are aggregate Port types, the switches that establish the topological relationship are SW1 and SW2, and the aggregate ports on the switches are labeled with LAG ports and the Physical ports on the switches are labeled with Physical ports. The description is as follows:
fig. 5 is a schematic diagram of a method for controlling an aggregation Port according to an embodiment of the present invention, and as shown in fig. 5, first, the SW1 and the SW2 switch configure their own aggregation PORTs LAG Port 1 and LAG Port 2 to join an SDN domain, and report aggregation Port addition information through an OFPT _ Port _ STATUS Port synchronization message. And when the controller acquires a new switch logical Port, issuing an LLDP topology detection message, and establishing a topology relation for the LAG Port 1 of the SW1 and the LAG Port 2 of the SW2 according to the LLDP topology discovery of the aggregation Port.
Furthermore, when the topological relation of the aggregation port between the SW1 and the SW2 is established, the controller calculates the forwarding cost and the quality performance of the SW1-SW2 aggregation link according to the sensed addition information of the aggregation port. Assuming that the measurement results of the SW1-SW2 aggregated link are better than those of the SW1-SW3 aggregated link, the controller selects to switch the traffic flow (assuming the traffic flow of the destination network is 1.1.1.0/24) running on the original SW1-SW3 aggregated link to the new SW1-SW2 aggregated link.
Therefore, the controller updates the down-flow table and the group table for the SW1 and the SW2, instructs the SW1 to forward by using the output Port LAG Port 1, instructs the SW2 to receive by using the input Port LAG Port 2 and forwards by using the output Port Physical Port 1 aiming at the traffic of the destination network 1.1.1.0/24.
In addition, when the member outgoing interfaces of the SW1-SW2 aggregated links are switched, the switches at the two ends report the changed information of the current outgoing PORT in real time through the OFPT _ PORT _ STATUS PORT synchronization message, and trigger the controller to re-determine the forwarding strategy of the path.
When all member PORTs of the SW1-SW2 aggregated links fail, the switches at the two ends report the PORT failure state through OFPT _ PORT _ STATUS PORT synchronization messages, the trigger controller deletes the SW1-SW2 aggregated links, rescans the network topology, and switches the service flow back to the SW1-SW3 aggregated links.
To further describe the method for controlling an aggregation port in detail in the embodiment of the present invention, with reference to fig. 6, fig. 6 is a flowchart of the method for controlling an aggregation port in accordance with the embodiment of the present invention, and corresponds to fig. 5, in fig. 6, switches establishing a topological relationship are SW1 and SW2, aggregation ports of the switches are labeled with LAG, and aggregation links use an LACP protocol for aggregation of aggregation links. As shown in fig. 6, the method for controlling an aggregation port includes:
step 601 a: an existing logical aggregation PORT LAG 1 on a SW1 switch is added into an SDN domain, and an SW1 sends an OFPT _ PORT _ STATUS PORT synchronization message to notify an aggregation PORT addition event, wherein the message contains aggregation PORT addition information such as an aggregation mode, a physical member PORT, a current member PORT, whether rapid detection is supported, an LACP detection period, a load sharing strategy and the like.
The controller identifies an OFPT _ PORT _ STATUS PORT synchronization message, the field value of the ofp _ PORT _ desc _ prop _ type is OFPPDPT _ LAGPORT (0x5), the description type is LAG aggregation PORT, the following TLV format fields are continuously analyzed, all information of the logic PORTs is stored, and the OFPT _ PACKET _ OUT message is used for informing the LAG 1 PORT on SW1 of LLDP topology detection. Since the logical port of SW2 is not configured to join the SDN domain at this time, the aggregation port topology relationship between SW1 and SW2 has not been established yet
Step 601 b: the existing logical aggregation PORT LAG 2 on the SW2 switch is added into the SDN domain, and similarly, the controller also recognizes the OFPT _ PORT _ STATUS message, saves the logical PORT information, and sends LLDP topology probe. And subsequently, reporting the discovery result of the LLDP topology detection to the controller.
Step 602: establishing an aggregation port topological relation between SW1 and SW2, triggering a controller to measure and calculate a switching strategy of a service path: the method comprises the steps of measuring and calculating the forwarding cost of a convergent port link according to the bandwidth of a physical member port of a convergent port at two ends and a load sharing strategy, judging the quality performance of the convergent port link according to an aggregation mode, whether rapid detection is supported or not and an LACP detection period, and applying the result to a path selection algorithm of a multi-convergent link.
Step 603: assuming that the calculation result of the SW1-SW2 aggregated link is better than that of the SW1-SW3 aggregated link, the traffic flow of the destination network 1.1.1.0/24 needs to be switched to the new SW1-SW2 aggregated link from the original SW1-SW3 aggregated link. The controller updates the flow table and the group table for the switch with all changed forwarding paths, and the flow table and the group table are used for guiding the traffic forwarding of the destination network 1.1.1.0/24.
Step 604 a: the SW1 receives the message of the destination network 1.1.1.0/24, selects the aggregation port LAG 1 connected with the SW2 according to the matching rule of the multilevel flow table, and forwards the message to the SW2 switch.
Step 604 b: the SW2 receives the message of the destination network 1.1.1.0/24, and similarly forwards the message to the SW4 according to the matching rule of the multi-level flow table, thereby completing the message forwarding of the SW1-SW2 aggregation port link.
Step 605: assuming that the aggregated link of the SW1 and the SW2 adopts the LACP protocol dynamic aggregation, if the failure of the current member PORT is found through LACP heartbeat detection or BFD quick detection, the switches at the two ends negotiate again to replace the current member PORT, and report the OFPT _ PORT _ STATUS PORT synchronization message at almost the same time, wherein the message carries the aggregated PORT switching state.
The controller receives the OFPT _ PORT _ STATUS PORT synchronization message, because the PORT state of the aggregation PORT is not changed and the LLDP topological relation is not changed, the forwarding cost of the SW1-SW2 aggregation link is only carried out to re-determine the forwarding strategy of the service path. Assuming that the forwarding cost of the SW1-SW2 aggregated link is still less than that of the SW1-SW3 aggregated link, no switching of traffic paths occurs.
Step 606: if LACP heartbeat detection or BFD rapid detection finds that all member PORTs have faults, switches at two ends almost simultaneously report OFPT _ PORT _ STATUS PORT synchronization messages, and the state field of the messages describes the fault state of the PORTs.
Step 607: the controller identifies the failure state of the aggregation link, deletes the topological relation of the SW1-SW2, redetermines the forwarding strategy of the service path, switches the service flow back to the original SW1-SW3 aggregation link, and updates the flow table and the group table for all the switches with changed forwarding paths.
Step 608: and the LACP heartbeat detection or BFD quick detection on the link of the aggregation PORT of the SW1-SW2 is recovered to be normal, and the SW1 and the SW2 report an OFPT _ PORT _ STATUS PORT synchronization message at the same time to inform the controller of fault recovery. The normal steps of 602-604 are repeated.
Secondly, the switch port information sensing method based on the SDN network according to the embodiment of the present invention is specifically described by taking the logical port as a tunnel port type as an example, where the embodiment mainly describes that a tunnel port outside the SDN network is added into the SDN network, and an operation and maintenance service channel is established by using a tunnel of an existing switch, so as to implement an embodiment of a control method for a remote service flow mirror image, which is described as follows:
fig. 7 is a flowchart of a switch port information awareness method based on an SDN network according to another embodiment of the present invention, and as shown in fig. 7, the switch port information awareness method based on the SDN network includes:
s710, receiving tunnel port adding information sent by the switch through the port synchronization message.
Specifically, as shown in table 7, the tunnel port addition information may be a destination address of the tunnel port, VPN route forwarding information, whether the tunnel port supports an authentication key, sequence number information, and the like.
TABLE 7
Figure BDA0000967448620000131
S720, according to the tunnel port adding information, the tunnel port of the exchanger is sensed.
And S730, identifying the operation and maintenance access node corresponding to the tunnel port through the added information of the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port.
Specifically, the security of the tunnel port may be determined according to whether the tunnel port supports the authentication key and the sequence number check.
And if the tunnel port is safe, identifying the safety of the operation and maintenance access node corresponding to the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port.
And S740, mirroring the service flow of the switch to the operation and maintenance access node through the operation and maintenance service channel.
Specifically, the service traffic of the switch is mirrored to the operation and maintenance access node through the operation and maintenance service channel to match the remote service.
In order to make the description of the embodiments of the switch port information awareness method based on the SDN network clearer, the workflow of the embodiments of the switch port information awareness method based on the SDN network is illustrated in conjunction with fig. 8 and 9. In the example illustrated by FIG. 8, the logical Port is of the Tunnel Port type, denoted GRE in this example, the Tunnel Port is the controller controlling the switch logical Port, and the Tunnel Port number on the switch is labeled Tunnel Port and the switch is labeled SW 1. The description is as follows:
fig. 8 is a schematic diagram of a method for controlling a Tunnel Port according to an embodiment of the present invention, and as shown in fig. 8, a SW1 switch configures a GRE Tunnel Port 1 outside an SDN domain to join the SDN domain, and reports Tunnel Port addition information through an OFPT _ Port _ STATUS Port synchronization message. The controller identifies the service role of the remote device according to the destination address of the tunnel port, VPN routing forwarding information and the like, and judges the safety of the tunnel according to whether the tunnel port supports the authentication key, the serial number information and the like.
If the remote address is identified as a safe and available operation and maintenance access node, the controller establishes an operation and maintenance service channel by using the existing switch tunnel port.
And then, the controller transmits a flow table rule to the switch where the tunnel port is located according to the network protocol and the protocol port number used by the operation and maintenance service, and directs the service request message of the remote end to be sent to the controller for processing after the switch decapsulates the tunnel information, and directs the service response message replied by the controller to be encapsulated and transmitted by the GRE tunnel port of the switch.
When the service flow mirroring request initiated by the remote end is accepted by the controller (the so-called remote flow mirroring function is that the specified service flow on the specified switch node is mirrored to the remote operation and maintenance node, for example, a remote packet capturing), the controller issues a flow table rule for the switch specified by the service, and directs the target flow to be forwarded to the remote node through the GRE tunnel.
To further describe the method for controlling a tunnel port according to the embodiment of the present invention in detail, the method is further described with reference to fig. 9. Corresponding to fig. 8, in this example the switch is denoted by SW, the Tunnel Port is denoted by GRE, the Port number of the Tunnel Port is denoted by Tunnel Port, etc. Fig. 9 is a flowchart of a method of controlling a tunnel port according to an embodiment of the present invention, as shown in fig. 9, the method of controlling a tunnel port includes:
step 901: the SW1 switch configures a GRE Tunnel Port 1 outside the SDN domain to be added into the SDN domain, reports Tunnel Port adding information through an OFPT _ PORT _ STATUS message, and notifies a Port adding event, wherein the message carries information such as a source address, a destination address, a VPN route forwarding instance, an authentication key and the like of a Tunnel.
Step 902: the controller identifies GRE tunnel PORT adding information in TLV format in OFPT _ PORT _ STATUS PORT synchronization information, identifies the service role of the remote equipment according to information such as the destination address of the tunnel, the VPN route forwarding instance and the like, and judges the safety of the tunnel according to information such as whether the tunnel supports authentication keys, sequence number check, verification and check.
According to the tunnel port adding information, the far-end address is identified as a safe and available operation and maintenance access node, the controller opens a network protocol and a protocol port number to the operation and maintenance service, a flow table is issued to the switch where the tunnel port is located, the far-end service request message after tunnel decapsulation is appointed to be sent to the controller for processing through an OFPT _ PACKET _ IN message, and an operation and maintenance service channel is established.
Step 903: the controller issues an access permission certificate for the remote operation and maintenance access node, the certificate message is issued to the switch through an OFPT _ PACKET _ OUT message, the designated output port is a GRE tunnel port, and the switch completes tunnel encapsulation and outgoing of the certificate message.
Step 904: and the SW1 switch where the GRE tunnel port is located completes GRE tunnel encapsulation according to the tunnel output port specified in the OFPT _ PACKET _ OUT message, and sends the GRE tunnel encapsulation to the remote operation and maintenance access node.
And the remote operation and maintenance access node receives the message through the GRE tunnel, decapsulates tunnel header information and acquires an access permission certificate issued by the SDN controller.
Step 905: and the remote operation and maintenance access node sends a service flow query request of the SDN network, carries certificate information and sends the certificate information to the SW1 switch through the GRE tunnel.
Step 906: the SW1 switch decapsulates the tunnel message, and sends the service request message conforming to the operation and maintenance network protocol and the protocol port number to the controller for processing through the OFPT _ PACKET _ IN message according to the flow table rule issued by the controller.
Step 907: the controller responds to the service flow query request of the remote operation and maintenance access node, sends the query result to the SW1 switch through the OFPT _ PACKET _ OUT message, and designates the output port as a GRE tunnel port.
Step 908: and the SW1 switch completes the encapsulation of the tunnel information according to the GRE tunnel exit port specified in the OFPT _ PACKET _ OUT message and sends the tunnel information to the remote operation and maintenance access node.
Step 909: the remote operation and maintenance access node selects the traffic needing mirroring according to the returned traffic query result, for example, the traffic of the SW2 switch destination network of 1.1.1.0/24 is mirrored to the remote node.
Step 910: the SW1 switch decapsulates the tunnel message, and sends the far-end flow mirror image request message to the controller for processing through the OFPT _ PACKET _ IN message.
Step 911: the controller issues flow table rules for the SW1 and SW2 switches according to the request target of the remote flow mirror image, and guides the forwarding of the mirror flow.
Step 912: according to the flow table rule, the SW2 switch adds mirror image processing (modifying the message header, marking a special identifier and forwarding to the SW1 switch) for the service flow of the destination network 1.1.1.0/24.
Step 913: the SW1 switch identifies the message with the mirror image special mark according to the flow table rule, and the message is packaged and forwarded through the GRE tunnel.
Step 914: and the remote operation and maintenance node unseals the tunnel head to acquire the mirrored service flow.
In summary, in the switch port information sensing method based on the SDN network according to the embodiment of the present invention, tunnel port addition information sent by a switch through a port synchronization message is received, a tunnel port of the switch is sensed according to the tunnel port addition information, an operation and maintenance access node corresponding to the tunnel port is identified through the tunnel port addition information, and an operation and maintenance service channel is established by using the tunnel port, so that service traffic of the switch is mirrored to the operation and maintenance access node through the operation and maintenance service channel. The method senses the added information of the newly added tunnel port through the port synchronous message, identifies a remote end as an operation and maintenance access node according to the added information of the tunnel port, establishes an operation and maintenance service channel by utilizing the existing switch tunnel, realizes the mirroring of a remote service flow, realizes the flexible sensing and application of a controller to the switch logic port information, and further improves the practicability of the switch port information sensing method based on the SDN network.
In order to achieve the above object, the present invention further provides a switch port information awareness apparatus based on an SDN network, and fig. 10 is a schematic structural diagram of the switch port information awareness apparatus based on the SDN network according to an embodiment of the present invention, and as shown in fig. 10, the switch port information awareness apparatus based on the SDN network includes a receiving module 1010 and a control module 1020.
The receiving module 1010 is configured to receive logical port information sent by a switch through a port synchronization message, where the logical port information includes: extension field information for accessing an SDN network.
Specifically, the receiving module 1010 may receive the logical PORT information sent by the switch through the PORT synchronization message, for example, may receive the logical PORT information carried in the OFPT _ PORT _ STATUS message reported by the switch through the OPENFLOW protocol.
The logic port information includes extension field information for accessing the SDN network, the extension field information ensures that a logic port on the switch can be accessed into the SDN network, and the extension field information may include a logic port number field, a port type description field, a port additional information field, and the like.
And a control module 1020, configured to sense a logical port in the switch by using the logical port information, and perform corresponding control on the logical port according to an application requirement.
Specifically, the control module 1020 senses a logical port in the switch according to the acquired logical port information, so as to perform corresponding control on the logical port according to the application requirement. For example, the current application requirement is switching of a service path under an aggregated link, and the control module 1020 performs control of corresponding service path switching according to the relevant logical port information in the switch.
It can be understood that the control module 1020 senses the logical port of the switch through the acquired logical port information to acquire a specific description related to the logical port in a specific application scenario and provide a corresponding support for the specific description, so as to implement specific control over the logical port and meet a corresponding scenario requirement.
In summary, the switch port information sensing device based on the SDN network according to the embodiment of the present invention receives the logical port information sent by the switch through the port synchronization message, and senses the logical port in the switch according to the extension field information and the like accessed to the SDN network in the logical port information, so as to correspondingly control the logical port according to the application requirement. The device carries out concrete description to the logic port of switch through logic port information to according to the logic port of this logic port information perception switch, and for the demand of switch provides the support, realized the nimble perception and the application of controller to switch logic port information, and the configuration is simple, and it is convenient to reform transform, and the practicality is high.
In an actual application scenario, the logical ports of the switch have diversity, for example, the ports of the switch may be a TUNNEL port, a LAG aggregation port, a LOOPBACK loop, and other logical ports, and therefore, the method for controlling the logical ports is different according to different application requirements. In order to clearly illustrate the switch port information awareness apparatus based on the SDN network according to the embodiment of the present invention, the following description takes a logical port as an aggregation port type and a tunnel port type as examples.
First, taking the example that the logical port is an aggregation port, the following description is made:
fig. 11 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to an embodiment of the present invention, as shown in fig. 11, and based on fig. 10, the control module 1020 includes a first establishing unit 1021 and a determining unit 1022.
In an embodiment of the present invention, the receiving module 1010 is specifically configured to receive aggregated port addition information sent by a switch through a port synchronization message.
The aggregation port addition message may include an aggregation mode, a physical member port, a current member port, whether fast detection is supported, an LACP detection period, a load sharing policy, and the like.
The first establishing unit 1021 is configured to sense an aggregation port of the switch according to the aggregation port addition information, and establish a topological relation of the aggregation port.
Specifically, after the aggregation port of the information-aware switch is added according to the aggregation port, the first establishing unit 1021 may issue a topology detection message, and establish a topology relationship for the corresponding aggregation port according to a specific detection result of the message.
The determining unit 1022 is configured to measure and calculate forwarding cost and quality performance of the aggregation link according to the topological relation of the aggregation port, and determine a switching policy of the service path.
Specifically, after the topological relation of the aggregation port is established, the determining unit 1022 measures and calculates the forwarding cost and the quality performance of the aggregation link according to the sensed addition information of the aggregation port, so as to determine the switching policy of the service path.
To sum up, the switch port information sensing device based on the SDN network according to the embodiment of the present invention receives aggregation port addition information sent by a switch through a port synchronization message, senses an aggregation port of the switch according to the aggregation port addition information, establishes a topological relation of the aggregation port, measures and calculates forwarding cost and quality performance of an aggregation link according to the topological relation of the aggregation port, and determines a switching policy of a service path. The device realizes the optimal switching of the service path of the aggregation link, and further increases the practicability of the switch port information sensing device based on the SDN network.
Based on the above embodiment, when the ports of the aggregated link are switched due to a failure of the current logical port, etc., the switches at both ends of the link report the current information of the outgoing port in real time, thereby triggering the forwarding policy of the path to be performed again.
Fig. 12 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to another embodiment of the present invention, as shown in fig. 12, and based on fig. 10, the switch port information awareness apparatus based on an SDN network further includes: a first determination module 1030.
In this embodiment of the present invention, the receiving module 1010 is configured to receive a message that is sent by the switch and carries the aggregation port switching status.
For example, if the switch detects that a member aggregation port of the current aggregation link fails and needs to be switched, the receiving module 1010 receives a message carrying the aggregation port switching status reported by the switch.
A first determining module 1030, configured to identify an aggregation port on the switch where switching occurs, and re-determine a forwarding policy of a traffic path.
In summary, the switch port information sensing device based on the SDN network according to the embodiment of the present invention receives a message carrying an aggregation port switching state, which is sent by a switch; and identifying the aggregation port switched on the switch, and re-determining the forwarding strategy of the service path. Therefore, when the connection port of the aggregation link needs to be switched, the forwarding strategy is determined again to determine a new connection port, and the practicability of the switch port information sensing device based on the SDN network is further improved.
Based on the above embodiment, when all aggregation ports of the switch that establishes the topology relationship have a fault, the switch may report a fault status message, trigger deletion of the current aggregation link to rescan the network topology, and re-determine the forwarding policy of the path.
Fig. 13 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to another embodiment of the present invention, as shown in fig. 13, and based on fig. 10, the switch port information awareness apparatus based on an SDN network further includes: a second determination module 1040.
In this embodiment, the receiving module 1010 is configured to receive a message that is sent by the switch and carries the failure status of the aggregation port.
Specifically, when all aggregation ports of the member switches in the aggregation link fail, it indicates that the current aggregation link cannot implement functions such as forwarding traffic, and therefore the receiving module 1010 receives the message of the aggregation port failure status reported by the current aggregation link.
The second determining module 1040 is configured to identify a failure state of the aggregated link between the switches, delete the aggregated link, and re-determine the forwarding policy of the traffic path.
Specifically, the second determining module 1040 identifies the failure state between the switches according to the message carrying the failure state of the aggregation port, deletes the established aggregation port, and determines the forwarding policy of the service path again, for example, the service may be switched back to the original aggregation link, and all switches not related to the service path update service information such as the flow table and the group table.
In summary, the switch port information sensing device based on the SDN network according to the embodiment of the present invention receives a message carrying an aggregation port failure state sent by a switch; and identifying the fault state of the aggregation link between the switches and deleting the aggregation link so as to re-determine the forwarding strategy of the traffic path. According to the method, when an aggregation port on an aggregation link fails, the current aggregation link is deleted, and the forwarding strategy of a service path is re-determined, so that the practicability of the switch port information sensing device based on the SDN network is further improved.
Next, a switch port information sensing device based on an SDN network according to an embodiment of the present invention is specifically described by taking the logical port as a tunnel port type as an example, where the embodiment mainly describes an embodiment in which a tunnel port outside the SDN network is added into the SDN network, and an operation and maintenance service channel is established by using a tunnel of an existing switch, so as to implement control of a remote service flow mirror image, and the description is as follows:
fig. 14 is a schematic structural diagram of a switch port information awareness apparatus based on an SDN network according to still another embodiment of the present invention, and as shown in fig. 14, on the basis of fig. 10, the control module 1020 includes: a sensing unit 1023, a second establishing unit 1024 and a mirroring unit 1025.
In an embodiment of the present invention, the receiving unit 1010 is configured to receive tunnel port addition information sent by a switch through a port synchronization message.
Specifically, the tunnel port addition information may be a destination address of the tunnel port, VPN route forwarding information, whether the tunnel port supports an authentication key, sequence number information, and the like.
And a sensing unit 1023, configured to sense the tunnel port of the switch according to the tunnel port addition information.
The second establishing unit 1024 is configured to identify the operation and maintenance access node corresponding to the tunnel port through the addition information of the tunnel port, and establish an operation and maintenance service channel by using the tunnel port.
Specifically, the second establishing unit 1024 may determine the security of the tunnel port according to whether the tunnel port supports the authentication key and the sequence number check.
If the tunnel port is secure, the second establishing unit 1024 identifies the operation and maintenance access node corresponding to the tunnel port as secure, and establishes an operation and maintenance service channel using the tunnel port.
And the mirroring unit 1025 is used for mirroring the service flow of the switch to the operation and maintenance access node through the operation and maintenance service channel.
Specifically, the mirroring unit 1025 mirrors the traffic of the switch to the operation and maintenance access node through the operation and maintenance traffic channel to match the remote service.
It should be noted that technical features of the embodiment of the switch port information awareness apparatus based on the SDN network of the present invention correspond to technical features of the embodiment of the switch port information awareness method based on the SDN network one to one, and therefore, reference is made to the description of the embodiment of the switch port information awareness method based on the SDN network for details that are not disclosed in the embodiment of the switch port information awareness apparatus based on the SDN network.
In summary, the switch port information sensing device based on the SDN network according to the embodiment of the present invention receives tunnel port addition information sent by a switch through a port synchronization message, senses a tunnel port of the switch according to the tunnel port addition information, identifies an operation and maintenance access node corresponding to the tunnel port through the tunnel port addition information, and establishes an operation and maintenance service channel by using the tunnel port, so that service traffic of the switch is mirrored to the operation and maintenance access node through the operation and maintenance service channel. The device perceives the added information of the newly added tunnel port through the port synchronous message, identifies the remote end as an operation and maintenance access node according to the added information of the tunnel port, establishes an operation and maintenance service channel by utilizing the existing switch tunnel, realizes the mirror image of the remote service flow, realizes the flexible perception and application of the controller to the switch logic port information, and further improves the practicability of the switch port information perception device based on the SDN network.
In order to implement the above embodiments, the present invention further provides a terminal device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
receiving logical port information sent by a switch through a port synchronization message, wherein the logical port information comprises: extension field information for accessing an SDN network;
and sensing the logical port in the switch according to the logical port information, and correspondingly controlling the logical port according to the application requirement.
It should be noted that, in the description for the terminal device, reference is made to the functional description of the switch port information sensing method based on the SDN network with reference to fig. 1 to 9, and technical features of the switch port information sensing method based on the SDN network correspond to technical features of the switch port information sensing method based on the SDN network one to one, which is not described herein again.
In summary, the terminal device according to the embodiment of the present invention receives the logical port information sent by the switch through the port synchronization message, and senses the logical port in the switch according to the extension field information and the like accessed to the SDN network in the logical port information, so as to perform corresponding control on the logical port according to the application requirement. The terminal device carries out specific description on the logic port of the switch through the logic port information, so that the logic port of the switch is sensed according to the logic port information, support is provided for the requirement of the switch, flexible sensing and application of the controller to the logic port information of the switch are achieved, configuration is simple, transformation is convenient, and practicability is high.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (15)

1. A switch port information perception method based on an SDN network is characterized by comprising the following steps:
receiving logical port information sent by a switch through a port synchronization message, wherein the logical port information comprises: extension field information for accessing an SDN network; the extension field information for accessing the SDN network comprises: a logical port number field, a port type description field, and a port additional information field; the port type description field is an aggregated port type, and the receiving of the logical port information sent by the switch through the port synchronization message includes: receiving aggregation port addition information sent by a switch through a port synchronization message;
sensing a logic port in the switch according to the logic port information, and correspondingly controlling the logic port according to application requirements: sensing an aggregation port of the switch according to the aggregation port adding information, and establishing a topological relation of the aggregation port; and according to the topological relation of the aggregation port, measuring and calculating the forwarding cost and the quality performance of the aggregation link, and determining the switching strategy of the service path.
2. The method of claim 1, wherein the aggregating port add information comprises:
aggregation mode, physical member port, current member port, whether rapid detection is supported, LACP detection period, and load sharing strategy.
3. The method of claim 1, wherein the method further comprises:
receiving a message which is sent by the switch and carries the switching state of the aggregation port;
and identifying the aggregation port switched on the switch, and re-determining the forwarding strategy of the service path.
4. The method of claim 1, wherein the method further comprises:
receiving a message which is sent by the switch and carries the failure state of the aggregation port;
and identifying the fault state of the aggregation link between the switches, deleting the aggregation link, and re-determining the forwarding strategy of the service path.
5. The method of claim 1, wherein the port type description field is a tunnel port type, and the receiving of the logical port information sent by the switch through the port synchronization message comprises:
receiving tunnel port addition information sent by a switch through a port synchronization message;
the sensing the logical port in the switch according to the logical port information and correspondingly controlling the logical port according to the application requirement includes:
sensing the tunnel port of the switch according to the tunnel port adding information;
identifying an operation and maintenance access node corresponding to the tunnel port through the adding information of the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port;
and mirroring the service flow of the switch to the operation and maintenance access node through the operation and maintenance service channel.
6. The method of claim 5, wherein the tunnel port addition information comprises:
the destination address of the tunnel port, VPN route forwarding information, whether the tunnel port supports the authentication key and serial number information.
7. The method of claim 5, wherein the identifying, by the addition information of the tunnel port, the operation and maintenance access node corresponding to the tunnel port, and the establishing, by using the tunnel port, the operation and maintenance service channel comprises:
checking and judging the safety of the tunnel port according to whether the tunnel port supports the authentication key and the serial number;
and if the tunnel port is safe, identifying the safety of the operation and maintenance access node corresponding to the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port.
8. A switch port information awareness apparatus based on an SDN network, comprising:
a receiving module, configured to receive logical port information sent by a switch through a port synchronization message, where the logical port information includes: extension field information for accessing an SDN network; the extension field information for accessing the SDN network comprises: a logical port number field, a port type description field, and a port additional information field; the port type description field is an aggregation port type, and the receiving module is used for receiving aggregation port addition information sent by the switch through a port synchronization message;
the control module is used for sensing the logic port in the switch according to the logic port information and correspondingly controlling the logic port according to application requirements; the control module comprises a first establishing unit and a determining unit
The first establishing unit is used for sensing the aggregation port of the switch according to the aggregation port adding information and establishing a topological relation of the aggregation port;
and the determining unit is used for measuring and calculating the forwarding cost and the quality performance of the aggregation link according to the topological relation of the aggregation port and determining the switching strategy of the service path.
9. The apparatus of claim 8, wherein the aggregated port add information comprises:
aggregation mode, physical member port, current member port, whether rapid detection is supported, LACP detection period, and load sharing strategy.
10. The apparatus of claim 8,
the receiving module is further configured to receive a message carrying an aggregation port switching state sent by the switch;
and the first determining module is used for identifying the aggregation port switched on the switch and re-determining the forwarding strategy of the service path.
11. The apparatus of claim 8,
the receiving module is further configured to receive a message that carries a failure state of the aggregation port and is sent by the switch;
and the second determining module is used for identifying the fault state of the aggregation link between the switches, deleting the aggregation link and re-determining the forwarding strategy of the service path.
12. The apparatus of claim 8, wherein the port type description field is a tunnel port type, and wherein the receiving module is configured to:
receiving tunnel port addition information sent by a switch through a port synchronization message;
the control module includes:
the sensing unit is used for sensing the tunnel port of the switch according to the tunnel port adding information;
the second establishing unit is used for identifying the operation and maintenance access node corresponding to the tunnel port through the adding information of the tunnel port and establishing an operation and maintenance service channel by using the tunnel port;
and the mirroring unit is used for mirroring the service flow of the switch to the operation and maintenance access node through the operation and maintenance service channel.
13. The apparatus of claim 12, wherein the tunnel port addition information comprises:
the destination address of the tunnel port, VPN route forwarding information, whether the tunnel port supports the authentication key and serial number information.
14. The apparatus of claim 12, wherein the second establishing unit is to:
checking and judging the safety of the tunnel port according to whether the tunnel port supports the authentication key and the serial number;
and if the tunnel port is safe, identifying the safety of the operation and maintenance access node corresponding to the tunnel port, and establishing an operation and maintenance service channel by using the tunnel port.
15. A terminal device, comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the steps of:
receiving logical port information sent by a switch through a port synchronization message, wherein the logical port information comprises: extension field information for accessing an SDN network; the extension field information for accessing the SDN network comprises: a logical port number field, a port type description field, and a port additional information field; the port type description field is an aggregated port type, and the receiving of the logical port information sent by the switch through the port synchronization message includes: receiving aggregation port addition information sent by a switch through a port synchronization message;
sensing a logic port in the switch according to the logic port information, and correspondingly controlling the logic port according to application requirements: sensing an aggregation port of the switch according to the aggregation port adding information, and establishing a topological relation of the aggregation port; and according to the topological relation of the aggregation port, measuring and calculating the forwarding cost and the quality performance of the aggregation link, and determining the switching strategy of the service path.
CN201610241280.4A 2016-04-18 2016-04-18 Switch port information sensing method and device based on SDN network and terminal equipment Active CN107306193B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610241280.4A CN107306193B (en) 2016-04-18 2016-04-18 Switch port information sensing method and device based on SDN network and terminal equipment
PCT/CN2017/077550 WO2017181807A1 (en) 2016-04-18 2017-03-21 Sdn-based switch port information detection method, device, and terminal apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610241280.4A CN107306193B (en) 2016-04-18 2016-04-18 Switch port information sensing method and device based on SDN network and terminal equipment

Publications (2)

Publication Number Publication Date
CN107306193A CN107306193A (en) 2017-10-31
CN107306193B true CN107306193B (en) 2020-11-27

Family

ID=60116585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610241280.4A Active CN107306193B (en) 2016-04-18 2016-04-18 Switch port information sensing method and device based on SDN network and terminal equipment

Country Status (2)

Country Link
CN (1) CN107306193B (en)
WO (1) WO2017181807A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809849B (en) * 2018-08-30 2022-07-29 新华三技术有限公司 Flow rate limiting method and device and controller
CN109194547B (en) * 2018-09-29 2020-06-16 新华三技术有限公司 Message transmission method and device, home terminal equipment and readable storage medium
CN111277423B (en) * 2018-12-04 2022-05-20 中兴通讯股份有限公司 Data center flow intercommunication method, device, equipment and storage medium
CN112637079B (en) * 2020-12-16 2022-08-23 中国电子科技集团公司第三十研究所 Multi-line flow impact control method and device
CN115225479A (en) * 2021-03-31 2022-10-21 大唐移动通信设备有限公司 Transmission path aggregation method, transmission path aggregation device, network switching equipment and storage medium
CN113660136B (en) * 2021-08-12 2023-11-21 中国工商银行股份有限公司 Method, device, equipment and storage medium for checking port availability of two-way switch
CN114253197B (en) * 2021-12-23 2024-05-28 浪潮思科网络科技有限公司 SDN network-based power supply equipment management system, method, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092604A (en) * 2014-07-02 2014-10-08 杭州华三通信技术有限公司 Message transmission control method and device
CN104253770A (en) * 2013-06-27 2014-12-31 杭州华三通信技术有限公司 Method and equipment for realizing distributed virtual switch system
CN104486119A (en) * 2014-12-16 2015-04-01 盛科网络(苏州)有限公司 Method and system for achieving batch management switch through improved openflow protocol
CN104935594A (en) * 2015-06-16 2015-09-23 杭州华三通信技术有限公司 Message processing method based on virtual extensible local area network tunnel and device
CN105262667A (en) * 2015-09-17 2016-01-20 杭州数梦工场科技有限公司 Method and device for controlling multicast transmission in Overlay network
CN105376197A (en) * 2014-08-22 2016-03-02 中国电信股份有限公司 Method of realizing hierarchical network abstraction and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101563102B1 (en) * 2012-03-27 2015-10-23 알까뗄 루슨트 System and method for virtual fabric link failure recovery

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253770A (en) * 2013-06-27 2014-12-31 杭州华三通信技术有限公司 Method and equipment for realizing distributed virtual switch system
CN104092604A (en) * 2014-07-02 2014-10-08 杭州华三通信技术有限公司 Message transmission control method and device
CN105376197A (en) * 2014-08-22 2016-03-02 中国电信股份有限公司 Method of realizing hierarchical network abstraction and system
CN104486119A (en) * 2014-12-16 2015-04-01 盛科网络(苏州)有限公司 Method and system for achieving batch management switch through improved openflow protocol
CN104935594A (en) * 2015-06-16 2015-09-23 杭州华三通信技术有限公司 Message processing method based on virtual extensible local area network tunnel and device
CN105262667A (en) * 2015-09-17 2016-01-20 杭州数梦工场科技有限公司 Method and device for controlling multicast transmission in Overlay network

Also Published As

Publication number Publication date
WO2017181807A1 (en) 2017-10-26
CN107306193A (en) 2017-10-31

Similar Documents

Publication Publication Date Title
CN107306193B (en) Switch port information sensing method and device based on SDN network and terminal equipment
US20220200896A1 (en) Path Detection Method, Apparatus, and Computer Storage Medium
US10164862B2 (en) Communication system, control device, communication method and program
CN116208524A (en) Method, equipment and system for detecting data message
CN104363990B (en) The method and Wi-Fi access nodes of user equipment access Wireless Fidelity Wi-Fi
CN109982447A (en) A kind of networking method of wireless network, system and wireless aps
CN112822085B (en) Network deployment method and system
CN114448877B (en) Path switching method, device and system
EP3989512A1 (en) Method for controlling traffic forwarding, device, and system
CN103281720B (en) The hot standby changing method of wireless controller and device, wireless controller, connecting system
US20140050092A1 (en) Load sharing method and apparatus
US10084656B2 (en) TRILL network establishing method, node, and system
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
US9832066B2 (en) Port number extension method and switch
JP6383232B2 (en) Relay system and switch device
US9225667B2 (en) Communication system and network relay apparatus
CN112218321B (en) Master-slave link switching method, device, communication equipment and storage medium
CN106230717B (en) Route obtaining method and device in cluster system
US10652097B2 (en) Virtual network probing
CN111405004A (en) Switch management method and device, equipment and storage medium
AU2021200805B2 (en) Method for monitoring apparatus
CN110830598A (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN109347734A (en) A kind of file transmitting method, device, the network equipment and computer-readable medium
CN103607301A (en) Link fault protection switching method and device under ECMP mode
US20230283545A1 (en) Method for obtaining path association information, device, and system

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