Sockets in Operating System

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 103

  • @calmsh0t
    @calmsh0t 5 лет назад +155

    As a self-taught programmer, I thank you very much! As someone who cannot afford to get another degree but wants to not stay behind my degreed competition, channels like yours are saving me! Really looking forward to more videos.

    • @justcurious1940
      @justcurious1940 Год назад +1

      Did u make it as self taught programmer ?

    • @calmsh0t
      @calmsh0t Год назад +4

      @@justcurious1940 Yes I have a very successful carreer at a quite big tech company.

    • @justcurious1940
      @justcurious1940 Год назад +2

      @@calmsh0t congratulation brother, I'm also a self-taught, do u have any advices on what programming languages should I focus on and what courses should I take and how many months it will take me.

  • @DaiMoscv
    @DaiMoscv 2 года назад +44

    Here is what I understood:
    In order establish a connection between client and server we need sockets. Sockets are end point of communication and it can be identified by IP address, port number. Each process that is communicating has a socket. Servers that have specific services listen to specific socket ports. So when connection request comes from a client the server would be listening to specific port and accepts the request from client socket to complete the connection.
    From host side or client side the process's sockets port number must be above 1024 because below 1024 ports are reserved for specific purpose.

  • @vitaliipaprotskyi3815
    @vitaliipaprotskyi3815 3 года назад +18

    The best & simplest explanation of sockets I found! Thank you very much!

  • @bayroncabrera7566
    @bayroncabrera7566 3 года назад +10

    Amazing Work, more people like this is what the education system needs, people who really care and love what they do, Thanks !

  • @quratraja7391
    @quratraja7391 4 года назад +16

    Well explained.
    So, sockets are used to establish communication between processes especially in client server model. Sockets are IP addresses concatenated with port number. When a process at client system wants to communicate and request for information from server, it is assigned a socket consisting of IP address of that system with port number. Port number should be greeter then 1024 as port numbers below this are standard.

    • @invinciblegirl4386
      @invinciblegirl4386 2 года назад +1

      Sir what if two hosts require same well known services at same time, then both will have same port numbers..! Then how will the socket uniquely identify the process ???

    • @nilanjanmukhopadhyay8369
      @nilanjanmukhopadhyay8369 2 года назад +1

      @@invinciblegirl4386 While sending a request (being a client) it can use any port number above 1024. This port would only be used by the OS to determine which process should get the response when the response come from the server.
      So if a single computer wants to be a client and http-server simultaneously (which is pretty common thing) it can use port 80 for serving contents and any other ports above 1024 to send request to other servers.

    • @whatup20eleven
      @whatup20eleven 2 года назад +2

      if u want to go in detail on this subject ... try to pirate a book called "Unix network programming vol1 network programming api- 3rd edition"

    • @arjunreddy3615
      @arjunreddy3615 8 месяцев назад

      @@invinciblegirl4386 If you are implying multiple hosts as in two differenrt systems, you will have different Ips addresses right. And if are accessing the well known service say http (port 80) from the same system multiple times, you will bw given a socket with different port numbers grater than 1024 without conflicting and there should not be any problem finding the client that requested a service from server.

  • @hoangminhchau2187
    @hoangminhchau2187 Год назад +3

    Sockets are another way for the processes to communicate with each other. It's specifically used for client-server base systems.
    A socket is a combination of an IP address and a port.
    The port for a server is under 1024.
    Servers implementing specific services listening to specific ports (telnet 23, HTTP 80, ftp 21)

  • @rafaeldias4230
    @rafaeldias4230 3 года назад +2

    Bro you are great , thanks for the tutorial, better explained than any technical book i have.

  • @techtechlearn3438
    @techtechlearn3438 2 года назад +2

    Awesome and quality video!!! no exaggeration

  • @vladislavkaras491
    @vladislavkaras491 4 месяца назад +1

    Great explanation!
    Thanks for the video!

  • @michaelhierl6656
    @michaelhierl6656 2 года назад

    I rarely comment on these videos but this saved me

  • @mrpaasha
    @mrpaasha Год назад +1

    I think this is the better one. Thanks ❤🎉

  • @rashidansari4176
    @rashidansari4176 3 года назад +1

    Thank you NESO TEAM.

  • @danielrlutz
    @danielrlutz 2 года назад +2

    Very informative and detailed. Thanks for the video!

  • @suryaramesh3454
    @suryaramesh3454 2 года назад +1

    so much clarity. Great

  • @deannalipowicz2862
    @deannalipowicz2862 2 года назад +2

    Thank you for this. It was very informative.

  • @human-011
    @human-011 4 года назад +3

    God bless you guys, thanks for the course

  • @narutoop3190
    @narutoop3190 4 года назад +11

    Sir instead of reading ppt points again and again you can give some examples which will help audience to understand the topic in a better way, and also it will increase the length of video with effective content .

  • @leroyvan7357
    @leroyvan7357 7 месяцев назад +1

    thanks very much for sharing to us these nkowledges

  • @AtanuDebnath
    @AtanuDebnath 4 года назад +2

    thanks a lot sir! your videos are really a boon for students :):):)

  • @sophiaonyoutube
    @sophiaonyoutube 7 месяцев назад

    very well-explained! thanks!

  • @monicatiwari6182
    @monicatiwari6182 2 года назад +1

    wonderful explanation

  • @soayelakter
    @soayelakter 3 года назад +1

    Amazing explanation

  • @moongahamenokachinda2955
    @moongahamenokachinda2955 Год назад

    Very well explained. Thanks!

  • @vanluutran726
    @vanluutran726 Год назад +1

    Thank you for the very great video

  • @rajeshkumarrout0141
    @rajeshkumarrout0141 2 года назад +1

    Well explained

  • @farahmohamed2104
    @farahmohamed2104 Год назад

    absolutely beneficial

  • @varshagupta5843
    @varshagupta5843 5 лет назад +2

    please make a lectures on rest of the chapters..it will be very helpful to us...

  • @juliannafotheringham7101
    @juliannafotheringham7101 Год назад

    awesome video!

  • @ManzoorHussain-gz1vk
    @ManzoorHussain-gz1vk 4 года назад +2

    Thank you very much, sir.

  • @f.j.bradman1761
    @f.j.bradman1761 5 лет назад +2

    great courses, thank you

  • @MamToCos
    @MamToCos 4 месяца назад

    Good work! Thak you.

  • @david6400
    @david6400 Год назад

    very clear thanks

  • @trilecao9014
    @trilecao9014 3 года назад

    Thanks for socket!

  • @జలపుష్పం
    @జలపుష్పం 6 лет назад +2

    Sir Kindly upload all the videos that will help us for UGC NET exam
    Thank you Sir

  • @saniumar1358
    @saniumar1358 Год назад

    Very good 👍

  • @SardarTayyabALI-i8u
    @SardarTayyabALI-i8u Год назад

    sir thanku so much

  • @reenaradha6382
    @reenaradha6382 6 лет назад +1

    Please upload videos on further more topics

  • @subee128
    @subee128 9 месяцев назад

    Thank you so much

  • @akshadrathod9203
    @akshadrathod9203 2 года назад

    nice one !!!

  • @mhtyphoon7524
    @mhtyphoon7524 4 года назад

    It is really helpful

  • @makejokeof-fununlimitedzon3605
    @makejokeof-fununlimitedzon3605 6 лет назад +3

    Please upload the videos of threads in OS n Deadlock

  • @sajadtorkamani9399
    @sajadtorkamani9399 2 года назад

    Thanks

  • @TheCelicasupraify
    @TheCelicasupraify 11 месяцев назад

    You're awesome

  • @fernandojackson7207
    @fernandojackson7207 5 месяцев назад

    Excelent video. Still, are all requests by clients served, or are there processes in place to deny malicious requests?

  • @bag_of_pixels
    @bag_of_pixels Месяц назад

    so basically mechanism is:
    host -----------------------------------------------------------------> server
    http -> tcp -> socket -> network -> socket -> tcp -> http
    right?

  • @rp4519
    @rp4519 6 лет назад +9

    Sir plz upload more videos fast. my exams are near plzz sir

    • @wirito
      @wirito 6 лет назад

      Lol I know. Stop everything! Put a pause to everything in your life and finish this playlist pleeeeease :D

  • @aditya.bhadauriya
    @aditya.bhadauriya 5 лет назад +1

    Sir , please upload the videos on process synchronization

  • @KrishanKumar-ei8ej
    @KrishanKumar-ei8ej 3 года назад +2

    Can you please make lectures on POSIX and Pipes as they are also a part of IPC ?

    • @fawadmirza.
      @fawadmirza. 3 года назад

      Even I want to know about POSIX

  • @JuiceManTech
    @JuiceManTech 2 года назад

    So the PC chooses the host registered or ephemeral port and not the Router? Thanks for the video, very informative.

  • @daomingsun486
    @daomingsun486 4 года назад

    easy to understand!

  • @ghizlanehamdan14
    @ghizlanehamdan14 2 года назад

    ty

  • @abdubadan5726
    @abdubadan5726 Год назад

    Plzz do something about synchronization.

  • @faadi4536
    @faadi4536 4 года назад +2

    Its very well explained but I have one question for you. If the host has been assigned a different port number and he is trying to request for HTTP on port 80, shouldn't host must request for port 80 request from his socket? As per my understanding, web server is listening on port 80 and any client who will request the services of this port, server will only accept the address specified with port 80. please clarify this confusion. I will really appreciate this.

    • @Sudhirkumar-sk8up
      @Sudhirkumar-sk8up 3 года назад

      server put a firewall and server admin configure firewall , here admin will write some rules that if a request is comes at port 80 then redirect this to port this and that. and here firewall provide basic level of security to the server. authentication and authorization can be implemented at firewall. everyone follow standard because os will put standard port to standard services.

    • @Sudhirkumar-sk8up
      @Sudhirkumar-sk8up 3 года назад

      if your server is listening at port 8080 then it must be defined in packet. so it's responsibility of client process to assign appropriate port no to server process. because if a company is providing server application then either it should provide a client application or listen to standards port for standard process. or use firewall to redirect traffic.

  • @eobardthaw
    @eobardthaw 3 года назад +1

    Superior illustration with socket in IPC

  • @harjapx
    @harjapx 5 лет назад

    Can you add the rest of the videos in playlist please??

  • @thewinner4424
    @thewinner4424 2 года назад +1

    How can the client socket's know the port of web server socket's? And if there is in the web server a lot of application that have the same port 80 how the socket gonna know the application that i need to connect with

  • @mfaani
    @mfaani 3 года назад +2

    Does the server need to use multiple different ports for handling requests? Or all of them will be handled on port 80?

    • @soayelakter
      @soayelakter 3 года назад

      all of them are going to handle on port 80

    • @soayelakter
      @soayelakter 3 года назад

      But During the three-way handshake, the client process knocks on the welcoming door
      of the server process. When the server “hears” the knocking, it creates a new door-
      more precisely, a new socket that is dedicated to that particular client.

  • @soumyadeeproy7605
    @soumyadeeproy7605 Год назад

    is this helpful for multiple clients communicating with a single server by creating sockets for each server-client communication?

  • @amirhoseinrnx9084
    @amirhoseinrnx9084 Год назад +9

    repeated every sentence more than 10 times doesn't make it more understandable

  • @abhishekmahor6700
    @abhishekmahor6700 Год назад

    is it possible to use message passing in client server system?

  • @Strasbourgeois
    @Strasbourgeois 3 года назад

    So sockets are just port numbers?

  • @ohaRega
    @ohaRega 4 года назад

    Nice

  • @ssersumitec
    @ssersumitec 4 года назад

    How many connections that a server can accept at a time?

  • @inconclusive6503
    @inconclusive6503 5 лет назад

    helpful

  • @ubaidmanzoorwani7491
    @ubaidmanzoorwani7491 6 лет назад +1

    sir plzz upload all the videos fast

  • @AlliAliyu
    @AlliAliyu 13 дней назад

    Networking

  • @venigallamanideep5901
    @venigallamanideep5901 3 года назад

    How do i get ur presentation .

  • @sonusambharwal8828
    @sonusambharwal8828 6 лет назад

    Sir, please send the link of filters and theorems chapter in network theory.

  • @mdsarfarazansari3844
    @mdsarfarazansari3844 5 лет назад

    Sir plz upload more videos fast.

  • @prasad5337
    @prasad5337 6 лет назад

    Sir add remaining lessons before sem exam

  • @parasbhutani1515
    @parasbhutani1515 5 лет назад

    pls add remaining videos

  • @sonusambharwal8828
    @sonusambharwal8828 6 лет назад

    Sir, theorems nahi mili network theory mein

  • @rajivattri20
    @rajivattri20 5 лет назад

    sir please complete this subject

  • @srihariyallala407
    @srihariyallala407 6 лет назад

    Sir plz add remaining fastly

  • @noviljohnsonnovil1676
    @noviljohnsonnovil1676 5 лет назад

    plz upload remaining vdo's .

  • @anuragpandey7283
    @anuragpandey7283 5 лет назад

    sir more video please fast

  • @maddakasivasankar7354
    @maddakasivasankar7354 5 лет назад

    Sir plz upload more videos

  • @Zeresrail
    @Zeresrail 5 лет назад +10

    Just a bit of constructive criticism: There is no need to repeat the same thing 3 times, all the while it is on the screen.

    • @IzzersKeeper
      @IzzersKeeper 5 лет назад +11

      Repetition is actually something educators are taught to do; important concepts should be repeated 2-3 times to reinforce them, particularly in a lecture or video where the information is being presented in a primarily auditory format. (Many people just listen but don't necessarily watch the screen. While some students will catch it the first time through, it just reinforces the information to hear it again and, more importantly, it helps the majority of students to absorb the material.

    • @dumbskull5593
      @dumbskull5593 4 года назад +1

      @@IzzersKeeper Exactly. I actually find it nice that he goes through the same statement multiple times. But then again, I understand others' frustration of not liking this

  • @hdm_vision
    @hdm_vision 5 лет назад

    Upload more plz

  • @rahulsonone1356
    @rahulsonone1356 4 года назад

    Yeep

  • @dragosmakovei
    @dragosmakovei 2 года назад +2

    You repeat yourself too many times (actualy reading the same thing too many times). It's ok, I can replay the video if I don't understand. No need to repeat so many times.

  • @IndyR0ck
    @IndyR0ck 4 месяца назад

    This video could be 2 minutes as every sentence is repeated like 5 times LOL

  • @exe.m1dn1ght
    @exe.m1dn1ght Год назад

    he's just reading from wikipedia, doesn't explain nothing at all

  • @RidiculousTech
    @RidiculousTech 6 лет назад

    1st

  • @EdchelStephenNini
    @EdchelStephenNini 2 месяца назад

    Thank you sir!