Related resources and tutorial recommendations for Python SDX Platform libraries
Python SDX platform library related resources and tutorial recommendations
SDX (Software DEFINED Exchange) is a framework that is used to create and manage virtualized WAN (WAN) on the communication network.Python is a powerful programming language. Because of its rich class library, it is widely used in network programming and the development of SDX platforms.
In Python, some libraries can help developers build and manage the SDX platform.The following are some related resources and tutorials, which gives some suggestions that start learning and practice in this field.
1. PySDX: https://github.com/faucetsdn/pysdx
PYSDX is an open source project that provides a class library to build the SDX platform using Python.It allows you to create a virtual autonomous system (AS) and marginal network, and realize the functions of routing control and flow engineering.
Example code:
from sdx.core import SDXController
sdx = SDXController()
sdx.create_as(1, "AS1")
sdx.create_as(2, "AS2")
sdx.connect(1, 2)
The above examples create two autonomous system AS1 and AS2 and connect them together.
2. Ryu: https://ryu-sdn.org/
Ryu is a Python -based SDN (Software Defined Networking) controller platform, which is suitable for building SDN and SDX platforms.It provides many libraries and functions for developing SDN controllers.
Example code:
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.lib.packet import packet
from ryu.lib.packet import ethernet
class SDXController(app_manager.RyuApp):
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
def packet_in_handler(self, ev):
msg = ev.msg
pkt = packet.Packet(msg.data)
eth = pkt.get_protocol(ethernet.ethernet)
if eth.ethertype == ether_types.ETH_TYPE_IP:
# Ip packet
...
elif eth.ethertype == ether_types.ETH_TYPE_IPV6:
# Ipv6 packet
...
The above example uses the RUU class library to implement a SDX controller and process the data packet on the OpenFlow switch.
3. SDX Platform Tutorial: https://alistra-systems.com/blog/sdx-platform-tutorial/
This is a SDX platform tutorial written by Alistra Systems, using Python and SDX libraries to build a prototype.The tutorial introduces the concept, code implementation and configuration of SDX in detail.
The example code and configuration instructions can be found in the tutorial.
Summarize:
The above resources and tutorials provide a good starting point to learn and practice the development of the Python SDX platform.You can further learn about the concepts, characteristics and applications of SDX by in -depth study of these materials and apply it to specific projects.