Sockets in Operating System

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 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 7 หลายเดือนก่อน

      @@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.

  • @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 .

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

    I rarely comment on these videos but this saved me

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

    Awesome and quality video!!! no exaggeration

  • @human-011
    @human-011 4 ปีที่แล้ว +3

    God bless you guys, thanks for the course

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

    so much clarity. Great

  • @vladislavkaras491
    @vladislavkaras491 4 หลายเดือนก่อน +1

    Great explanation!
    Thanks for the video!

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

    Thank you NESO TEAM.

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

    I think this is the better one. Thanks ❤🎉

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

    Very informative and detailed. Thanks for the video!

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

    Thank you for this. It was very informative.

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

    Amazing explanation

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

    wonderful explanation

  • @leroyvan7357
    @leroyvan7357 7 หลายเดือนก่อน +1

    thanks very much for sharing to us these nkowledges

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

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

  • @varshagupta5843
    @varshagupta5843 5 ปีที่แล้ว +2

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

    • @atulv46
      @atulv46 5 ปีที่แล้ว

      Right

  • @fernandojackson7207
    @fernandojackson7207 5 หลายเดือนก่อน

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

  • @moongahamenokachinda2955
    @moongahamenokachinda2955 ปีที่แล้ว

    Very well explained. Thanks!

  • @sophiaonyoutube
    @sophiaonyoutube 7 หลายเดือนก่อน

    very well-explained! thanks!

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

    Well explained

  • @f.j.bradman1761
    @f.j.bradman1761 5 ปีที่แล้ว +2

    great courses, thank you

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

    Thank you for the very great video

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

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

  • @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.

  • @ManzoorHussain-gz1vk
    @ManzoorHussain-gz1vk 4 ปีที่แล้ว +2

    Thank you very much, sir.

  • @reenaradha6382
    @reenaradha6382 6 ปีที่แล้ว +1

    Please upload videos on further more topics

  • @farahmohamed2104
    @farahmohamed2104 ปีที่แล้ว

    absolutely beneficial

  • @జలపుష్పం
    @జలపుష్పం 6 ปีที่แล้ว +2

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

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

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

  • @david6400
    @david6400 ปีที่แล้ว

    very clear thanks

  • @makejokeof-fununlimitedzon3605
    @makejokeof-fununlimitedzon3605 6 ปีที่แล้ว +3

    Please upload the videos of threads in OS n Deadlock

  • @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

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

    Thanks for socket!

  • @soumyadeeproy7605
    @soumyadeeproy7605 ปีที่แล้ว

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

  • @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.

  • @juliannafotheringham7101
    @juliannafotheringham7101 ปีที่แล้ว

    awesome video!

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

    Good work! Thak you.

  • @saniumar1358
    @saniumar1358 ปีที่แล้ว

    Very good 👍

  • @abdubadan5726
    @abdubadan5726 11 หลายเดือนก่อน

    Plzz do something about synchronization.

  • @SardarTayyabALI-i8u
    @SardarTayyabALI-i8u ปีที่แล้ว

    sir thanku so much

  • @mhtyphoon7524
    @mhtyphoon7524 4 ปีที่แล้ว

    It is really helpful

  • @subee128
    @subee128 9 หลายเดือนก่อน

    Thank you so much

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

    Thanks

  • @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

  • @aditya.bhadauriya
    @aditya.bhadauriya 5 ปีที่แล้ว +1

    Sir , please upload the videos on process synchronization

  • @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

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

    nice one !!!

  • @harjapx
    @harjapx 5 ปีที่แล้ว

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

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

    ty

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

    Superior illustration with socket in IPC

  • @abhishekmahor6700
    @abhishekmahor6700 ปีที่แล้ว

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

  • @daomingsun486
    @daomingsun486 4 ปีที่แล้ว

    easy to understand!

  • @TheCelicasupraify
    @TheCelicasupraify 11 หลายเดือนก่อน

    You're awesome

  • @amirhoseinrnx9084
    @amirhoseinrnx9084 ปีที่แล้ว +9

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

  • @ssersumitec
    @ssersumitec 4 ปีที่แล้ว

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

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

    So sockets are just port numbers?

  • @ubaidmanzoorwani7491
    @ubaidmanzoorwani7491 6 ปีที่แล้ว +1

    sir plzz upload all the videos fast

  • @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.

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

    How do i get ur presentation .

  • @ohaRega
    @ohaRega 4 ปีที่แล้ว

    Nice

  • @inconclusive6503
    @inconclusive6503 5 ปีที่แล้ว

    helpful

  • @parasbhutani1515
    @parasbhutani1515 5 ปีที่แล้ว

    pls add remaining videos

  • @prasad5337
    @prasad5337 6 ปีที่แล้ว

    Sir add remaining lessons before sem exam

  • @AlliAliyu
    @AlliAliyu 10 วันที่ผ่านมา

    Networking

  • @noviljohnsonnovil1676
    @noviljohnsonnovil1676 5 ปีที่แล้ว

    plz upload remaining vdo's .

  • @maddakasivasankar7354
    @maddakasivasankar7354 5 ปีที่แล้ว

    Sir plz upload more videos

  • @rajivattri20
    @rajivattri20 5 ปีที่แล้ว

    sir please complete this subject

  • @sonusambharwal8828
    @sonusambharwal8828 6 ปีที่แล้ว

    Sir, theorems nahi mili network theory mein

  • @anuragpandey7283
    @anuragpandey7283 5 ปีที่แล้ว

    sir more video please fast

  • @srihariyallala407
    @srihariyallala407 6 ปีที่แล้ว

    Sir plz add remaining fastly

  • @hdm_vision
    @hdm_vision 5 ปีที่แล้ว

    Upload more plz

  • @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.

  • @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

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

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

  • @rahulsonone1356
    @rahulsonone1356 4 ปีที่แล้ว

    Yeep

  • @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!