Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing Table에 존재하는지 확인 #34

Open
jhYun505 opened this issue Nov 24, 2022 · 4 comments
Open

Routing Table에 존재하는지 확인 #34

jhYun505 opened this issue Nov 24, 2022 · 4 comments
Assignees

Comments

@jhYun505
Copy link
Owner

  • Routing Table에 있는지 확인
  • 없으면 ARP
@jhYun505
Copy link
Owner Author

패킷의 목적지 주소를 이용하여 Routing Table에 등록된 route entry 비교 탐색
=> Router Entry 찾으면 Flag 확인

  • Flag가 U 이면 ARP 과정을 통해 패킷의 목적지(Host2)의 MAC 주소 알아낸 뒤 패킷의 목적지로 패킷을 전송
  • FLAG가 UG이면 ARP 과정을 통해 해당 route entry의 Gateway의 MAC 주소를 알아낸 뒤 Gateway로 패킷을 전송
  • 전송 시 해당 route entry의 interface를 통해서 패킷을 전송

@jhYun505 jhYun505 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2022
@jhYun505
Copy link
Owner Author

뭔가 잘못된 것 같아서 다시 확인하겠습니다!!!

@jhYun505 jhYun505 reopened this Nov 25, 2022
@rladh06
Copy link
Collaborator

rladh06 commented Nov 25, 2022

뭔가 잘못된 것 같아서 다시 확인하겠습니다!!!

@jhYun505
Copy link
Owner Author

jhYun505 commented Nov 25, 2022

댓글로 단 내용은 Routing시에 진행하는 내용 같네요!
Masking 사용해서 Routing Table에 있는지 확인
있으면 index나 ROUTING_ENTRY 반환
없으면 맨 마지막 default 반환 이런식으로 하면 될 것 같아요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants