CN110971540B - Data information transmission method and device, switch and controller - Google Patents

Data information transmission method and device, switch and controller Download PDF

Info

Publication number
CN110971540B
CN110971540B CN201811141103.4A CN201811141103A CN110971540B CN 110971540 B CN110971540 B CN 110971540B CN 201811141103 A CN201811141103 A CN 201811141103A CN 110971540 B CN110971540 B CN 110971540B
Authority
CN
China
Prior art keywords
flow table
switch
matching information
information
table matching
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
CN201811141103.4A
Other languages
Chinese (zh)
Other versions
CN110971540A (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811141103.4A priority Critical patent/CN110971540B/en
Publication of CN110971540A publication Critical patent/CN110971540A/en
Application granted granted Critical
Publication of CN110971540B publication Critical patent/CN110971540B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • H04L43/026Capturing of monitoring data using flow identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]

Landscapes

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

Abstract

The invention discloses a data information transmission method, a device, a switch and a controller, wherein the data information transmission method is applied to the switch supporting an open flow Openflow protocol and comprises the following steps: acquiring flow table matching information of a data packet in a switch; the flow table matching information is information supporting an Openflow protocol; and encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller. The embodiment of the invention realizes the real-time monitoring of the forwarding processing process of the data packet in the switch, is beneficial to knowing the forwarding condition of the data packet and checking whether the forwarding path is in accordance with the expectation; the flow table with errors in the data packet can be quickly positioned, and the positioning efficiency is improved; the flow table is recorded by using the protocol messages, so that the development workload is small, the realization of equipment is facilitated, the matching precision can be improved, and the cache pressure and the number of the protocol messages of the switch are reduced.

Description

