URLs, DNS and bit streaming · URLs, DNS e streaming de bits
| English | Português |
|---|---|
| Domain Name System/dəˈmeɪn neɪm ˈsɪstəm/ | Sistema de Nomes de Domínio |
| Uniform Resource Locator/ˈjuːnɪfɔːm rɪˈzɔːs ləʊˈkeɪtə/ | Localizador Uniforme de Recursos |
| protocol/ˈprəʊtəkɒl/ | protocolo |
| domain name/dəˈmeɪn neɪm/ | nome de domínio |
| resolver/rɪˈzɒlvə/ | resolutor |
| bit streaming/bɪt ˈstriːmɪŋ/ | transmissão de bits |
| real-time/rɪəl taɪm/ | em tempo real |
| on-demand/ɒn dɪˈmænd/ | sob demanda |
| buffer/ˈbʌfə/ | tamponamento |
| bit rate/bɪt reɪt/ | taxa de bits |
| lossy/ˈlɒsi/ | com perda |
| compression/kəmˈpreʃn/ | compressão |
The phone book that ran the internet
- Until 1983 every computer on the internet found the others by downloading one text file, HOSTS.TXT, from a single machine at Stanford. Every time a new computer joined, the file grew and everyone fetched it again.
- Paul Mockapetris replaced the file with a distributed system of servers, each answering for its own part of the name space. He called it the Domain Name System.
- It is why you type a name and not twelve digits, and why a website can move house without telling you.
- This lesson is the address you type, the system that looks it up, and how a video reaches you before it has finished arriving.
O livro telefônico que operava a internet
- Até 1983, cada computador na internet encontrava os outros baixando um arquivo de texto, HOSTS.TXT, de uma única máquina em Stanford. Toda vez que um novo computador se conectava, o arquivo crescia e todos o buscavam novamente.
- Paul Mockapetris substituiu o arquivo por um sistema distribuído de servidores, cada um respondendo por sua própria parte do espaço de nomes. Ele o chamou de Sistema de Nomes de Domínio.
- É por isso que você digita um nome em vez de doze dígitos, e por que um site pode mudar de lugar sem avisar.
- Esta lição trata do endereço que você digita, do sistema que o consulta e de como um vídeo chega a você antes de ter terminado de chegar.
The URL
- A Uniform Resource Locator 统一资源定位符 (URL) locates one resource on the web:
https://www.example.com/about/contact.html. - The protocol 协议,
https, says how to fetch it. The domain name 域名,www.example.com, names the server in a form people can read. The path,/about/contact.html, names the file on that server. - A URL may also carry a port number and a query string after
?, but protocol, domain and path are the three the exam asks for.
A URL
- Um Uniform Resource Locator 统一资源定位符 (URL) localiza um recurso na web:
https://www.example.com/about/contact.html. - O protocolo 协议,
https, diz como buscá-lo. O nome de domínio 域名,www.example.com, nomeia o servidor em uma forma legível para pessoas. O caminho,/about/contact.html, nomeia o arquivo naquele servidor. - Uma URL também pode carregar um número de porta e uma string de consulta depois de
?, mas protocolo, domínio e caminho são os três que o exame pede.
In https://www.example.com/about/contact.html, what is https? · Em https://www.example.com/about/contact.html, o que é https?
https is the protocol; www.example.com is the domain name; /about/contact.html is the path. · https é o protocolo; www.example.com é o nome de domínio; /about/contact.html é o caminho.
Match each part of https://www.example.com/about/contact.html to its name. · Combine cada parte de https://www.example.com/about/contact.html com seu nome.
A URL is protocol + domain name + path — the protocol says how, the domain says which server, the path says which resource. · Uma URL é protocolo + nome de domínio + caminho — o protocolo diz como, o domínio diz qual servidor, o caminho diz qual recurso.
The Domain Name System
- Computers deliver to IP addresses, not names. The Domain Name System 域名系统 (DNS) is a distributed set of servers that translates a domain name into an IP address.
- The browser asks a resolver 解析器. If the resolver has not cached the answer, it asks a root server, which points it to the top-level domain server for
.com, which points it to the authoritative server forexample.com, which returns the IP address. - The browser then connects to that IP address and requests the path. The whole lookup takes milliseconds and is cached so it rarely repeats.
Resolver, root, top-level domain, authoritative: then the browser connects
O Sistema de Nomes de Domínio
- Computadores entregam para endereços IP, não nomes. O Sistema de Nomes de Domínio 域名系统 (DNS) é um conjunto distribuído de servidores que traduz um nome de domínio em um endereço IP.
- O navegador pergunta a um resolver 解析器. Se o resolver não tiver a resposta em cache, ele pergunta a um servidor root, que o direciona ao servidor de domínio de nível superior para
.com, que o direciona ao servidor autoritário paraexample.com, que retorna o endereço IP. - O navegador então se conecta a esse endereço IP e solicita o caminho. Toda a consulta leva milissegundos e é em cache, portanto raramente se repete.

