2. Framing: Flag Bytes with Byte Stuffing with example

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

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

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

    The explanation given in Andrew Tanenbaum is very complicated. This video helped clarify.

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

    I don't know really how to thank u sir no words. Thanks alot.. 🙏🙏🙏..I was like blind folded in dark ... This video means alot for me

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

    u r excellent in delivering concept.pls upload more videos

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

    Materials good and understand able🙏

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

    A Big thanks from Kerala 👌👏👍

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

      Hi !! Thank you so much for appreciation !!!

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

    Good job sir ... Well understood

  • @sonasreedhar.1669
    @sonasreedhar.1669 3 ปีที่แล้ว +1

    Thank you very much sir

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

    really good explanation sir !

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

      Panayiotis Ka Hi! Thank u so much

  • @t.lnnnnx
    @t.lnnnnx 5 ปีที่แล้ว +2

    you know people are indian when they start something with "sir"
    good explanation!

  • @SP-jv5lv
    @SP-jv5lv 6 ปีที่แล้ว +1

    i think It not byte stuffing, its char. Stuffing , by the way very good explanation

  • @saniasharma9638
    @saniasharma9638 6 ปีที่แล้ว +3

    If STX occurs as original text then which additional bit is added STX or DLE

    • @itechnica
      @itechnica  6 ปีที่แล้ว +3

      Sania Sharma Hi !! In case where original data contains DLE STX or DLE ETX characters, the message is always stuffed with an escape character which is DLE in this case.
      Thanks !!!

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

      itechnica thanks

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

      @@itechnica in a case like: a, b, c, ETX, DLE, STX, DLE, DLE, DLE would you stuff each DLE STX or ETX character or just the DLEs?

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

    I saw a document explanation for this subject. Instead of using DLE STX and DLE ETX, he used Flag, Header, ESC, and Trailer.
    So for example, | Flag | Header | Payload | Trailer | Flag |
    And if the message in payload contains the Flag byte, an ESC byte will be added before that byte.
    So is there any differences between your explanation and his explanation? And is there any differences between STX ETX ESC? It makes me little confused to compare these 2 to make my own conclusion.

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

      Hi, It's just a difference of terminology explained by different authors. Both ways are correct.

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

      ​@@itechnica Thank you for fast reply! But (sorry) I have little more questions to ask:
      1. In your explanation:
      The original message is: A A STX A DLE A ETX A DLE ETX
      The correct frame will be: | DLE | STX | A A DLE STX A DLE DLE A DLE ETX A DLE DLE ETX | ETX | DLE | , right?
      2. I make the conclusion is that Flag = ESC (because that author adds ESC before the Flag and you adds the DLE, which is the Flag in his explanation before the byte). Is Flag = ESC correct?
      3. Are DLE ETX STX ECS the same for all computers?
      4. Which method is the most common?
      5. (I'm sorry this question not relate to this video, but) I saw the last method and cannot see the relation between encoding to framing? To me, it's just a method to instead of using original binary, we use Manchester to change that string to another one, but not doing anything with framing to separate messages. Did I understand it wrong?
      Thank you so much

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

      Hi, As I told that it is just different way of representation. So, FLAG and STX or ETX are used to represent starting and ending of frame. Whereas ESC and DLE are considered to be similar (DLE stands for DATA LINK ESCAPE). Payload is the original data to be delivered.
      Thanks.

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

    The following encoding is used in data link protocol: A:01000111; B:11100011; FLAG:01111110; ESC:11100000. What will be the bit sequence for the five characters frame: A B ESC B FLAG when Flag byte with Byte stuffing of framing method is used? How to solve this question? Please sir...

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

      Hi, In Byte Stuffing, start and end of frame are recognized with the help of flag bytes. Each frames starts with and ends with a flag byte. Two consecutive flag bytes indicate the end of one frame and start of the next one.
      General Sequence of Frame is as follows:
      FLAG HEADER PAYLOAD TRAILER FLAG
      In byte stuffing, a special byte called the escape character (ESC) is stuffed before every byte in the message with the same pattern as the flag byte. If the ESC sequence is found in the message byte, then another ESC byte is stuffed before it.
      For E.g. (ORIGINAL CHARACTER --> AFTER STUFFING)
      1). A FLAG B - -> A ESC FLAG B
      2). A ESC B --> A ESC ESC B
      3). A ESC FLAG B --> A ESC ESC ESC FLAG B
      4). A ESC ESC B --> A ESC ESC ESC ESC B
      Similarly, for your question: A B ESC B FLAG --> A B ESC ESC B ESC FLAG will be followed.
      Thanks,
      Team iTechnica

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

    Sir wat if data gets changed how to identify error

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

    Explaination is good but there is much confusion between these STX, DLE , ETX ... And HEAD , ESC and TAIL ... HEAD and TAIL are the starting and ending points of frame. So why everyone is including these terms in between the frame such as A STX DLE B ETX DLE ..