Data information transmission method and device, switch and controller
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting data information, a switch, and a controller.
Background
The Openflow switch refers to a switch supporting an Openflow protocol, and each Openflow switch is internally provided with one or more Openflow flow tables for data packet matching and forwarding. The switch may be connected to an external SDN (Software Defined Network) controller through an openflow protocol, and query and manage the flow table. The flow table includes a header fields (headers files), activity counters (counters), and a plurality of execution actions (actions). The flow table searches each entry data packet, if the entry data packet matches with the entry data packet, the relevant policy is executed, otherwise, the data packet is forwarded to the SDN controller through the protocol message, and the SDN controller decides relevant behaviors.
The Openflow switch is divided into a software Openflow switch and a hardware Openflow switch, where the software Openflow switch is completely implemented by software and installed on an X86 physical server, such as an OVS (Open VSwitch, open virtual switching standard); the hardware openflow switch is the same as a conventional hardware switch in hardware configuration, and is composed of a CPU (Central Processing Unit) chip, an ASIC (Application Specific Integrated Circuit) switching chip, a power supply, a fan and other hardware devices, and the difference is a data flow forwarding manner, the conventional hardware switch directs packet forwarding according to an L2/L3 routing forwarding Protocol, such as VLAN (Virtual Local Area Network), OSPF (Open Shortest Path First), BGP (Border Gateway Protocol), and the like, and the hardware openflow switch directs packet forwarding according to an openflow table issued by an SDN controller.
In data center application, two openflow switches have different application scenes and different types of connected server hosts, a software openflow switch only receives the flow of a Virtual Machine (VM), and a hardware openflow switch can be in butt joint with a physical server and a Virtual Machine inside the physical server.
Because the Openflow single-stage flow table needs to design a complex matching item and execute an action when processing complex services, openflow multi-stage flow tables are mostly used for realizing forwarding processing of data packets in the Openflow switch at present. After the data packet enters the openflow switch, starting from the first flow table, matching with the matching item, and if the matching is successful, processing according to the execution action; if the data packet is not matched successfully or the action is performed incorrectly, the data packet is sent to the controller or the incorrect action is performed, or even discarded.
In application, as the number of physical servers or virtual machines increases, the number of openflow flow tables inside an openflow switch may increase synchronously, and in large data center deployment, if there are 2 thousand physical servers or VMs, the number of flow tables of a single openflow switch may be greater than 4 thousand, even 6 thousand, and a large number of flow tables pose a great challenge to service monitoring and fault location:
if a user wants to monitor which flow tables are processed by a certain service, whether the flow tables are the same as the expected processing flow or not is checked, all the flow tables on the switch need to be displayed, and the flow tables are searched one by one according to the content of the flow tables, so that the efficiency is low, and the operation is complicated;
if a certain service data packet is discarded by the switch or is not forwarded to an expected port, it is difficult to locate which flow table in the multi-stage flow tables has a problem, and only diagnostic information and a log can be added in switch software for location, so that the location efficiency is very low.
Disclosure of Invention
Embodiments of the present invention provide a data information transmission method, an apparatus, a switch, and a controller, so as to solve a problem in the prior art that when a certain service data packet is discarded by the switch or is not forwarded to an expected port, an erroneous flow table cannot be located.
According to an aspect of the present invention, a method for transmitting data information is provided, which is applied to a switch supporting an Openflow protocol, and includes:
acquiring flow table matching information of a data packet in a switch; the flow table matching information is information supporting an Openflow protocol;
and encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
Preferably, the obtaining of the flow table matching information of the packet in the switch includes:
and acquiring flow table matching information of the data packet in the switch, which is collected by the module with the flow table information collection function in the switch.
Preferably, after the obtaining of the flow table matching information of the packet in the switch, the method further includes:
and storing the flow table matching information.
Preferably, the storing the flow table matching information includes:
and if a plurality of pieces of flow table matching information are the same, storing one piece of flow table matching information.
Preferably, encapsulating the flow table matching information into a protocol message and sending the protocol message to a software defined network SDN controller includes:
when the data packet is processed wrongly, packaging the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller; or
And when all flow table processing operations of the data packet are completed, encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
Preferably, the protocol packet includes: a tag field;
the marking field is used for marking that the protocol message is reported by a module with a flow table information collection function of the switch.
The embodiment of the invention provides a data information transmission method, which is applied to a Software Defined Network (SDN) controller and comprises the following steps:
receiving a protocol message which is sent by a switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch, and is information supporting an Openflow protocol of the open flow.
An embodiment of the present invention provides a switch, including:
the processor is used for acquiring flow table matching information of the data packet in the switch; the flow table matching information is information supporting an Openflow protocol; encapsulating the flow table matching information into a protocol message;
and the transceiver is used for sending the protocol message to a Software Defined Network (SDN) controller.
Preferably, when the processor acquires flow table matching information of the packet in the switch, the processor is further configured to:
and acquiring flow table matching information of the data packet in the switch, which is collected by the module with the flow table information collection function in the switch.
Preferably, after obtaining the flow table matching information of the data packet in the switch, the processor is further configured to:
and storing the flow table matching information.
Preferably, when the processor stores the flow table matching information, the processor is further configured to:
and if a plurality of pieces of flow table matching information are the same, storing one piece of flow table matching information.
Preferably, when the transceiver sends the protocol packet to the software defined network SDN controller, the transceiver is further configured to:
when the data packet is processed wrongly, packaging the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller; or
And when all flow table processing operations of the data packet are completed, encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
Preferably, the protocol packet includes: a tag field;
the marking field is used for marking that the protocol message is reported by a module with a flow table information collection function of the switch.
An embodiment of the present invention further provides a controller, including a processor and a transceiver, where the transceiver is configured to:
receiving a protocol message which is sent by a switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch, and is information supporting an Openflow protocol of the open flow.
An embodiment of the present invention further provides a device for transmitting data information, including:
the acquisition module is used for acquiring flow table matching information of the data packet in the switch; the flow table matching information is information supporting an Openflow protocol;
and the sending module is used for packaging the flow table matching information into a protocol message and sending the protocol message to the SDN controller.
An embodiment of the present invention further provides a device for transmitting data information, including:
the receiving module is used for receiving a protocol message which is sent by the switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch, and is information supporting an Openflow protocol of the open flow.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the above-mentioned data information transmission method.
According to the technical scheme, the flow table matching information of the data packet input by the port with the flow table information collection function in the switch is encapsulated into the protocol message and is uploaded to the SDN controller, so that the real-time monitoring of the forwarding processing process of the data packet in the switch is realized, which flow tables are matched with the data packet is known, the forwarding condition of the data packet is facilitated to be known, and whether the forwarding path is in accordance with the expectation is checked; for errors of a data packet in the switch, the flow table with the errors of the data packet can be quickly positioned, and the positioning efficiency is improved; the flow table is recorded by using the message defined by the protocol, so that the development workload is small, and the realization of equipment is facilitated; and the data packet filtering condition can be added in the information collection function module of the switch, so that the matching precision is improved, and the cache pressure and the protocol message quantity of the switch are reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic diagram illustrating a method for transmitting data information according to an embodiment of the present invention;
fig. 2 is a second schematic diagram illustrating a data information transmission method according to an embodiment of the invention;
fig. 3 is a schematic diagram of an implementation structure of a switch according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an implementation structure of the controller according to the embodiment of the invention;
fig. 5 is a schematic diagram of an implementation structure of a data information transmission apparatus according to an embodiment of the present invention;
fig. 6 is a second schematic diagram of an implementation structure of a data information transmission apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an implementation structure of a transmission device according to an embodiment of the present invention;
fig. 8 is a second schematic diagram of an implementation structure of the transmission apparatus according to the embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
An embodiment of the present invention provides a data information transmission method, which is applied to a switch supporting an Openflow protocol, and as shown in fig. 1, the method includes:
step 11, obtaining flow table matching information of the data packet in the switch; the flow table matching information is information supporting an Openflow protocol;
specifically, obtaining flow table matching information of a packet in a switch includes:
and acquiring flow table matching information of the data packet in the switch, which is collected by the module with the flow table information collection function in the switch.
The method comprises the steps that a module with a flow table information collection function is added in a switch, the switch comprises a plurality of input ports, a user can configure a port with the information collection function to be started according to needs, the information collection function of a certain port is enabled, a message input from the port triggers the operation of recording a flow table after a first flow table is matched, namely, flow table matching information of a data packet input from the port in the switch is recorded by the switch, and the flow table matching information comprises all flow tables flowing through the flow table module of the data packet in the switch.
It should be noted that, in the module with the flow table information collecting function, a packet filtering condition may be added, and a packet meeting the filtering condition may perform flow table collecting processing in the switch; the filtering conditions may include: port, port and VLAN address, etc. And a data packet filtering condition is added to a module with a flow table information collecting function, so that the data matching precision is improved, and the cache pressure and the protocol message quantity of the switch are reduced.
And step 12, packaging the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
In the embodiment of the invention, the switch encapsulates the flow table matching information of the data packet input by the port with the flow table information collection function in the switch into the protocol message and uploads the protocol message to the SDN controller, the SDN controller obtains the processing track of the data packet in the switch, the SDN controller is convenient to monitor the processing process of the data packet, and when the data packet is lost or has an error, the flow table with the error can be quickly positioned according to the processing track. For the port without the function of enabling flow meter information collection, the switch does not have the operation of encapsulating the flow meter, so that the switch encapsulates the data packet input by the port with monitoring requirements only aiming at the user, the workload of switch data processing is avoided being increased, and the working efficiency of the switch is not influenced.
The SDN controller may identify that the protocol packet is reported by a module of the switch, which has a flow table information collection function, by marking the field, so that flow table matching information encapsulated in the protocol packet is all flow tables through which a data packet input by a port enabling the information collection function flows in the switch, for example, which flow tables the data packet matches, what the matching item of each flow table is, what the execution action is equivalent. The scheme realizes the real-time monitoring of the forwarding processing process of the data packet in the switch, and knows which flow tables the data packet matches, thereby being beneficial to knowing the forwarding condition of the data packet and checking whether the forwarding path meets the expectation; errors (such as matching errors, execution action errors and the like) of a data packet in a switch can be quickly positioned to a flow table with the data packet having the errors, so that the positioning efficiency is improved; the message defined by the protocol is used for recording the flow table, so that the development workload is small, and the realization of equipment is facilitated.
In this embodiment of the present invention, after obtaining flow table matching information of a packet in a switch, the method further includes:
and storing the flow table matching information.
After the data packet enters the switch, the data packet is processed one by one according to the flow table matching match and the action execution content, and the switch records all flow tables through which the data packet flows and caches the data packet, for example, if the data packet passes through the processing of three flow tables, namely the flow table0 (table 0), the flow table10 (table 10) and the flow table20 (table 20), the table0, the table10 and the table20 are cached.
In order to prevent the switch from buffering the data packets too much, preferably, the storing the flow table matching information includes: and if a plurality of pieces of flow table matching information are the same, storing one piece of flow table matching information. That is, if the flow table data matched with the data packet is the same, for example, a plurality of table0 with the same data are matched, only one table0 is cached, so that the number of messages sent to the SDN controller is reduced, and the cache space of the switch is also saved.
In the embodiment of the present invention, encapsulating the flow table matching information into a protocol message, and sending the protocol message to a software defined network SDN controller includes:
when the data packet is processed wrongly, packaging the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller; or
And when all flow table processing operations of the data packet are completed, encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
In this embodiment, there are two conditions for triggering the protocol message to be sent to the SDN controller, one of which is that when a packet is processed incorrectly, the packet cannot be processed in the next flow table; secondly, the data packet completes all flow table processing without error, and no next flow table is processed; when one of the two conditions occurs, the switch fills flow tables through which all cached data packets flow and ports into which the data packets are input into a protocol message, and sends the protocol message to the controller;
specifically, the protocol packet includes: a tag field;
the marking field is used for marking that the protocol message is reported by a module with a flow table information collection function of the switch.
Preferably, the flag field includes a reason replay field, when the switch sends the protocol packet to the SDN controller, the replay field of the protocol packet is filled with a preset value, and after the SDN controller receives the protocol packet, the SDN controller checks whether a value of the replay field is a preset value, and if so, that is, the protocol packet is reported by a module of a flow table information collection function of the switch, the content encapsulated in the data field of the protocol packet is all flow tables through which the data packet input by the port enabling the flow table information collection function flows in the switch, such as which flow tables are matched in common, what is a matching item of each flow table, and what is an execution action equivalent value.
According to the data information transmission method provided by the embodiment of the invention, the flow table matching information of the data packet input by the port with the flow table information collection function in the switch is encapsulated into the protocol message and uploaded to the SDN controller, so that the real-time monitoring of the forwarding processing process of the data packet in the switch is realized, which flow tables are matched with the data packet is known, the forwarding condition of the data packet is facilitated to be known, and whether the forwarding path is in accordance with the expectation is checked; for errors of a data packet in the switch, the flow table with the errors of the data packet can be quickly positioned, and the positioning efficiency is improved; the flow table is recorded by using the message defined by the protocol, so that the development workload is small, and the realization of equipment is facilitated; and the data packet filtering condition can be added in the information collection function module of the switch, so that the matching precision is improved, and the cache pressure and the number of protocol messages of the switch are reduced.
An embodiment of the present invention provides a data information transmission method, which is applied to a software defined network SDN controller, and as shown in fig. 2, the method includes:
step 21, receiving a protocol message which is sent by a switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch, and is information supporting an Openflow protocol of the open flow.
In this embodiment, after receiving a protocol packet encapsulated with flow table matching information sent by a switch, an SDN controller checks whether a value of a cause replay field of the protocol packet is a preset value, and if so, that is, the protocol packet is reported by a module of a flow table information collecting function of the switch, the content encapsulated in a data field of the protocol packet is all flow tables through which a data packet input by a port enabling the flow table information collecting function flows in the switch, such as which flow tables are matched in common, and what is the matching item of each flow table and what is the value of an execution action.
According to flow table matching information encapsulated by a data field of a protocol message, the SDN controller can monitor the forwarding processing process of a data packet in the switch in real time, know which flow tables the data packet matches, help to know the forwarding condition of the data packet and check whether a forwarding path meets expectations; for errors of a data packet in a switch, the SDN controller can quickly locate the flow table with the errors of the data packet, and the locating efficiency is improved.
An embodiment of the present invention provides a switch, as shown in fig. 3, including:
a processor 31, configured to obtain flow table matching information of the packet in the switch; the flow table matching information is information supporting an Openflow protocol; encapsulating the flow table matching information into a protocol message;
a transceiver 32, configured to send the protocol packet to a software defined network SDN controller.
Preferably, when the processor acquires flow table matching information of the packet in the switch, the processor is further configured to:
and acquiring flow table matching information of the data packet in the switch, which is collected by the module with the flow table information collection function in the switch.
Preferably, after obtaining the flow table matching information of the packet in the switch, the processor is further configured to:
and storing the flow table matching information.
Preferably, when the processor stores the flow table matching information, the processor is further configured to:
and if a plurality of pieces of flow table matching information are the same, storing one piece of flow table matching information.
Preferably, when the transceiver sends the protocol packet to the software defined network SDN controller, the transceiver is further configured to:
when the data packet is processed wrongly, packaging the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller; or alternatively
And when all flow table processing operations of the data packet are completed, encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
Preferably, the protocol packet includes: a tag field;
the marking field is used for marking that the protocol message is reported by a module with a flow table information collection function of the switch.
An embodiment of the present invention provides a controller, as shown in fig. 4, including a processor 41 and a transceiver 42, where the transceiver 42 is configured to:
receiving a protocol message which is sent by a switch and is packaged with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch, and is information supporting an Openflow protocol.
In summary, in the embodiments of the present invention, the flow table matching information of the data packet input from the port with the flow table information collection function in the switch is encapsulated in the protocol message and is uploaded to the SDN controller, so that the real-time monitoring of the forwarding processing process of the data packet in the switch is realized, which flow tables are matched with the data packet is known, which is helpful for knowing the forwarding condition of the data packet and checking whether the forwarding path meets expectations; for errors of a data packet in the switch, the flow table with the errors of the data packet can be quickly positioned, and the positioning efficiency is improved; the flow table is recorded by using the message defined by the protocol, so that the development workload is small, and the realization of equipment is facilitated; and the data packet filtering condition can be added in the information collection function module of the switch, so that the matching precision is improved, and the cache pressure and the protocol message quantity of the switch are reduced.
As shown in fig. 5, an embodiment of the present invention further provides a data information transmission apparatus, including:
an obtaining module 51, configured to obtain flow table matching information of a packet in a switch; the flow table matching information is information supporting an Openflow protocol;
a sending module 52, configured to encapsulate the flow table matching information into a protocol message, and send the protocol message to a software defined network SDN controller.
Preferably, the obtaining module 51 is specifically configured to:
and acquiring flow table matching information of the data packet in the switch, which is collected by a module with a flow table information collection function in the switch.
Preferably, the apparatus for transmitting data information further includes:
and the storage module is used for storing the flow table matching information.
Preferably, the storage module is specifically configured to: and if a plurality of pieces of flow table matching information are the same, storing one piece of flow table matching information.
Preferably, the sending module 52 is specifically configured to:
when the data packet is processed wrongly, packaging the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller; or
And when all flow table processing operations of the data packet are completed, encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
Preferably, the protocol packet includes: a tag field;
the marking field is used for marking that the protocol message is reported by a module with a flow table information collection function of the switch.
As shown in fig. 6, an embodiment of the present invention further provides a device for transmitting data information, including:
the receiving module 61 receives a protocol message which is sent by the switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch, and is information supporting an Openflow protocol of the open flow.
The embodiment of the invention also provides transmission equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; the processor executes the program to realize the data information transmission method.
Specifically, as shown in fig. 7, the transmission device includes:
a processor 71 for reading a program in a memory 72;
a transceiver 73 for receiving and transmitting data under the control of the processor 71.
Wherein in fig. 7 the bus architecture may comprise any number of interconnected buses and bridges, in particular one or more processors represented by processor 71 and various circuits of memory represented by memory 72, linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 73 may be a plurality of elements, i.e., including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 71 is responsible for managing the bus architecture and general processing, and the memory 72 may store data used by the processor 71 in performing operations.
The processor 71 is responsible for managing the bus architecture and general processing, and the memory 72 may store data used by the processor 71 in performing operations.
In particular, the processor 71 is configured to: acquiring flow table matching information of a data packet in a switch; the flow table matching information is information supporting an Openflow protocol; encapsulating the flow table matching information into a protocol message;
the transceiver 73 is used to: and sending the protocol message to a Software Defined Network (SDN) controller. The transceiver 73 and the processor 71 are further configured to perform other specific steps corresponding to the transceiver and the processor in the embodiment corresponding to fig. 3, which are not described herein again.
The embodiment of the invention also provides a transmission device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; the processor executes the program to implement the sequence identification receiving method described above.
Specifically, as shown in fig. 8, the transmission device includes:
a processor 81 for reading a program in a memory 82;
a transceiver 83 for receiving and transmitting data under the control of the processor 81.
Wherein in fig. 8 the bus architecture may comprise any number of interconnected buses and bridges, with one or more processors represented by processor 81 and various circuits of memory represented by memory 82 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 83 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 81 is responsible for managing the bus architecture and general processing, and the memory 82 may store data used by the processor 81 in performing operations.
The processor 81 is responsible for managing the bus architecture and general processing, and the memory 82 may store data used by the processor 81 in performing operations.
In particular, the transceiver 83 is configured to: receiving a protocol message which is sent by a switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch, and is information supporting an Openflow protocol of the open flow. The transceiver 83 and the processor 81 are further configured to perform other specific steps corresponding to the transceiver and the processor in the embodiment corresponding to fig. 4, which are not described herein again.
In addition, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements a method for transmitting data information.
Specifically, the computer-readable storage medium is applied to a sending device or a receiving device, and when the computer-readable storage medium is applied to the sending device or the receiving device, the execution steps in the corresponding methods are as described in detail above, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the transceiving method according to various embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the foregoing is directed to the preferred embodiment of the present invention, it will be appreciated by those skilled in the art that various changes and modifications may be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (15)