Resolver, root, domínio de nível superior, autoritário: depois o navegador se conecta
How DNS finds a website · Como o DNS localiza um site
Step through a DNS lookup. The network routes by IP, not by name — so before anything loads, DNS must turn the domain name into an IP address. · Passo a passo de uma consulta DNS. A rede roteia por IP, não por nome — então, antes de qualquer coisa carregar, o DNS deve converter o nome de domínio em um endereço IP.
The Domain Name System (DNS) mainly: · O Sistema de Nomes de Domínio (DNS) principalmente:
DNS resolves human-readable domain names to the numeric IP addresses the network actually uses. · O DNS resolve nomes de domínio legíveis por humanos nos endereços IP numéricos que a rede realmente usa.
Worked example: from typed address to loaded page
- The user types the URL. The browser separates the protocol, the domain name and the path.
- The browser sends the domain name to the DNS resolver, which queries the DNS hierarchy until an authoritative server returns the server's IP address.
- The browser opens a connection to that IP address and sends an HTTP request for the path.
- The server returns the page, and the browser renders it. Four steps, and the DNS step is the one most often missed.
Exemplo resolvido: do endereço digitado à página carregada
- O usuário digita a URL. O navegador separa o protocolo, o nome de domínio e o caminho.
- O navegador envia o nome de domínio para o resolver do DNS, que consulta a hierarquia do DNS até que um servidor autoritário retorne o endereço IP do servidor.
- O navegador abre uma conexão para esse endereço IP e envia uma solicitação HTTP para o caminho.
- O servidor retorna a página, e o navegador a renderiza. Quatro passos, e o passo do DNS é o mais frequentemente esquecido.
Put a DNS lookup in order, from typing the address to loading the page. · Coloque uma consulta DNS em ordem, desde digitar o endereço até carregar a página.
The resolver walks the hierarchy (root → TLD → authoritative) until it gets the IP, then the browser connects. · O percorre a hierarquia (raiz → TLD → autoritativo) até obter o IP, então o navegador conecta-se.
Why DNS exists
- People remember names; routers deliver to numbers. DNS lets both be true at once.
- A site can move to a new server, or spread across many, by changing its DNS record. Users type the same name.
- The system is distributed, so no single server holds every name, and it is cached at every level, so the load is spread.
Por que o DNS existe
- Pessoas lembram nomes; roteadores entregam números. O DNS permite que ambos sejam verdadeiros ao mesmo tempo.
- Um site pode mudar para um novo servidor, ou espalhar-se por vários, alterando seu registro DNS. Usuários digitam o mesmo nome.
- O sistema é distribuído, então nenhum servidor único detém todos os nomes, e é em cache em todos os níveis, espalhando a carga.
Why does the web use DNS rather than having users type IP addresses? Select all · todos that apply. · Por que a web usa DNS em vez de ter usuários digitando endereços IP? Selecione todos os que se aplicam.
DNS is about names, flexibility and distribution. The lookup adds a few milliseconds; it does not speed up the page itself. · DNS trata de nomes, flexibilidade e distribuição. A consulta adiciona alguns milissegundos; ela não acelera a própria página.
Bit streaming
- Bit streaming 流式传输 sends multimedia as a continuous stream that the receiver plays as it arrives, instead of downloading the whole file first.
- Real-time 实时 streaming is captured and sent as it happens, live sport or a video call. You cannot rewind, and low latency is vital.
- On-demand 点播 streaming plays a file already stored on a server. You can pause and rewind, and the server can send ahead.
The buffer sits between the network and the player
Bit streaming
- Bit streaming 流式传输 envia multimídia como um fluxo contínuo que o receptor reproduz conforme chega, em vez de baixar o arquivo inteiro primeiro.
- Streaming em tempo real 实时 streaming é capturado e enviado conforme acontece, esporte ao vivo ou videochamada. Não é possível retroceder, e baixa latência é vital.
- Streaming sob demanda 点播 streaming reproduz um arquivo já armazenado em um servidor. É possível pausar e retroceder, e o servidor pode enviar adiante.

