Following an HTTP GET / through Switches, Routers, Gateways, and Proxies (Detailed Examples)

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ต.ค. 2024

ความคิดเห็น • 58

  • @Douglas_Gillette
    @Douglas_Gillette 2 ปีที่แล้ว

    The illustration to me sends your viewers the idea that the destination port is in the trailer. Both the destination and source are in the header. Just my opinion. Great content!

  • @anshikagupta4931
    @anshikagupta4931 2 ปีที่แล้ว

    I appreciate that you cam up with three use cases so its super holistic

  • @chodingninjas7415
    @chodingninjas7415 3 ปีที่แล้ว +1

    More clear explanation than any prof can ever give

  • @saeidkazemi8480
    @saeidkazemi8480 3 ปีที่แล้ว +1

    Hey, guy, I love you, i am crazy about you and your manner of teaching, you are absolutely the best IT, instructor, I've ever seen. Tanks a miliooooooon for your great videos

  • @shashikantsharma3551
    @shashikantsharma3551 3 ปีที่แล้ว +7

    Watching this feels very fascinating and interesting, being a frontend developer and moving to fullstack.

  • @AnasHmamouch
    @AnasHmamouch 3 ปีที่แล้ว +7

    Top notch content. You are truly amazing. Keep going Hussein.

  • @quant-daddy
    @quant-daddy 3 ปีที่แล้ว +3

    you're the best, I'm already a better software engineer listening you talk!

  • @chandramohanjagtap1300
    @chandramohanjagtap1300 3 ปีที่แล้ว +1

    Excellent I am your fan since you have 10k subscriber's Keep this stuff . You explained with real scanario ❤️

  • @Alex00082
    @Alex00082 3 ปีที่แล้ว

    This video made me join as a member. Great content and great explanations. Thank you!

  • @stage666
    @stage666 3 ปีที่แล้ว +30

    Man you are so knowledgeable. I want to work for you

  • @nathansherrard4111
    @nathansherrard4111 3 ปีที่แล้ว

    Just found your channel recently, but really enjoy all your content, including this new one! Awesome channel!
    Couple thoughts/clarifications:
    1) If you go to the final diagram (17:00 to the end), all those source MAC addresses should be different. FF is the MAC of the LAN-facing interface on the local router, but it will have a different MAC on the ISP side, as MAC's are per interface, not per device. Similarly, the proxy would have something unique as well, different from all the others.
    2) This assumes Ethernet is being used for every Layer-2 network along the way. While it's almost certainly Ethernet on your LAN / home network, once we get into the WAN / ISP / Internet world, all sorts of different Layer 2 technologies and encapsulations might be used. So there may or may not be MAC addresses out there.
    3) As Noureddine mentions below, there won't always be a Default route listed on every router between your local router and the destination. While default gateway / routes are how your devices get to your local router, and how your local router talks to the ISP, once we get out into the middle of the Internet, those devices keep full routing tables (maybe up over 600,000 routes in them!).

  • @whatareyoulookingfor6789
    @whatareyoulookingfor6789 3 ปีที่แล้ว

    You are so so so much better than my college professor! Thanks!

  • @Naren061982
    @Naren061982 3 ปีที่แล้ว

    You are such a big inspiration ! Truely must watch video for any computer Engineer ❤️ wow !

  • @kumarprateek1279
    @kumarprateek1279 3 ปีที่แล้ว +2

    Someday I will be as good backend engineer as you are.

    • @ibknl1986
      @ibknl1986 3 ปีที่แล้ว

      May Allah (God) guide and bless you in your wish of becoming a very good back end developer.

  • @venkateswaran8752
    @venkateswaran8752 3 ปีที่แล้ว

    fantastic explanation.Keep going Hussein

  • @pravinyo
    @pravinyo 3 ปีที่แล้ว

    nicely explained. I always struggled to understand in college times

  • @ofek73340
    @ofek73340 3 ปีที่แล้ว

    this is epic!!!!! please please please make more network videos

  • @saadowain3511
    @saadowain3511 3 ปีที่แล้ว

    لبى قلبك يابو ناصر. و جزاك الله خير.

  • @veetmoradiya4947
    @veetmoradiya4947 2 ปีที่แล้ว

    Nice Explanation Sir

  • @Kekszmester
    @Kekszmester 3 ปีที่แล้ว +2

    This stuff is gold!!!

  • @sivagabbi127
    @sivagabbi127 3 ปีที่แล้ว +2

    Super video! I applauded for €2.00 👏

    • @hnasr
      @hnasr  3 ปีที่แล้ว

      🙏❤️

  • @nournote
    @nournote 3 ปีที่แล้ว +1

    Excellent as usual.
    Some remarks though:
    - 21:32 is it relevant to talk about a proxy being able to know where client want to go?
    In fact, it MUST know where the client wants to go.
    In the case of an HTTPS Proxy, the proxy acts as a man in the middle. The browser encrypts data using the proxy's key. The proxy then reestablishes a proper TLS session with the destination server. The latter doesn't any idea whatsoever about the client.
    - Maybe it is worth mentioning that routers in the route between te client and the web server (except the home router) rarely use the default gateway logic, instead every router maintains a routing table and decides where to hand every packet based on that table and on the destination.
    - Idea for another video : suppose the server is behind a reverse proxy and do the same logic end to end.

  • @vivekatbitm
    @vivekatbitm 3 ปีที่แล้ว

    Great video, please make another video to show how server sends response to the source system present inside LAN.

  • @sasaa4908
    @sasaa4908 3 ปีที่แล้ว

    Thank you for this very informative video 👍.

  • @nguyentrananhnguyen7900
    @nguyentrananhnguyen7900 2 ปีที่แล้ว

    question:
    Then what is the best practices for scanning and establishing connections through wifi safely?

  • @viveksai9353
    @viveksai9353 3 ปีที่แล้ว

    Enlightment looks like this.😀 Could you do a video on multipath TCP?

  • @himanishmunjal8678
    @himanishmunjal8678 2 ปีที่แล้ว

    Hi Hussein, great video as always. I have one small doubt mentioned below
    When the packet moves at every hop from router1 to router2, should it not have a MAC address of router1 at source address? In the last section of your video, I see that even after packet reaching proxy, its source address MAC is for 1st router (gateway of actual source machine), rather than whatever was the last router.
    Not sure what's the best way to reach out to you so reaching here.

  • @siddhantchavan1370
    @siddhantchavan1370 3 ปีที่แล้ว

    simply amazed good work

  • @aakashrocks89
    @aakashrocks89 3 ปีที่แล้ว +2

    Thank you Hussein for such an awesome deep explanation. I have one question here. How the 1.2.3.4 knows where the response needs to reach?? Is there a persistent tcp connection between all the routers and party involved?

    • @hnasr
      @hnasr  3 ปีที่แล้ว +1

      If you noticed we had the source ip/source port added so the server knows where to respond back.

    • @aakashrocks89
      @aakashrocks89 3 ปีที่แล้ว +1

      Thank you so much.. my bad.. so basically everybody backtrack and cascade response.

  • @Algoritmik
    @Algoritmik 3 ปีที่แล้ว +2

    04:00 The whole thing is "network of networks"

  • @mggarekar
    @mggarekar 3 ปีที่แล้ว +1

    in scenario 3, when client talks to end server, via proxy, do we have single TCP connection?

  • @sairam-lj6zu
    @sairam-lj6zu 3 ปีที่แล้ว

    Great content. I hope the VPN also works in the same way as to use case 3 right?

  • @ayxanalifov2791
    @ayxanalifov2791 3 ปีที่แล้ว

    Hi, GREAT CONTENT !!!
    One thing just to kindly remind
    in 20:15 is the third packet source mac address misspelled?
    I think the source mac address of the third packet should be the mac address of the 7.6.4.5 proxy. (But i am not sure ))))

  • @empuraan4710
    @empuraan4710 2 ปีที่แล้ว +1

    200K subs Hussein!

  • @dragon_warrior_
    @dragon_warrior_ 3 ปีที่แล้ว

    today for the first time I learned about what proxy does actually lol

  • @alfre2valles
    @alfre2valles 3 ปีที่แล้ว

    Thank you! Amazing content. How do you draw the beautiful schematics used in the video? Any specific program for that? Best regards

  • @meninja111
    @meninja111 3 ปีที่แล้ว +1

    Hey Hussein, I have a question. So In example 2, the router removes all information of machine AA and put it's own IP and MAC. now If the server(1.2.3.4) wants to respond to machine AA, it can't because all requests are coming from the router essentially so the server can only respond to the router. Now the router has to figurer out who really requested right ? Does the router maintains this request-response mapping ?

    • @hnasr
      @hnasr  3 ปีที่แล้ว

      Correct the router maintains a table called NAT (network address translation) that maps internal hosts to external router ip/port check out my video on the topic th-cam.com/video/RG97rvw1eUo/w-d-xo.html

    • @meninja111
      @meninja111 3 ปีที่แล้ว

      @@hnasr Thank you very much Hussein. Your content is really useful. Keep it up :)

  • @raulcattelan4506
    @raulcattelan4506 3 ปีที่แล้ว

    Thanks for the video

  • @hariomkuntal9520
    @hariomkuntal9520 2 ปีที่แล้ว

    Thanks!

  • @mahbubdeadman1
    @mahbubdeadman1 3 ปีที่แล้ว

    Good stuff. Can you do a video on the choice between server side rendering using something like EJS vs using AJAX to get the data? When is which method preferred?

  • @mrstatler
    @mrstatler 4 หลายเดือนก่อน

    I guess this is not important but shouldn't source MAC address of packer 3 (leaving the Proxy) in the 3rd case (via Proxy) be different than FF (gateway MAC), like Proxy MAC address?

  • @ГаджимрадИсрафилов
    @ГаджимрадИсрафилов 3 ปีที่แล้ว

    👍👍👍

  • @officialak47buda63
    @officialak47buda63 3 ปีที่แล้ว

    Very interesting friend!

  • @anshikagupta4931
    @anshikagupta4931 3 ปีที่แล้ว

    woaaahhhhhh

  • @abdelhadisabani
    @abdelhadisabani 3 ปีที่แล้ว

    love u bro, keep going

  • @Anto-mi5pn
    @Anto-mi5pn 3 ปีที่แล้ว

    I have a doubt: why does a fetch request not follow a server redirect? And even if I make the request manual, there's no information whatsoever about the redirect url.

    • @hnasr
      @hnasr  3 ปีที่แล้ว +1

      The redirect info is on the headers I believe. It might me a conscious choice by whoever wrote fetch to make it simple

    • @Anto-mi5pn
      @Anto-mi5pn 3 ปีที่แล้ว

      @@hnasr And a redirected fetch request with the "follow" option makes a subsequent fetch request to the redirected url instead of changing the location's href. It could have been so much simpler.

  • @nikhilramabhadra6052
    @nikhilramabhadra6052 3 ปีที่แล้ว +1

    Read Computer Networks by Andrew S Tanenbaum. It has everything.