1. A data information transmission method is applied to a switch supporting an open flow Openflow protocol, and is characterized by comprising the following steps:
acquiring flow table matching information of a data packet in a switch; the flow table matching information is information supporting an Openflow protocol;
packaging the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller;
obtaining flow table matching information of a data packet in a switch, including:
and acquiring flow table matching information of the data packet in the switch, which is collected by the module with the flow table information collection function in the switch.
2. The method for transmitting data information according to claim 1, wherein after obtaining the flow table matching information of the packet in the switch, the method further comprises:
and storing the flow table matching information.
3. The method according to claim 2, wherein storing the flow table matching information includes:
and if a plurality of pieces of flow table matching information are the same, storing one piece of flow table matching information.
4. The method for transmitting data information according to claim 1, wherein encapsulating the flow table matching information into a protocol message and sending the protocol message to a Software Defined Network (SDN) controller comprises:
when the data packet is processed in error, the flow table matching information is packaged into a protocol message and is sent to a Software Defined Network (SDN) controller; or
And when all flow table processing operations of the data packet are completed, encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
5. The method according to claim 1 or 4, wherein the protocol packet includes: a tag field;
the marking field is used for marking that the protocol message is reported by a module with a flow table information collection function of the switch.
6. A data information transmission method is applied to a Software Defined Network (SDN) controller and is characterized by comprising the following steps:
receiving a protocol message which is sent by a switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch and is information supporting an Openflow protocol;
the flow table matching information is the flow table matching information of the data packet in the switch collected by the module with the flow table information collecting function in the switch.
7. A switch, comprising:
the processor is used for acquiring flow table matching information of the data packet in the switch; the flow table matching information is information supporting an Openflow protocol; encapsulating the flow table matching information into a protocol message;
a transceiver for sending the protocol packet to a Software Defined Network (SDN) controller;
when the processor acquires the flow table matching information of the data packet in the switch, the processor is further configured to:
and acquiring flow table matching information of the data packet in the switch, which is collected by the module with the flow table information collection function in the switch.
8. The switch of claim 7, wherein the processor, after obtaining the flow table matching information of the packet in the switch, is further configured to:
and storing the flow table matching information.
9. The switch of claim 8, wherein when the processor stores the flow table matching information, the processor is further configured to:
and if a plurality of pieces of flow table matching information are the same, storing one piece of flow table matching information.
10. The switch of claim 7, wherein the transceiver, when sending the protocol packet to the Software Defined Network (SDN) controller, is further configured to:
when the data packet is processed in error, the flow table matching information is packaged into a protocol message and is sent to a Software Defined Network (SDN) controller; or
And when all flow table processing operations of the data packet are completed, encapsulating the flow table matching information into a protocol message, and sending the protocol message to a Software Defined Network (SDN) controller.
11. The switch according to claim 7 or 10, characterized in that the protocol message comprises: a tag field;
the marking field is used for marking that the protocol message is reported by a module with a flow table information collection function of the switch.
12. A controller comprising a processor and a transceiver, the transceiver configured to:
receiving a protocol message which is sent by a switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch and is information supporting an Openflow protocol of open flow; the flow table matching information is flow table matching information of the data packet in the switch, which is collected by a module with a flow table information collecting function in the switch.
13. An apparatus for transmitting data information, comprising:
the acquisition module is used for acquiring flow table matching information of the data packet in the switch; the flow table matching information is information supporting an Openflow protocol;
the sending module is used for packaging the flow table matching information into a protocol message and sending the protocol message to a Software Defined Network (SDN) controller;
the acquisition module is specifically configured to:
and acquiring flow table matching information of the data packet in the switch, which is collected by the module with the flow table information collection function in the switch.
14. An apparatus for transmitting data information, comprising:
the receiving module is used for receiving a protocol message which is sent by the switch and encapsulated with flow table matching information; the flow table matching information is flow table matching information of a data packet in the switch and is information supporting an Openflow protocol; the flow table matching information is the flow table matching information of the data packet in the switch collected by the module with the flow table information collecting function in the switch.
15. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is characterized by carrying out the method of transmission of data information according to one of claims 1 to 5 or the steps of the method of transmission of data information according to claim 6.
CN201811141103.4A 2018-09-28 2018-09-28 Data information transmission method and device, switch and controller Active CN110971540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811141103.4A CN110971540B (en) 2018-09-28 2018-09-28 Data information transmission method and device, switch and controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811141103.4A CN110971540B (en) 2018-09-28 2018-09-28 Data information transmission method and device, switch and controller

