In the new generation of network technology innovation,the combination of segment routing technology and software defined network has attracted extensive attention in the industry.SDN proposes a centralized control idea,and soon after,a domain-specific data plane programming language P4 also appeared.It increases the flexibility of the SR data plane application through the advantage of customizing the packet content,and provides a stable,reliable,flexible and controllable routing networking mode for the SR data plane.Therefore,based on P4 technology,this paper does some research on SR networking and resource optimization design of flow tables.The main work is as follows:First,in the SDN network environment,this paper proposes the design and implementation of segment routing network based on P4.Perform detailed analysis from two perspectives of data plane and control plane.The control plane uses a global network perspective to select key network nodes for the SR network to pass through.On the data plane,the P4 custom pipeline is used to process the SR network data flow,and the SRv6 Policy is implemented through P4 to implement end-to-end forwarding of key path points to expand the traffic diversion capability of the SR network.Secondly,as the scale of the SR network expands,the number of flows that the switch needs to process will also increase.At this time,the network performance often depends on the number of flow tables stored in the switch.To solve this problem,this paper proposes a method for optimizing flow table resources in P4 switches.When the number of flow tables reaches a certain threshold,detect the last packet of TCP traffic,and if it detects that it contains the connection end(FIN)and reset(RST)identifiers,delete the corresponding flow entry from the flow table immediately instead of Wait until the connection timeout expires before deleting.Finally,for the SR routing networking design scheme,in the software-defined network environment,this paper implements the SRv6 networking test and the simulation verification of the SR network flow table resource optimization scheme in the P4 switch. |