📣 黑五价提前开抢|VIP一年通行证5折,蓝莓、Offer多多同步特惠
回复: 4
跳转到指定楼层
上一主题 下一主题
收起左侧

【附详细prep doc】PANW palo alto 网络 data plane forwarding挂

全局:

2021(4-6月) 码农类General 本科 全职@palo-alto-networks - 网上海投 - HR筛选 技术电面 Onsite 视频面试  | 🙁 Negative 😐 Average | Fail | 在职跳槽

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x

求加米!!!
求加米!!!
求加米!!!


很注重C Programming

没有OA 咩有店面 直接5轮onsite
coding1 hexDump
  1. /*
  2. 1. Give a buffer pointer "buf" and the length of the buffer "len", print the buffer such that each line starts with the offset and then 16 bytes.
  3. void hexdump(void *buf, len)


  4. output:
  5. 000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  6. 000010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  7. */

  8. #include <stdio.h>

  9. int main() {
  10.   return 0;
  11. }

  12. void hexDump(unsigned char buf[], int len) {
  13.   int countLine = 0;
  14.   for (int i = 0; i < len; i++) {
  15.     if (i %16 == 0) {
  16.       printf("%07x", countLine * 16);
  17.       countLine ++;
  18.     }

  19.     printf("%02x", buf[i]);

  20.     if ((i + 1) % 16) {
  21.       printf("\n");
  22.     } else {
  23.       printf(" ");
  24.     }
  25.   }
  26. }
复制代码
coding2 oneFromMSB (我真的不会写 下面的代码是错的)
  1. /*
  2. find "1" from MSB side.

  3. Example:
  4. x = 101100001
  5.     ^^^^^^^^^
  6.     |||||||||
  7.     876543210 right to left
  8.     *
  9. return 8

  10. x = 110100
  11.     ^^^^^^
  12.     ||||||
  13.     543210 right to left
  14.        *
  15. return 5

  16. x = 0101
  17.     ^^^^
  18.     ||||
  19.     3210 right to left
  20.      *
  21. return 3
  22. */

  23. #include <math.h>
  24. #include <stdio.h>

  25. unsigned binaryToDecimal(unsigned n)
  26. {
  27.     int num = n;
  28.     int dec_value = 0;
  29.     int base = 1;
  30.     int temp = num;

  31.     while (temp) {
  32.         int last_digit = temp % 10;
  33.         temp = temp / 10;
  34.         dec_value += last_digit * base;
  35.         base = base * 2;
  36.     }
  37.     return dec_value;
  38. }

  39. int msb(unsigned x) {
  40.   unsigned decimal = binaryToDecimal(x);
  41.   int position = 1;
  42.   int leftMost = -1;
  43.   // Iterate while number > 0
  44.   while(decimal > 0)
  45.   {
  46.     // Check if last bit is 1
  47.     if(decimal & 1){
  48.       leftMost = position - 1;
  49.     }
  50.     // Increment position counter and right shift number
  51.     position++;
  52.     decimal = decimal>>1;
  53.   }
  54.   return leftMost;
  55. }

  56. // Driver code
  57. int main()
  58. {
  59.   unsigned a = 101100001;
  60.   printf("expected 8, actual %u\n", msb(a));

  61.   unsigned b = 110100;
  62.   printf("expected 5, actual %u\n", msb(b));

  63.   unsigned c = 1101;
  64.   printf("expected 3, actual %u\n", msb(c));

  65.   return 0;
  66. }
复制代码
Hiring manager说 我们是天天写system level C code, we are dinosaurs, nothing interesting compared with Internet companies。 我服了
System Design 聊design simple FireWall - 原理就是利用TCP 3 way handshake,在server 和client中间加firewall, firewall keep track of SYN-ACK from client.



Prep Notes很多是来自地里 谢谢前辈们

Network packet
UDP
TCP Concept
Firewall Concept
A firewall determines what packets should be accepted, denied, or dropped based on its policy.
Physical firewall - PANOS - APPID
Virtual Firewall - Prisma Cloud
DDoS Attack
Resource used to process and ACK - resource heavy
Implement a Firewall

Header
Src
Dst
Seq
Data
1223849128376128734129834712985712
3412341234213412342134123412341234
1341234123412342141234213421341234
1223849128376128734129834712985712
3412341234213412342134123412341234
1341234123412342141234213421341234
1223849128376128734129834712985712
3412341234213412342134123412341234
1341234123412342141234213421341234
1223849128376128734129834712985712
3412341234213412342134123412341234
1341234123412342141234213421341234

Best Effort

TCP 3 way handshake
Sender    ->       SYN   -> Receiver
     <-    ACK      <-
               ->   SYN_ACK ->
  FireWall: keep track of SYN-ACK,


PaaS
Manageability
Visibility

SD-WAN - Software-Defined Networking


TCP / UDP, 什么时候用哪个,还问到设计一个app时网络拥堵怎么办,
TCP和UDP的区别。如果要对服务器发起DoS攻‍‌‌‌‌‍‌‌R
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
it at the same time. Because the thread scheduling algorithm can swap between threads at any time, you don't know the order in which the threads will attempt to access the shared data. Therefore, the result of the change in data is dependent on the thread scheduling algorithm, i.e. both threads are "racing" to access/change the data.
Problems often occur when one thread does a "check-then-act" (e.g. "check" if the value is X, then "act" to do something that depends on the value being X) and another thread does something to the value in between the "check" and the "act". E.g:
system design
例如其中问道了一些在单机情况下如何去sort一个庞大到塞不下FS里的大文件,思路是怎么样的。



OOD:
minHeap的实现



Project
因为我主要写java和c++,问了两个语言的差别。





HTTP application
WebSocket application
TCP/UDP transport layer
IP network layer
Ethernet data link layer
Wi-Fi data link
ICMP network layer

Distributed Key Value Store Project:




评分

参与人数 1大米 +5 收起 理由
bryanjhy + 5 给你点个赞!

查看全部评分


上一篇:facebook university 最新OA
下一篇:【附详细prep doc】财富前线 new grad onsite挂
地里匿名用户
🔗
匿名用户-RH169  2021-11-19 07:43:58 来自APP
zzzzzzzzzzz顶哈
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-RH169  2021-11-27 06:29:37 来自APP
zszszszszszzz
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-RH169  2021-11-29 06:21:14 来自APP
mmmmmmmmm
回复

使用道具 举报

🔗
TryOne 2021-12-1 04:34:23 | 只看该作者
全局:
LZ几天出来消息挂了?发据信了?几年工作经验啊?
LZ哪部分没面好啊?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表