Publications (2)

Publication Number Publication Date
CN110971540A CN110971540A (en) 2020-04-07
CN110971540B true CN110971540B (en) 2023-04-07

Family

ID=70027835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811141103.4A Active CN110971540B (en) 2018-09-28 2018-09-28 Data information transmission method and device, switch and controller

Country Status (1)

Country Link
CN (1) CN110971540B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660120B (en) * 2021-08-13 2022-07-29 大连海事大学 Software defined network system with programmable data plane action
CN117882356A (en) * 2021-09-10 2024-04-12 华为技术有限公司 Specifying flow and conditional action
CN115412512B (en) * 2022-10-31 2023-03-24 浙江九州云信息科技有限公司 IPv 6-based multi-cloud cross-network intercommunication method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827487A (en) * 2016-05-30 2016-08-03 上海斐讯数据通信技术有限公司 SDN network message flow statistics method, SDN network message flow processing method and SDN network system
CN106559342A (en) * 2016-11-10 2017-04-05 上海斐讯数据通信技术有限公司 It is a kind of based on the protocol port guard method of SDN, device and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827487A (en) * 2016-05-30 2016-08-03 上海斐讯数据通信技术有限公司 SDN network message flow statistics method, SDN network message flow processing method and SDN network system
CN106559342A (en) * 2016-11-10 2017-04-05 上海斐讯数据通信技术有限公司 It is a kind of based on the protocol port guard method of SDN, device and system