O buffer fica entre a rede e o player
Streaming media plays as it arrives, without first downloading the whole file. · Mídia em streaming reproduz conforme chega, sem primeiro baixar o arquivo inteiro.
That is the defining feature of streaming — the receiver plays the stream as it comes in (with a small buffer), rather than waiting for a full download. · Essa é a característica definidora do streaming — o receptor reproduz o fluxo conforme ele entra (com um pequeno buffer), em vez de esperar por um download completo.
Compared with real-time (live) streaming, on-demand streaming: · Comparado com streaming em tempo real (ao vivo), o streaming sob demanda:
On-demand content is pre-recorded, so you can pause/rewind and the server can buffer well ahead. Live streaming can't be rewound and needs low latency. · Conteúdo sob demanda é pré-gravado, então você pode pausar/retroceder e o servidor pode fazer buffer bem adiante. Streaming ao vivo não pode retroceder e precisa de baixa latência.
Buffers and bit rate
- A buffer 缓冲 stores a few seconds of data before playback starts, so a brief dip in the network does not stop the picture. On-demand streams can buffer far ahead; a live stream can only buffer a little, or it stops being live.
- The bit rate 比特率 is the number of bits per second the stream needs. It must stay below the broadband speed, or data arrives slower than it is played and the playback stalls.
- Lossy 有损 compression 压缩 keeps the bit rate down: moving pictures hide small losses, and the stream must fit the bandwidth.
Buffers e taxa de bits
- Um buffer 缓冲 armazena alguns segundos de dados antes da reprodução começar, para que uma breve queda na rede não pare a imagem. Streams sob demanda podem bufferar muito adiante; um stream ao vivo só pode bufferar pouco, ou deixa de ser ao vivo.
- A taxa de bits 比特率 é o número de bits por segundo que o stream precisa. Deve permanecer abaixo da velocidade da banda larga, caso contrário os dados chegam mais devagar do que são reproduzidos e a reprodução trava.
- Compressão lossy 有损压缩 mantém a taxa de bits baixa: imagens em movimento ocultam pequenas perdas, e o stream deve caber na largura de banda.
Why does a streaming player use a buffer? · Por que um player de streaming usa um buffer?
The buffer holds a few seconds ahead of what is playing, so short slow-downs in the network don't cause the playback to stall. · O buffer segura alguns segundos adiante do que está sendo reproduzido, para que lentidões curtas na rede não causem travamentos na reprodução.
For a stream to play without stalling, its bit rate must stay ____ the broadband speed of the connection. · Para que um stream reproduza sem travar, sua taxa de bits deve ficar ____ a velocidade da banda larga da conexão.
If more bits per second are needed than the connection delivers, data arrives more slowly than it is played and the buffer empties. · Se forem necessários mais bits por segundo do que a conexão entrega, os dados chegam mais lentamente do que são reproduzidos e o buffer esvazia.
Worked example: why compress before streaming live?
- Explain why a video is compressed before it is streamed in real time.
- The uncompressed stream would need more bandwidth than the connection has, so frames would arrive late and playback would stall.
- Compression cuts the number of bits, so the bit rate stays below the broadband speed and the delay stays small.
- Less storage and cost are needed at both ends. A late packet in a live stream is simply dropped, because a live stream cannot wait for it.
Exemplo resolvido: por que comprimir antes de transmitir ao vivo?
- Explique por que um vídeo é comprimido antes de ser transmitido em tempo real.
- O stream não comprimido precisaria de mais largura de banda do que a conexão tem, então os frames chegariam tarde e a reprodução travaria.
- Compressão reduz o número de bits, mantendo a taxa de bits abaixo da velocidade da banda larga e o atraso pequeno.
- Menos armazenamento e custo são necessários em ambas as extremidades. Um pacote perdido em um stream ao vivo é simplesmente descartado, porque um stream ao vivo não pode esperar por ele.
Worked example: the real-time pipeline
- Describe how a live event is streamed to viewers.
- The camera and microphone capture and sample the event. The data is encoded, using compression to shrink it.
- The stream is sent across the network as packets. The viewer's device buffers a little, then plays, dropping any packet that arrives too late.
- Compare on-demand: the file already exists, so the server can send ahead, the buffer can be large, and the viewer can pause and rewind.
Exemplo resolvido: o pipeline em tempo real
- Descreva como um evento ao vivo é transmitido para espectadores.
- A câmera e o microfone capturam e amostram o evento. Os dados são codificados, usando compressão para encolhê-los.
- O stream é enviado pela rede em pacotes. O dispositivo do espectador buffera um pouco, depois reproduz, descartando qualquer pacote que chegue muito tarde.
- Compare com sob demanda: o arquivo já existe, então o servidor pode enviar adiante, o buffer pode ser grande, e o espectador pode pausar e retroceder.
Put the stages of real-time streaming in order. · Coloque as etapas do streaming em tempo real em ordem.
Capture, encode, send, play. The compression happens before sending, which is what keeps the bit rate inside the bandwidth. · Capturar, codificar, enviar, reproduzir. A compressão acontece antes do envio, o que mantém a taxa de bits dentro da largura de banda.
Marks that slip away
- DNS turns a name into an IP address, never the other way round in an exam answer, and it is not what carries the page.
- Real-time streaming can still use a buffer; it is just a small one. What it cannot do is rewind.
- Bit rate is compared with the connection's speed. If the bit rate is higher, the stream stalls; say which is which.
- The protocol part of a URL is
https, notwww.wwwis part of the domain name.
Marcas que escapam
- DNS converte um nome em endereço IP, nunca o contrário em uma resposta de exame, e não é o que transporta a página.
- Streaming em tempo real ainda pode usar um buffer; é apenas pequeno. O que não pode fazer é retroceder.
- Taxa de bits é comparada com a velocidade da conexão. Se a taxa de bits for maior, o stream trava; diga qual é qual.
- A parte de protocolo de uma URL é
https, nãowww.wwwé parte do nome de domínio.
In a real-time stream, a packet that arrives too late is held until it can be played in its proper place. · Em um stream em tempo real, um pacote que chega tarde é segurado até poder ser reproduzido em seu lugar correto.
A live stream cannot wait: a late packet is dropped and playback continues. Only on-demand streaming can afford to wait, because it buffers far ahead. · Um stream ao vivo não pode esperar: um pacote tardio é descartado e a reprodução continua. Apenas o streaming sob demanda pode se dar ao luxo de esperar, pois faz buffer bem adiante.
You've got it
- a URL = protocol + domain name + path; DNS turns the domain name into an IP address through resolver → root → top-level → authoritative servers
- DNS exists so people use names, routers use numbers, and a site can move without changing its name
- bit streaming plays media as it arrives: real-time is live and cannot rewind, on-demand is stored and can
- a buffer covers network dips; the bit rate must stay below the broadband speed, which is why streams use lossy compression
Entendeu?
- uma URL = protocolo + nome de domínio + caminho; DNS converte o nome de domínio em endereço IP através de resolver → root → domínio de nível superior → servidores autoritários
- DNS existe para que pessoas usem nomes, roteadores usem números, e um site possa mudar sem alterar seu nome
- bit streaming reproduz mídia conforme chega: real-time é ao vivo e não pode retroceder, on-demand é armazenado e pode
- um buffer cobre quedas na rede; a taxa de bits deve permanecer abaixo da velocidade da banda larga, que é por que streams usam compressão lossy