...
코드 블럭 | ||
---|---|---|
| ||
# 1) Tunnel Ingress Rule -------- 터널을 통한 패킷 수신 시에 터널 포트에 관한 테이블 작성 table_entry = p4info_helper.buildTableEntry( table_name="MyIngress.ipv4_lpm", match_fields={ "hdr.ipv4.dstAddr": (dst_ip_addr, 32) }, action_name="MyIngress.myTunnel_ingress", action_params={ "dst_id": tunnel_id, }) ingress_sw.WriteTableEntry(table_entry) print("Installed ingress tunnel rule on %s" % ingress_sw.name) #2) Tunnel Transit Rule --------- 테이블과의 매칭을 통해 패킷 전송에 관한 것 table_entry = p4info_helper.buildTableEntry( table_name="MyIngress.myTunnel_exact", match_fields={ "hdr.myTunnel.dst_id": tunnel_id }, action_name="MyIngress.myTunnel_forward", action_params={ "port": SWITCH_TO_SWITCH_PORT }) ingress_sw.WriteTableEntry(table_entry) print("Installed transit tunnel rule on %s" % ingress_sw.name) # 3) Tunnel Egress Ruletable_entry = p4info_helper.buildTableEntry( -------- 패킷 송신 시에 터널 포트에 관한 테이블 작성 table_name="MyIngress.myTunnel_exact", match_fields={ "hdr.myTunnel.dst_id": tunnel_id }, action_name="MyIngress.myTunnel_egress", action_params={ "dstAddr": dst_eth_addr, "port": SWITCH_TO_HOST_PORT }) egress_sw.WriteTableEntry(table_entry) print("Installed egress tunnel rule on %s" % egress_sw.name) |
2/
...
17
- ECN( Explicit Congestopm Notification )
- MRI ( Multi-Hop Route Inspection )
일일회고
2 / 13 | 2/14 | 2/15 | 2/16 | 2/17 | |
---|---|---|---|---|---|
Facts | Vagrant를 이용하여 간단한 VM이미지 설치 및 활용 P4 스위치를 활용한 간단한 실습, wireshark를 이용한 패킷 캐치 | 부서업무지원 일을 모두 처리. 들어야 하는 교육자료 모두 수강 완료. | |||
Feeling | vagrant 이미지를 처음 사용해봐서 버벅거렸지만, 다른 인턴 직원의 도움으로 쉽게 할 수 있었습니다. P4가 무엇을 하는지 조금 더 알아야한다고 생각햇습니다. | P4 스위치에 대해서 알아보기에 신체적으로 힘듬을 느껴 오늘 하루는 서류 작업 및 끝낼 수 있는 과제들 모두 해결. | |||
Finding | 다음에 행할 실습에 대비해서 P4스위치에 대해서 개념적으로 접근해야 될것같습니다. | 내일부터는 다시 부서 실습에 맞는 교육 실습에 임해야 겠다. |
...