Also Published As

Publication number Publication date
CN110971540A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
US11792117B2 (en) Packet processing method and apparatus
WO2018099249A1 (en) Method, device and system for detecting fault in nfv system
TWI472187B (en) Network system,controller,network management method,storage medium,transmission systemand transmission method
CN110971540B (en) Data information transmission method and device, switch and controller
US9680720B1 (en) Operations, administration, and maintenance (OAM) engine
JP2005006303A (en) Virtual network address
CN108234301B (en) Data link switching method and device
CN110011941B (en) Message forwarding method and device
CN115277348B (en) Server management method, server and server management system
CN111614505B (en) Message processing method and gateway equipment
EP3844911A1 (en) Systems and methods for generating network flow information
US20160057043A1 (en) Diagnostic routing system and method for a link access group
EP4246919A1 (en) Packet transmission method, device, and system
CN112291116A (en) Link fault detection method and device and network equipment
CN105610594B (en) Service chain fault diagnosis method and device
CN110581792B (en) Message transmission method and device
CN107612848B (en) Debugging method and device and computer readable storage medium
US20180046559A1 (en) Non-transitory computer-readable storage medium, failure location specification apparatus, and failure location specification method
CN105763347A (en) Method for obtaining parameter, network equipment and system
CN114765633A (en) Network message analysis method and device based on train real-time Ethernet protocol
CN117354197B (en) Virtual network breakpoint detection method and device, terminal equipment and storage medium
CN109710423A (en) A kind of method and apparatus for inter-virtual machine communication
US11606274B1 (en) Method for operations of virtual machines in monitoring cloud activities, system, and device applying the method
EP4412310A1 (en) System and method for processing message, and network apparatus
CN114116338A (en) BMC fault detection function test method, system, terminal and storage medium

Legal Events

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